PDA

View Full Version : refreshing session variables


edrosenthal350859
12-16-2009, 12:18 PM
i am getting a map which is reliant on session variables, which change during the course of a session.
although the ajax portion is showing that they do change, and the map is showing the new coordinates and location where the city and state change, the map itself does not change.
perhaps there is a method for resubmitting the new coordinates with the map, please advise. thanks.
enter the zip code and tab over to the submit button, and the new city and state from the data entry will be shown
right below. Hit the submit button and the page is refreshed, but already the session variables have changed.
URL
http://solarpanelsenergy.org/rebate.php

Jason Byrnes
12-17-2009, 04:42 PM
you aren't going to be able to accomplish this with the page submitting. the page needs to submit to reset the session valriable values, and regenerate the map javasacript based on those values.

I would set up Pro Maps to get the latitude and longitude from the session variables.


use the ajax function to populate hidden form elements with the new latitude and longitude, when the page submits, set the Session Variables to get their values from the hidden form elements.