Most scripts I found will run when I embed them using whatever system is 
provided by Joomla!, Mediawiki and Tiddlywiki.

I discovered in my Webmasters page that I can create a search engine script 
that will search a specific list of sites. For example, now I can search 
for Vitamin C on the sites of 20 providers and see only the results from 
those sites. Great. But it only seems to work as a widget - and they are 
closing down anyway.

Is there a way to get the code to run?

I tried bother versions 1 and 2 which present the code differently.

This is the code:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi"; type="text/javascript"></script>
<script type="text/javascript"> 
  google.load('search', '1', {language : 'en', style : 
google.loader.themes.V2_DEFAULT});
  google.setOnLoadCallback(function() {
    var customSearchOptions = {};
    var orderByOptions = {};
    orderByOptions['keys'] = [{label: 'Relevance', key: ''},{label: 'Date', 
key: 'date'}];
    customSearchOptions['enableOrderBy'] = true;
    customSearchOptions['orderByOptions'] = orderByOptions;  var 
customSearchControl = new 
google.search.CustomSearchControl('0053637621182???????:_p_mxkqgbak', 
customSearchOptions);
    
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var options = new google.search.DrawOptions();
    options.setAutoComplete(true);
    customSearchControl.draw('cse', options);
  }, true);
</script>

????? is just to disguise my id - if I need to.


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/373oA941GJ8J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to