Jump to content

Archived

This topic is now archived and is closed to further replies.

mojito

onchange SELECT and firefox problem

Recommended Posts

I have a select drop down which isnt firing the onchange= "fRefresh();" in firefox. It works in i.e. and opera? what could this be. I have made the function a simple alert so I know when it is firing.

mojito

Share this post


Link to post
Share on other sites
can you post your javascript code,

Also in FF, you can always click on "Tools"->"JavaScript Console" to find out the error with your code.

Share this post


Link to post
Share on other sites
Thanks for that, it tells me that "dropdown" isnt defined from the console. dropdown is the form i am trying to submit. I didnt have an "id" just "name" for the form i put in the id="dropdown" but it still isnt working, at least I know it is calling my function.
The function just tries to submit the form...

dropdown.submit();
alert("function called");

i didnt know ff would stp the function if it failed on a line, in this case the first statement is failing and not running alert.
so i now know i need to define dropdown somehow. Do I need to do document.dropdown.submit();

YES I NEED document.dropdown.submit();

thanks all..


Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.