views:

6

answers:

0

Hi. I have a custom search engine in a page like so:

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
var search_term = '<?php print $_GET["q"]; ?>'; // added -- let google scrub!
google.load('search', '1', {language : 'en'});
google.setOnLoadCallback(function() {
var customSearchControl = new  google.search.CustomSearchControl('**My Key**');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setAutoComplete(true);
customSearchControl.draw('cse', options);
 // Added-- also need to set the search_term var above
     if (search_term) {
         customSearchControl.execute(search_term);
     }
}, true);
</script>

and it works fine, takes the parameter passed from a search box on another page and displays the results BUT my subscribed links don't appear in the results. They do show when I view the CSE in the customary fashion. Anybody know how I can get these results to show again? I've looked through the google search api class reference, but don't see anything that's helping. Thanks!