Well, you would just have to have a searchCompleteCallback which, upon the return of the initial results, would check for that value and call gotoPage accordingly.
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 Dec 8, 2011, at 10:59 AM, Phil Dahlheimer wrote: > I'm not sure that's much of a challenge. This code seems to be working fine > in my searchcomplete function: > map.setCenter(new google.maps.LatLng(parseFloat(center.lat), > parseFloat(center.lng)), zoom); > > document.getElementById('hdnCandPage').value = > searcher.cursor.currentPageIndex; > > > I'm storing the user's cursor.currentpageindex in a hidden field on the page. > I don't think I'd have too much of a problem calling execute and going to the > page. What would that look like and where would I put it? > > On Thu, Dec 8, 2011 at 11:53 AM, Jeremy Geerdes <[email protected]> wrote: > Using the standard JSAPI, I don't believe you can do this without first > calling .execute() and then .gotoPage(), which may be problematic the way > you've described your app. You could write a custom JS wrapper for the > RESTful API that would support what you're trying to do. The one challenge > with that would be figuring out if there is, in fact, a second page of > results. > > 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 Dec 8, 2011, at 10:20 AM, ThisLooksPrettyCool wrote: > > > Specifically, want to load the search normally on page load (this > > works fine). After a user performs an action, I want to capture the > > page the user is looking at (which I can do), perform an off-map > > action (which I can do), rerun the search (which I can do) and land > > the user on the same page (which I cannot do), and then reload the map > > (which is automatic when the search reruns. > > > > I know that I need to use gotoPage(), but I can't find anywhere to put > > it in my function that works. > > > > -- > > 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] > > To view this message on the web, visit > > http://groups.google.com/group/google-ajax-search-api?hl=en_US > > For more options, visit this group at > > http://groups.google.com/group/google-ajax-search-api?hl=en?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] > To view this message on the web, visit > http://groups.google.com/group/google-ajax-search-api?hl=en_US > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?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] > To view this message on the web, visit > http://groups.google.com/group/google-ajax-search-api?hl=en_US > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en?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] To view this message on the web, visit http://groups.google.com/group/google-ajax-search-api?hl=en_US For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
