Jump to content


Photo

onchange SELECT and firefox problem


  • Please log in to reply
2 replies to this topic

#1 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 11 July 2006 - 02:29 PM

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

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 11 July 2006 - 03:52 PM

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.

NoGray.com


#3 mojito

mojito
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 11 July 2006 - 04:22 PM

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







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users