On exit macros don't run if user clicks in protected area

J

John Wirth

Hi, I have created a form with several onexit macros applied to certain form fields. These work fine when the user tabs out, or clicks another form field.
However, if the user clicks a protected area of teh form, the macro doesn't run. Is there any way around this? I know in theory, it's just a matter of telling users to use the tab, but in practice, many still don't!


Submitted via EggHeadCafe - Software Developer Portal of Choice
Make The WebClient Class follow redirects and get Target Url
http://www.eggheadcafe.com/tutorial...lass-follow-redirects-and-get-target-url.aspx
 
T

That Guy

Hi, I have created a form with several onexit macros applied to certain form fields. These work fine when the user tabs out, or clicks another form field.
However, if the user clicks a protected area of teh form, the macro doesn't run. Is there any way around this? I know in theory, it's just a matter of telling users to use the tab, but in practice, many still don't!

Submitted via EggHeadCafe - Software Developer Portal of Choice
Make The WebClient Class follow redirects and get Target Urlhttp://www.eggheadcafe.com/tutorials/aspnet/70511872-c3aa-4e92-a7d7-d...

I am sorry to say that what you are experiencing seems to me to be by
design. Until the user has removed the focus of the filed then it does
not run the on exit macro.

My best solution without using a very complicated implementation of a
timer to check when the last key press was in a field, is to make a
submit button on the form that hides or deletes itself when pressed so
that it does not linger and mar your forms good looks. This
accomplishes what you need because the user is navigating away from
the form field and so the macro would run.

I am sorry it is not very elegant but anything in this situation is
not going to be,

Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top