|
-
Dec 21st, 2001, 04:31 PM
#1
Thread Starter
Frenzied Member
running functions when user tabs out of field
I have a form w/a lot of fields most are text but some are select. I have a function that opens another page in a hidden frame that updates my database via asp. rather than call that function by hitting a button I want to update the databse eachtime the user leaves a field. I tried adding onBlur="updateDatabase()" to each text and onChange... to each select. for some reason this gets into a loop of updating the database and I have to ctrl + alt+del the page to stop it. Anyone have any good guesses as to what is going on and/or what is the best way to acomplish what I want this to do?
thanks in advance,
Michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
-
Dec 21st, 2001, 04:48 PM
#2
Thread Starter
Frenzied Member
sorry... I am a moron in need of a nap. I had a javascript alert to let me know that the database had been updated. so can you see what happened?
1) field 1 has focus
2) i hit tab & field 1 loses focus as field 2 gets it
3) the databse updates because field 1 lost f. and the alert comes up (getting focus and causing field 2 to lose f.)
4) I click ok and field 2 gets focus again
5)the databse updates because field 2 lost f. and the alert comes up (getting focus and causing field 2 to lose f.)
6) I click ok and field 2 gets focus again
7)the databse updates because field 2 lost f. and the alert comes up (getting focus and causing field 2 to lose f.)
do the last 2 forever 
Michael
I'm off to GalahTech, hope to see you there.
If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|