![]() |
Jscript or Javascript?
I need to do some client-side scripting for my Intranet and was wondering if
Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I need to make a decision... Thanks, Drew |
Re: Jscript or Javascript?
Javascript. There's no relevant difference other than the name, really.
But do a <script type="text/javascript"> as a good practice. Ray at work "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message news:%23jbiuoHCFHA.3740@TK2MSFTNGP09.phx.gbl... > I need to do some client-side scripting for my Intranet and was wondering if > Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I > need to make a decision... > > Thanks, > Drew > > |
Re: Jscript or Javascript?
If everybody uses IE, you'll use JScript. If needed, you can still check
your site using some other browser to check if it works with JavaScript (and over time have guidelines to use common features). If I remember the main difference is in indexing arrays (JScript will use parenthesis or brackets while JavaScript uses only brackets). IMO it's likely you'll have more problem with the Document Object Model exposed by various targeted browsers than with JScript/JavaScript themselves... Patrice -- "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> a écrit dans le message de news:%23jbiuoHCFHA.3740@TK2MSFTNGP09.phx.gbl... > I need to do some client-side scripting for my Intranet and was wondering if > Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I > need to make a decision... > > Thanks, > Drew > > |
Re: Jscript or Javascript?
"Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message news:%23jbiuoHCFHA.3740@TK2MSFTNGP09.phx.gbl... > I need to do some client-side scripting for my Intranet and was wondering if > Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I > need to make a decision... > > Thanks, > Drew JavaScript (play it safe) if your sys admin decides to support firefox, you'll be covered |
Re: Jscript or Javascript?
Patrice wrote:
> If I remember the main difference is in indexing arrays (JScript will > use parenthesis or brackets while JavaScript uses only brackets). That's incorrect. Internet Explorer allows parentheses where brackets should go when accessing DOM collections, but not for arrays. Note that Internet Explorer is not JScript, and DOM is not JScript. -- 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. |
| All times are GMT. The time now is 10:16 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.