Pb with cascade drop down

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ptityop
Forum Newbie
Posts: 13
Joined: Thu May 07, 2009 1:48 pm

Pb with cascade drop down

Post 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
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Pb with cascade drop down

Post 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.
mrcoffee
Forum Commoner
Posts: 31
Joined: Tue Nov 10, 2009 3:03 pm
Location: Wyoming, USA

Re: Pb with cascade drop down

Post 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.
Post Reply