AJAX Not posting on MAC OS
Posted on 2010-11-18
Here's how it works. When a person enters in a new code in a box, there is an "onChange" parameter that calls up "xmlhttp.onreadystatechange=function()"
This then calls another .php page that does a DB query to find if the number is valid and to return the description associated with that number. It then updates a "hidden" post field with that number. If a second code number is entered in the box it repeats the process and appends the new code number to the end of the old separated by a colon. When all the codes have been enter, you hit submit.
But then somewhere between the "Submit" and the arrival at the new page, the value for the field is reset to blank (which is the default value for when it comes in). This only happens on the MAC. So how is it that the post works great on a PC but not on a MAC?
Insight would be appreciated.