Page 1 of 1

Pb with cascade drop down

Posted: Tue Apr 13, 2010 8:15 pm
by ptityop
Hi,
I have a script for cascading dropdown select box to put in an html form but i am encountering a problem. It works all fine in Firefox but not in Explorer... Would anyone have any idea as to why please?
you can see the test at http://elhoster.com/shuttle

I also attached the file that seems to be causing the problem
Thanks a lot for any help

Re: Pb with cascade drop down

Posted: Tue Apr 13, 2010 10:24 pm
by omniuni
It appears to work in Chrome as well. I would recommend you install Microsoft's web development tools, and see what their JS console says. Remember, IE uses JScript, which is slightly different than JavaScript, which is in turn slightly different than ECMAScript (though not nearly as much as JScript).

Sorry, IE doesn't run on Linux so I can't offer any more help, really.

Re: Pb with cascade drop down

Posted: Tue Apr 13, 2010 10:28 pm
by mrcoffee
You have an extra </form> tag, one of which comes before <input type="hidden" name="type1" value="Hello">.
Consequently, the input element "type1" is not part of the form, and IE will just stop the script when it gets to document.frmFormMail.type1.

If take out the first extra </form> tag (after <select name="model") I think it will work.