[Rails] Feeling silly
Gerald Anderson
gander at vte.com
Tue Jul 25 15:29:55 GMT 2006
I don't know why, but I am drawing a complete blank on something that
should be easy. I've been searching, perhaps using wrong terms, and
still not coming up with anything. Here's what I'm trying to do:
<div class="button"
onMouseOver='this.className="button_hover"';
onMouseOut ='this.className="button"';
onClick ='this.className="button_click";
open("/main/test");'>
Clear Event
</div>
Where the div is a homemade css button. onClick, the button needs to
make a change in css class and make an js/ajax call to a url (will be
generated with rails, but /main/test is proof of concept). I'm not at
all sure how to handle this, and I know I should know, hehe.
I would appreciate any help getting my brain turned around the right way
on this.
Thanks!
gander
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list