473,480 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is it really true the language attribute of the tag <script>

changes the version of Javascript which would be called? I read that the language attribute can change the version
of Javascript that is executed with respect to just using the type attribute. I believe it has something to do with
type-conversion? Thanks.

--
George Hester
_________________________________
Jul 23 '05 #1
4 1111
George Hester wrote:
changes the version of Javascript which would be called?
Huh?
I read that the language attribute can change the version
of Javascript that is executed with respect to just using
the type attribute.
Yes. The type attribute will cause the browser to use whatever the
latest version is it supports. The language attribute will limit the
browsers that only support that version, or higher. javascript1.2 is
probably the most notable version that causes a major difference in
script, and thats only in NN4.xx
I believe it has something to do with type-conversion?


Nothing to do with type conversion.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Hi,

George Hester wrote:
changes the version of Javascript which would be called? I read that the language attribute can change the version
of Javascript that is executed with respect to just using the type attribute. I believe it has something to do with
type-conversion? Thanks.


Yes, you can use language="JavaScript1.2" to force Netscape browsers
supporting it to use specifically the version 1.2 of JavaScript, for
example. It works with other versions too, but it's usually done with
1.2 because this version is special in Netscape. Version 1.2 has very
specific features which were introduced in the hope of seeing them being
standardized later, but this never happened and the features are only
available in Netscape browsers using the language attribute as above. I
am not even sure these features are still supported in the newest Gecko
based browsers.

The recommendation is to rather use the type attribute ("language" is
deprecated), and to omit the version number, which will force the
browser to use the latest version installed.

HTH,

Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 23 '05 #3
JRS: In article <cp**********@zrha118x.zrh.siemens.ch>, dated Mon, 13
Dec 2004 10:16:27, seen in news:comp.lang.javascript, Laurent Bugnion
<ga*********@bluewin.ch> posted :
Laurent


Welcome back!

<URL:http://www.merlyn.demon.co.uk/zel-82px.htm> may interest you. 100 kB !

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #4
Hi John,

Dr John Stockton wrote:
JRS: In article <cp**********@zrha118x.zrh.siemens.ch>, dated Mon, 13
Dec 2004 10:16:27, seen in news:comp.lang.javascript, Laurent Bugnion
<ga*********@bluewin.ch> posted :

Laurent

Welcome back!


Well, thank you. I was away from the group because of a big project I
partly coordinated for my firm. It's a web application, written in
ASP.NET with a very important client-side JavaScript layer,
object-oriented as much as possible. Specifically, I was in charge of
coaching the developers (many of them are seasoned programmers but
without JavaScript experience), and developing a framework of controls,
most of them with a server-side (C#) part and a client-side (JavaScript)
part. The project was amazingly interesting technically, and gave me an
deep insight on subjects as various as client-server interaction in HTTP
mode, WebServices (I developed a proxy compatible as well in IE as in
Mozilla), CSS, ASP.NET, etc... That kept me very busy.

<URL:http://www.merlyn.demon.co.uk/zel-82px.htm> may interest you. 100 kB !

I'll take a look!

Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2237
by: Madhav | last post by:
I have the following statements in my script. ---------------------------------------------------------- textToWrite = "<HTML> \n" + "<HEAD> \n" + "<TITLE>Calendar</TITLE> \n" + "<SCRIPT...
44
2789
by: rhythmace | last post by:
W3C HTML validator passes this: .... <script type="text/javascript" src="foo.js"> <script type="text/javascript"> ....script in here... </script> ....
1
2452
by: Gretsch | last post by:
I have a lot of nicely formatted HTML to be displayed for visitors WITHOUT script (/enabled), and a second set of HTML for those WITH script. The <noscript> tag allows me to separate the HTML for...
3
7799
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript"...
0
7041
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4481
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2995
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.