Srikanth Jeeva wrote in post #963500:
> Hi,
>
> You can use JS for doing this easy instead of Ajax.
>
> <div id="comment" style="display:none;">
> <text_box>
> </div>
>
> <a onclick="$('comment').show();">new comment</a>
>
> Regards,
> Srikanth
> http://srikanthjeeva.blogspot.com/
Thanks for the suggestion. But what's '<text_box>'? did you mean to
input ruby code to display a button there?
Besides is there a way to include javascript inside 'link_to' or
'link_to_remote' tag?
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment