Jump to content


Photo

onchange submit form


  • Please log in to reply
2 replies to this topic

#1 CanMan2004

CanMan2004
  • Members
  • PipPipPip
  • Advanced Member
  • 254 posts

Posted 16 September 2006 - 11:15 PM

Hi all

I have a simple script to submit a form when a field has been completed, I use

onchange="this.form.submit();"

How can I point it to submit the form in another frame? The frame is called "iform" so all I want to do is target that onchange to a frame name.

I cant though, target this onchange using the <form> tag as the rest of my form will not function, so I need to set the target within the onchange="this.form.submit();"

Can anyone help?

Thanks in advance

Dave

#2 degsy

degsy
  • Members
  • PipPip
  • Member
  • 20 posts

Posted 18 September 2006 - 02:27 PM

parent.framename.formname.submit()

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 20 September 2006 - 12:56 PM

Unfortunately, each FORM can only have a one ACTION and one TARGET.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users