Ruby On Rails, Design, Simplicity, Web 2.0, Ajax, Mac and Tons of Pizza.

Jan 05

Strips on rails

Posted by Francesca Resta in Ruby on Rails - comments are closed digg this add to delicious

Lately I was playing with ajax and I found out a really basic thing about javascript that made me waste a lot of time: javascript doesn’t really love hyphens! Perhaps this is something universally known, but I didn’t know about that and it was really driving me mad… seems like when a javascript function get an hyphened-id it is turned in something different… O_o So, this is just a note for those javascript-newbies like me who won’t give up trying out ajax:

... just use ”_” instead!

Post a comment

Categories:

Tags:

Powered by Mephisto, Valid XHTML 1.1, Valid CSS - Supported by Wave Factory