Hello. I would like to update a javascript array by ajax, keeping the data into the db. We talk about markers data for Google maps.
Here is how I load the data when the page is loaded. var locations = [ {{for event in events:}} {title: '{{=event.title}}', link: '{{=URL('default', 'show_event', vars=dict(id=event.id))}}', location: {lat: {{=event.latitude}}, lng: {{=event. longitude}} }}, {{pass}} ]; If the user change in a form some criteria like event date or event type, I would like to update the markers dynamically, without a page reload. Can I do it by ajax? Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.