You can try the following experiment to display an informative message if the initial query produces no results.
Try the experimental function provided here: http://pastesite.com/16009 Copy that function into this code sample: http://code.google.com/apis/ajax/playground/#queries Call the experimental function before calling the NewsShow constructor. The experimental function requires one argument: your NewsShow options object. ... showMessageIfNoResults(options); var newsShow = new google.elements.NewsShow(content, options); ... After a 1-second timeout, an informative message should appear if the initial query has produced no results. (This use of a timer is not ideal. A better event-driven solution should be possible, but may require additional implementation workarounds for some browsers.) -- omr -- 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.
