/    Sign up×
Community /Pin to ProfileBookmark

validation works on some comp but not others. Why?

Why is it tat when i test it on my browser it works fine. However when a fren of mine tests it on his computer also running IE, it doesnt work?
pls advise.

d=document.contact.c_comments.value;
if (d.length < 1)
{
alert(‘Please do not leave Comments blank’);
document.contact.c_comments.focus();
return false;
}

to post a comment
HTML

12 Comments(s)

Copy linkTweet thisAlerts:
@GeatFeb 18.2003 — Perhaps he's running an older version of IE than you? Or maybe he has Javascript disabled for some reason.

That's all I can think of...
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — So is there a way to make it work for all browsers?

or at least Most versions of IE
Copy linkTweet thisAlerts:
@GeatFeb 18.2003 — Javascript HAS to be turned on, no doubt about that...

Have you tried

if (d == "") { alert("Don't leave commentsblank"); }

Instead?

Have you got a URL for the site?
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — Yeah here it is

the site is http://66.246.35.222/~sprint/home.htm

go to contact us and try it

tnks a million
Copy linkTweet thisAlerts:
@GeatFeb 18.2003 — Works fine on mine mate - I guess your compadre is either using a really old browser version or has Javascript disabled.

The only way you could make it work in this case is to have the server validate the posted data, reload the form with a complaint written on it...
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — thanks a million
Copy linkTweet thisAlerts:
@GeatFeb 18.2003 — Pleasure my elven friend.
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — haha

is tat why u answered this?

cos u sure look like agragon to me ?
Copy linkTweet thisAlerts:
@GeatFeb 18.2003 — That's Boromir man - get it right!
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — haha ok then tnks boromir
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — Hey boromir,

i just checked wif my fren and shes using IE 6 and she has javascript enabled.

When she tests the page all the other validators work except for the comments

any ideas?
Copy linkTweet thisAlerts:
@legolazauthorFeb 18.2003 — Hey boromir,

i just checked wif my fren and shes using IE 6 and she has javascript enabled.

When she tests the page all the other validators work except for the comments

any ideas?
×

Success!

Help @legolaz 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 5.20,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...