Custom search engine for Google not working -
i trying integrate custom search engine of google no avail. every time returns 'no result' every data passed. code:
<script> (function() { var cx = '009439376788807650262:rd6prt0twra'; var gcse = document.createelement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cse.google.com/cse.js?cx=' + cx; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(gcse, s); })(); </script> <div> <gcse:search resultsurl="http://amniltech.com.np/investment/" newwindow="true" queryparametername="search"> </gcse:search> </div> can me here? doing wrong? using fuelphp.
<script> (function() { var cx = 'your_cx_id'; var gcse = document.createelement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//cse.google.com/cse.js?cx=' + cx; var s = document.getelementsbytagname('script')[0]; s.parentnode.insertbefore(gcse, s); })(); </script> <gcse:search resultsurl="http://www.amniltech.com.np/investment/" newwindow="true" queryparametername="search"> this work.
Comments
Post a Comment