Re: Javascript Quiz



Matthias Reuter wrote:
Jorge wrote:

2.- Don't browsers default to type="text/javascript", anyway ?

If I remember correctly, at the time the type attribute was introduced,
no official mime type for java-/ecmascript existed. "text/javascript"
seems to be the most common value,

It was the value used in the HTML specs, so in the absence of anything 'more official' it became the value commonly used.

but many more are in use. I think no browser cares for which value is given,

IE cares, at least it directly supports (in its (and the OS's) default configuration) text/vbscript, with an option for any script language to be implemented if the registry maps a MIME-style name to a DLL that supports the Windows scripting interface/API (at least that was true up until the time of JScript 5.6, the extent to which it is still true is not something that I have had reason to look into).

they all assume ecmascript. This is also true if no type attribute is given.
<snip>

IE varies the default depending on context. If your first SCRIPT element is TYPE="text/vbscript" then any un-stated/unqualified following script elements (and intrinsic event attributes that are not qualified (with - javascript:/vbscript:)) will be interpreted as vbscript.

Though that really has no relevance for web clients, where vbscript would not be used.

Richard.

.



Relevant Pages

  • Re: ExecuteGlobal to start another script
    ... >>> I'm using the following to start one vbscript from another vbscript. ... >> other to be executed in the context of the first script. ... >> sub MySub(param) ... By naming and filling a common variable in "first" which I can ...
    (microsoft.public.scripting.vbscript)
  • Re: Moving Multiple users from many differnt OUs at once
    ... I ran the script for the Specify Common Name. ... ' Specify the NetBIOS name of the domain and the NT name of the user. ... ' Bind to the user object in Active Directory with the LDAP provider. ...
    (microsoft.public.windows.server.scripting)
  • Re: Editing users UPN via script
    ... properties for those users in a script. ... NameTranslate object can convert the userPrincipalName to the Distinguished ... If the first value in your text file is the "Common Name" of the user, ... The Common Name must be unique in the container or OU, ...
    (microsoft.public.scripting.vbscript)
  • Re: Url shown in message sometimes does not work!!!!
    ... Although Google search for OpenExtLink returned 9370 results I would not ... comment that as you did calling that script common. ... Do you want to say that 9730 messages are common comparing to all the ... > them one more time into Notepad and save the Notepad file as a TXT file on ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: problem with include.
    ... function inside the IF block that was icluded in common. ... posts automatically by running PHP script. ... echo "Updating existing topic...\n"; ...
    (comp.lang.php)