Hi there,
if got some problems getting the Ajax.Request to work with rails.
sending the request via onclick works but the interpretaition fails
if I execute:
render :update do |page|
page.replace 'test', :text => 'it works'
end
I get 2 alerts:
RJS error:
TypeError: $("#test") is null
$("#test").replaceWith("it works");
---
There is a div with id="test" given.
To know more about it I changed the div's id to "#test".
all I get is:
RJS error:
TypeError: $("#test").replaceWith is not a function
$("#test").replaceWith("it works");
I did <%= javascript_include_tag :default %> in the application, but i'm
not quite sure if prototype is really implemented. How can I check this?
Prototype v.2.0.0
Rails v.2.3.5
Thank you
Hans
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.