Hi,

I've just integrated a custom google search engine into my site. This
site uses ajax to load each page, and so whenever a new page is
loaded, the search engine is redrawn to the page using
customSearchControl.draw('cse'). This is fine and the control is
always visible. I can then search for any phrase and it will come up
with the expected results.

The problem comes when, after submitting a search query, you load a
new page. Replacing the body and then drawing in the search control
causes every result to say 'webResult not found'.

A reproduction is here: http://pastie.org/1069211
Copy this into a new html document and load it.

To reproduce the error, enter a query and search, then click test
error which will dynamically replace the dom, and try another search
query. Notice how the error only begins after the first query - test
error only produces the result after the first query.

If there is not a solution yet available, is it possible to
dynamically unload and reload the google search api as a workaround?

Thanks

-- 
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].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to