Hi Anthony, Here is my view page: <script type="text/javascript"> $(document).ready(function(){ map = new GMaps({ div: '#map', lat: {{=lattitude}}, lng: {{=longitude}}, enableNewStyle: true }); }); </script>
<div id="body"> <div class="row"> <div class="span4"> {{=form.custom.begin}} City: <div>{{=form.custom.widget.city}}</div> {{=form.custom.end}} </div> <div id="map"></div> </div> </div> The widget.city is a dropdown menu. I'd like to pass the id of the city selected in the dropdown menu to the server, retrieve the latitude and longitude of the city from the database, and pass it to the page (used inside the javascript function shown above). But I want to only reload the <div id="map"></div> part. The problem is that the map inside this div is filled by the javascript ready function, which doesn't get recalled when you only reload part of the page. I thought maybe putting it inside a component would solve it for me. Could this be done through components, or I need to resort to other methods to achieve this functionality? -- --- 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/groups/opt_out.