Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Using Javascript to detect when form isn
by bb2120 on 2006/6/3 22:31:04

Sorry for being an idiot I don't think that it can be done. If you're really desperate you could always use flash!
Re: Using Javascript to detect when form isn
by Dave_L on 2006/5/29 1:33:43

That's my question.
Re: Using Javascript to detect when form isn
by bb2120 on 2006/5/28 23:54:09

Sorry, I did not read your post carefully. This is an annoying one. If you get really desperate you could always use flash!

You could code the JS so that it does not pop up when the name/id of the submit button is pressed. I know that this is not proper JS, but it should illustrate my point:

textarea onchange="if([not clicking] document.formname.submit) {
alert('please press submit to save changes')
}" cols="30" rows="30" />

The question is, how do you code the not clicking bit?
Re: Using Javascript to detect when form isn
by Dave_L on 2006/5/28 23:13:23

There's an OnBlur event, which is triggered when an element loses focus. But that still doesn't solve the problem.

Also, OnChange is better than OnBlur in this case, since if no change is made to the textarea, there's no need to warn the user to submit the form.
Re: Using Javascript to detect when form isn
by bb2120 on 2006/5/28 23:04:24

There's no such function as onunfocus, by any chance? I'm no js expert (as you may alreadu have guessed), but I think that detecting the textarea's focus could be helpful

Who's Online

241 user(s) are online (184 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits