View Single Post
Join Date: May 2007
Posts: 459
Reputation: Atli is on a distinguished road 
Solved Threads: 57
Atli's Avatar
Atli Atli is offline Offline
Posting Pro in Training

Re: Ajax script not working on firefox

 
0
  #2
Sep 14th, 2008
Hi.

I see two problems.

First, the <select> box is missing the ID attribute.
IE incorrectly uses the name attribute when an ID tag is missing, which explains why this works in IE.

Also, the <input type="submit"> button should not be used to trigger scripts like that. Unlike the onsubmit event of the <form> element, if the <input> onclick event returns false, as it does in your script, the form could still be submitted.
(IE and Firefox apparently do stop it tho.)

To fix that, try changing the <input type="submit"> to <input type="button"> . That should just trigger the script.
Last edited by Atli; Sep 14th, 2008 at 4:09 am.
Reply With Quote