I have added a CSE AJAX based search to a project i am
working on and
it all seems to work quite well except that the "more
results" link
jumps to google.com. Is there a way to have this stay in
same DIV as
the 1st page of results?
my code is:
function OnLoad() {
// Create a search control
var sc = new GSearchControl();
// Add in a full set of searchers
options = new GsearcherOptions();
options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
var webSearch = new GwebSearch();
sc.addSearcher(webSearch, options);
var cseID =
"015207700132068345241:wnqgcsjrfyo";
webSearch.setSiteRestriction(cseID);
webSearch.setResultSetSize(GSearch.LARGE_RESULTSET);
webSearch.setLinkTarget(GSearch.LINK_TARGET_SELF);
sc.draw(document.getElementById("searchcontrol"))
;
// execute an initial search
var search_words = $("form#search-field2
input#edit-search-
words").val();
sc.execute(search_words);
$("form.gsc-search-box").css("display",&
quot;none");
}
GSearch.setOnLoadCallback(OnLoad);
thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Google AJAX API" group.
To post to this group, send email to
Google-AJAX-Search-API googlegroups.com
To unsubscribe from this group, send email to
Google-AJAX-Search-API-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API
?hl=en
-~----------~----~----~----~------~----~------~--~---
|