Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

afterupdate event

Status
Not open for further replies.

mary555

Programmer
Nov 9, 2005
185
CA
is there a way to make an event like frmL.submit happen after a text field is updated (ie after the person enters a value and moves to a new text field?
 
i tried doing that and it didn't d oanything after i typed in the box....what am i doing wrong?
 
you said:
is there a way to make an event like frmL.submit happen after a text field is updated (ie after the person enters a value [red]and moves to a new text field[/red]?

did you try moving to a new text field? if you did, and it still doesn't work, then you definitely have javascript disabled or a javascript error elsewhere on your page.



*cLFlaVA
----------------------------
[tt]( <P> <B>)[sup]13[/sup] * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
make an event like frmL.[highlight]submit[/highlight] happen after a text field is updated (ie after the person enters a value and [highlight]moves[/highlight] to a new text field?

Are you sure you want to submit? In that case, use onblur like this?
[tt] <input type="text" name="t1" onblur="if (this.value != "") {this.form.submit();}" />
[/tt]
The only hole is that what do you decide to do if not entered any value...
 
Amendment

Colliding quotes. The line should be read like this.
[tt] <input type="text" name="t1" onblur="if (this.value != [red]''[/red]) {this.form.submit();}" />[/tt]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top