[thelist] Javascript Woes

Asif Suria asifsuria at yahoo.com
Mon Feb 19 21:32:38 CST 2001


Noted. And thanks for the tip. 

Asif

--- jeff <jeff at members.evolt.org> wrote:
> asif,
> 
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> : From: Asif Suria
> :
> : Probably the single quotes in your
> : function could be a problem.
> :~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> the javascript parser does not care which type of
> quote (single or double)
> you use to wrap your strings with.  what it does
> care about is that it
> doesn't encounter any unescaped quotes of the same
> kind as you chose to wrap
> that string.  if it does encounter unescaped quotes
> of the same kind it will
> throw an error indicating such.
> 
> for matters of readability and reducing the
> necessity of escaping characters
> i have adopted a policy of using single-quotes as my
> string wrapper in
> javascript.  double-quotes are used only around html
> attribute values or
> quoted text.
> 
> good luck,
> 
> .jeff
> 
> name://jeff.howden
> game://web.development
> http://www.evolt.org/
> mailto:jeff at members.evolt.org
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/




More information about the thelist mailing list