Script does not work!

S

S N

I have inserted some javascript on an asp page.the script is for attaching a
tail to the mouse icon on the screen.
When the asp page contains -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
at the top the javascript does not function.
When I remove this string the script works alright.
What is the problem?
Please advise.
 
B

Bob Barrows

S said:
I have inserted some javascript on an asp page.the script is for
attaching a tail to the mouse icon on the screen.
When the asp page contains -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
at the top the javascript does not function.
When I remove this string the script works alright.
What is the problem?
Please advise.

This is not an asp issue (you would have the same issue in an htm page would
you not?). Please post to client-side newsgroup.
 
S

S N

I agree that this is not connected to databases or asp engine. But since it
was an error in an asp page I had posted in this group.
Please advise me on the name of a client side scripting newsgroup.
 
C

Chris Barber

microsoft.public.scripting.jscript would be a good one to start with.

Chris.

I agree that this is not connected to databases or asp engine. But since it
was an error in an asp page I had posted in this group.
Please advise me on the name of a client side scripting newsgroup.
 
A

Aaron Bertrand [MVP]

But microsoft.public.scripting.jscript is about JScript and not
javascript!

Can you please explain the differences in JScript and JavaScript as they
pertain to client-side script in a browser?

In other words, you can do what you want to do using:

<script language=JScript>

or using:

<script language=JavaScript>

So your argument is moot, and still does not make *THIS* a better newsgroup
to continue this discussion.

If you can't, someone in *THAT* newsgroup is in a better position to tell
you so than someone in *THIS* newsgroup.

Please pursue CLIENT-SIDE issues in CLIENT-SIDE newsgroups. Pressing the
issue here is only going to frustrate people further and cause you to be
ignored.

Newsgroups have names for a reason: to keep discussions on-topic. If you
keep doing what you're doing, we should all subscribe to a single "web
development: come one come all" newsgroup.
 
C

Chris Barber

JScript are JavaScript are to all intense purposes identical. At least I've never found a reason to
believe otherwise in 7 years of scripting :)

Chris.

But microsoft.public.scripting.jscript is about JScript and not javascript!
 
D

Dave Anderson

Chris said:
Here's are the non-EMCA compliant features of JScript:
http://msdn.microsoft.com/library/en-us/script56/html/js56jsgrpnonecmafeatures.asp

I wonder why Regular Expressions are on that list. They are clearly part of
ECMA-262v3.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
C

Chris Hohmann

Dave Anderson said:
http://msdn.microsoft.com/library/en-us/script56/html/js56jsgrpnonecmafeatures.asp

I wonder why Regular Expressions are on that list. They are clearly part of
ECMA-262v3.

I think it's the implementation that's non-standard. For example, the whole
intrinsic global RegExp object is non-standard. And moving the lastIndex
property to RegExp makes the Regular Expression objects non-standard. I
imagine this could be problematic if you are working with 2 re's at the same
time. Here's a link to the ECMA standard.

http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf

-Chris Hohmann
 

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

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,382
Latest member
MichaleStr

Latest Threads

Top