> Syntax error - does not compute.
> 
> Look closely and see how you forgot the ")" after "'one'". Javascript
> is very punctuation sensitive, you need to pay special attention to
> it. Also, use Firefox for testing and install Firebug to debug your
> javascript. It would have indicated this error.

Thanks Peter. I changed my code to include the closing parenthesis, but 
it seems to not work still. I am using firefox w/ firebug, although I'm 
still not that seasoned in debugging js - I'll read up on that. Here's 
what I have now:

page << "if ($('test_link').value == 'one') {"
page.alert('hello!')
page << "}"

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to