Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Getting Form Parameters


elitebomber - 4:40 pm on Apr 18, 2008 (gmt 0)


I have a problem with AJAX and FireFox that is on topic with form values.

var extra = document.form1.Students.value;

I'm using that in my AJAX function to get the value of a list/menu called Students. Then the AJAX sends the value to a php file and the php file recreates the form and removes the value that they previously selected.

No page refresh has taken place since it was all AJAX. The user then selects another name from the list/menu and the function is called again but this time var extra is returning the old value and not the new one. I need some way of refreshing Students.value. I'm not having this problem in IE.


Thread source:: http://www.webmasterworld.com/javascript/3629387.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com