I have used that IDOCS site before, it's really good. I keep forgetting who posts it in their signature, but I first got the link from here.
I'm a bit conflicted about the solution to my problem. Unfortunately, I don't have any control over the form tag itself, thus I have no way of specifying which function to call for the onClick or onSubmit buttons. I might possibly be able to set something in the HTML header, though. And I can always set what the IDE likes to call "prefix" and "suffix" markup for any form element (text box, button, etc). These two markup choices exist outside the tags for the form element they surround, so again I can't set events for the onBlur, etc.
Any ideas how I can get a JavaScript function to let me know what really happened, or maybe even refuse a submission if nobody actually pressed a button? The important thing being how to make sure the function is called before the page is irrevocably submitted back to the server.
Again, I appreciate the info so far. Thanks a lot!
PS - And thanks for not calling attention to my presence by posting my name in the subject line or anything. ;-> |