- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Fourjays Veteran
Hi,
I am trying to implement a simple form validation script on the forms for my PHP Program. So far I have got it working perfectly in Firefox and Opera. IE isn't working right though. It uses onChange to validate input as the user fills out the form. When using IE, I input my input in my "email" field and then try to move onto the "emailconf" field to confirm it, but IE won't let me change the field as it is "invalid". It is invalid at that point, but the user needs to change the field to the confirmation field to make it valid (as they have to match). Here is my code;
Having all validations done at once like that is the best method I have found so far. Otherwise I find the verification becomes kind of buggy, and doesn't give correct validation. Do I need an extra bit of code to get IE to allow me to change the field? I have a very small amount of javascript experience so please be clear when explaining things.
Thanks
EDIT: Thanks to a friend, I have now managed to find the problem. When calling this function on the "onChange" call I had onChange="return check_email();". It seems that IE was reading this return, and locking focus on the field until it returned true. More than likely nothing wrong with IE, just my poor understanding of JS. Removing the return from the onChange has fixed the problem. I left the returns in for the functions themselves, as an onSubmit function calls them for checking that all fields are valid, and uses the return.
Edited by FourjaysLink to comment
https://www.neowin.net/forum/topic/475753-javascript-form-validation-problems-with-ie/Share on other sites
0 answers to this question
Recommended Posts