By the way if you want your href also to work (ie allow users to right click and open in new window) you might want to put some link in the href and attach a function dynamically to the anchor elements onDomLoad.
ie, you could have
 
<a href='' class='myClass'>Click here</a>
 
And at the same, on dom load, you can get all anchor elements with myClass and listen to the clicks on it and make it go through your onClickHandler.
 
Makes sense?
 
Thanks,
Mandy.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to