mojito Posted July 11, 2006 Share Posted July 11, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/14296-onchange-select-and-firefox-problem/ Share on other sites More sharing options...
nogray Posted July 11, 2006 Share Posted July 11, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/14296-onchange-select-and-firefox-problem/#findComment-56278 Share on other sites More sharing options...
mojito Posted July 11, 2006 Author Share Posted July 11, 2006 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.. Quote Link to comment https://forums.phpfreaks.com/topic/14296-onchange-select-and-firefox-problem/#findComment-56299 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.