The onKeepHandler should be getting a reference to the search result object itself. In addition to placing the saved html node in a new place on the page, stash the result object in an JS array. Then, when you're ready to go to the next page, convert the JS array to a JSON string and submit it like a regular POST form.
Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On Jun 26, 2011, at 12:55 AM, Soheil wrote: > Jeremy > I figure out that problem by adding this code > <div id="saved_results"></div> > > now i have the saved result in page, but how can i send them to next > page ? > > On Jun 25, 6:57 pm, Soheil <[email protected]> wrote: >> Dear Jeremy >> >> Tanks again for reply >> i have a programming skill , i program in jsp, javascript and other >> language is also familiar to me ;) >> that is exactly thing i wanted. means i want to pass the google result >> to next page and then i beging to process to them. >> >> but here (when i want to handle setOnKeepCallback function) i have >> doubt with 'saved_results' variable, could you tell me what type is >> this (means i should define it as which variable in javascript ) and >> then after the child is appended to saved_result how can i pars it to >> extract the nodes ? >> >> Thank you in advance >> >> On Jun 24, 8:32 pm, Jeremy Geerdes <[email protected]> wrote: >> >> >> >> >> >> >> >>> That helps. The next question is, how long do you foresee this application >>> being used? The Image Search API has been deprecated and, as such, will be >>> discontinued within 3 years. >> >>> Beyond that, the simplest way to do this would be to use a three page >>> setup. The first page would implement the SearchControl and its clipping >>> functionality, which you can read about here: >> >>> http://code.google.com/apis/websearch/docs/#The_Basicshttp://code.goo... >> >>> Once someone has finished "keeping" results, you would pass the data to the >>> second page, probably as a JSON string or something similar, so that they >>> could add their comments. And then, when they were done with that, they >>> would submit them to the third page, which would really process the results >>> and comments and stash them in the db, along with the attribution that the >>> results were clipped from Google on this date. >> >>> If I was going to do this, I would probably choose Perl for the server-side >>> components (because Perl is awesome), but if you don't have any real >>> programming knowledge, it would probably be easier to use PHP because it >>> can be embedded in HTML. In other words, you should be good to go with just >>> some pretty basic programming skills which, if you don't have them already, >>> you can certainly pick up pretty quickly from one of the countless >>> tutorials available on the web. >> >>> Jeremy R. Geerdes >>> Generally Cool Guy >>> Des Moines, IA >> >>> For more information or a project quote: >>> [email protected] >> >>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan >>> Church! >> >>> On Jun 24, 2011, at 10:07 AM, Soheil wrote: >> >>>> Jeremy, thank you for replying >> >>>> Actually I'm going to do a research, on that research I ask a >>>> participant to google one word in image search (e.g. beautiful) and >>>> in the result page select those images which they think are more >>>> related to that word, so I should allow participant to select some >>>> images from all retrieve images and in the next page i ask them to >>>> write a note about those images and finally i save them in a database. >>>> So the first thing i should solve is allow user to select images from >>>> all retrieved images and pass those id to next page >>>> is it clear what i want to do ? >> >>>> On Jun 24, 5:17 pm, Jeremy Geerdes <[email protected]> wrote: >>>>> Unfortunately, with such a vague description of what you're trying to do, >>>>> it's virtually impossible to respond in a meaningful way. Please provide >>>>> more details about what you're trying to do. Specifically, what do you >>>>> mean by "some process"? >> >>>>> Jeremy R. Geerdes >>>>> Generally Cool Guy >>>>> Des Moines, IA >> >>>>> For more information or a project quote: >>>>> [email protected] >> >>>>> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan >>>>> Church! >> >>>>> On Jun 24, 2011, at 4:56 AM, Soheil wrote: >> >>>>>> Hi guys >> >>>>>> I want to allow user to select some images from google image search >>>>>> result page, and i want to do some process whit their selections >>>>>> first, is it possible to do this, and second how ? >> >>>>>> Thanks in advance >> >>>>>> -- >>>>>> 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 >>>>>> athttp://groups.google.com/group/google-ajax-search-api?hl=en. >> >>>> -- >>>> 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 >>>> athttp://groups.google.com/group/google-ajax-search-api?hl=en. > > -- > 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. > -- 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.
