Click Event not firing
-
Hello, I am working on a site with an input form that has required field validators. If the user doesn't enter something in one of the textboxes, the error message appears. When they enter something and: 1) goto another field on the form (the error message clears) then click OK, the click event fires as expected 2) click OK without focusing on another field, only the error message is cleared but the click event is never fired, hence forcing the user to click OK one more time to submit Any idea why this weird behaviour is happening? I tried it on a simple page with just a couple of textboxes and it worked fine, so I am not sure why this is acting differently? Any comments would be much appreciated.
-
Hello, I am working on a site with an input form that has required field validators. If the user doesn't enter something in one of the textboxes, the error message appears. When they enter something and: 1) goto another field on the form (the error message clears) then click OK, the click event fires as expected 2) click OK without focusing on another field, only the error message is cleared but the click event is never fired, hence forcing the user to click OK one more time to submit Any idea why this weird behaviour is happening? I tried it on a simple page with just a couple of textboxes and it worked fine, so I am not sure why this is acting differently? Any comments would be much appreciated.
The part you labeled 1) is how a validator is supposed to work. I'm assumming your problem is the 2) portion that is forcing the user to click twice. Do you have any other javascript on the page that is reacting to the textbox's onblur event or when it loses focus?
-
The part you labeled 1) is how a validator is supposed to work. I'm assumming your problem is the 2) portion that is forcing the user to click twice. Do you have any other javascript on the page that is reacting to the textbox's onblur event or when it loses focus?
I tried doing some searching through the source, but couldn't find any code I have written to do that. But then again, this is a site based on SharePoint, so there is some JavaScript I do not have access to. Although, I'd be surprised if it is a bug inherent in SharePoint.
-
I tried doing some searching through the source, but couldn't find any code I have written to do that. But then again, this is a site based on SharePoint, so there is some JavaScript I do not have access to. Although, I'd be surprised if it is a bug inherent in SharePoint.
Without knowing more about your website, it's hard to say where you can start looking for a solution. If I were you, I'd probably try adding and setting up a new button that does the same as the other button and seeing if it does the same thing if you click THAT button. That would tell you if it's code related to the validator or the button. Then try adding and setting up a new validator...maybe a setting got messed up in that. Hope this helps.