On 7/15/06, Martin Ström <[EMAIL PROTECTED]> wrote:
Actuall I'm just used to use double quotes instead. Since no quotes
are parsed in JavaScript there aren't any difference. I can change the
quotes to single if this is the preferred Prototype way?

Using ' versus " in JavaScript is largely a style preference.  I tend
to use " in HTML and ' in JavaScript, Perl, Oracle, etc..  While there
might be some value in being consistant with
Prototype/script.aculo.us, especially the examples available on the
wiki and the documentation that others have put together, it's your
call.  I'm a big fan of consistancy.

What, exactly, do you mean by "Since no quotes are parsed in
JavaScript there aren't any difference."?  There may be places where
JavaScript auto-quotes (such as when defining keys in an Object), but
to the best of my knowledge, JavaScript is definitely aware of and
sensitive to quotes.

Todd

P.S. I'm interpreting the term "quotes" to mean both single and double.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to