Strips on rails
Posted by Francesca Resta in
Ruby on Rails -
comments are closed
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!

