I have never had a Javascript book. Always looking for good PERL books though because the online resource is only so-so. I hear "The PERL Cookbook" is good
> Do you use JScript and Javascript the same way? Are all
> the commands the same? Is this something that you have
> to download and install on a web server or do web
> browsers understand Javascript commands automatically?
The syntax and structure is standard. This is specified in the industry standards and is retained in non-standard addons. I guess it's a bit like C or PERL but a little more friendly.
This may not make much sense but anyway:
Code:
var variableName = value;
function functionName(variable){
}
command(argument){statement;}
For the most part commands are the same and Mozilla/Microsoft do actually seem to regulate themselves and clone each other.
Sadly, the actual browser capabilities are different so a command supported by MSIE may not be supported by Mozilla.
In such a scenario it's
not normally a case of substituting one command for another, there simply is no support for what you're asking of it. This is more common with DHTML
DHTML = Manipulating HTML using javascript/jscript.
This normally means a whole new solution needs to be sought - but that's where Tek-Tips.com really helps so no need to worry
> Is this something that you have
> to download and install on a web server or do web
> browsers understand Javascript commands automatically?
It's something supported by the client machine. This s normally means the web browser but..
In the case of JScript, support is actually added to the operating systems when you install MSIE 5+. This means an OS may be able to launch stand-alone *.JS scripts, or may be able to launch stand-alone *.HTA programs, in addition to running JScript in the browser.
In the case of JavaScript, support is restricted to running JavaScript in the browser.
----
When scripting for a browser you can specify which language to use but I'm not 100% sure of the options. I don't normally bother with this:
<SCRIPT>
// this script will be launched by any browser
</SCRIPT>
<SCRIPT LANGUAGE="JSCRIPT">
// this script will be launched by MSIE + Opera only
</SCRIPT>
<SCRIPT LANGUAGE="JAVASCRIPT">
// this script will be launched by any browser
</SCRIPT>
----------
I'm willing to trade custom scripts for... [see profile]