/    Sign up×
Community /Pin to ProfileBookmark

Navigator 7 problems

The code below works in Explorer 6 and Navigator 4.7 but will not work correctly in Navigator 7.
When the function is envoked in N7 it does not focus or select what the user has entered into the input field when an incorrect email format has been entered as it should. Is this a bug with N7 or is there a solution to this problem. Any help gratefully appreciated.

function checkMail() {
mailVal = document.checkout.E_Mail.value;
mailRE = /^[w.]+@([a-z0-9]+.){1,3}[a-z]{2,6}$/i;

if (!mailRE.test(mailVal)) {
alert(messArray[19]);
document.checkout.E_Mail.focus();
document.checkout.E_Mail.select();
};

}

<INPUT TYPE=”text” NAME=”E_Mail” TABINDEX=”22″ SIZE=”25″ onChange=”checkMail();”>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@dab100authorFeb 18.2003 — Tried what you said David but it did not work, still looking for a solution
×

Success!

Help @dab100 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...