gokool
unread,Dec 7, 2012, 8:09:11 PM12/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-fr...@googlegroups.com
I am trying to convert a single page webapp built earlier using jquery to a Play app since now the application has requirements to grow into a multi-page app. The application is primarily a search front end that renders results (with locations) on a Google Maps UI.
In the original version using jQuery, in the callback from the AJAX invocation, I would add new markers to the "Google Maps" object which is globally defined.
However, using Play template my "Google Maps" object is defined only in main.html. So how does one make the add-Marker method call to the Google maps object from another page i.e. search.html.
More specifically from where should i make it. search.html extends main.html but when the browser executes the section where I try to access the Google-Maps object, it says "Uncaught Reference error: map is not defined"
Any pointers would be appreciated.