Google Image search

11 views
Skip to first unread message

Dipen Chauhan

unread,
Nov 3, 2011, 11:32:56 PM11/3/11
to google-ajax...@googlegroups.com
I want to show 3 images each of a car, bus and train on a webpage. How can I achieve this using javascript only?

imageSearch1.execute("Car"); 
imageSearch2.execute("Bus");
imageSearch3.execute("Train");

Is there a better way to do this just by using one Image Search variable instead of 3 

Jeremy Geerdes

unread,
Nov 4, 2011, 9:02:05 AM11/4/11
to google-ajax...@googlegroups.com
The answer to this question depends very much on what your objectives are. For what you're looking at, having three different searchers will probably be the best solution. If you go with three searches via the same searcher, you'll have to make your three search requests sequentially, rather than simultaneously. That will make your page take longer to load all the images.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

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

Reply all
Reply to author
Forward
0 new messages