That worked! So now my DIV text gets changed to this for some reason:
try { Element.update("definition_box", "Done!"); } catch (e) {
alert('RJS error:\n\n' + e.toString());
alert('Element.update(\"definition_box\", \"Done!\");'); throw e }
Gianluca Tessarolo wrote:
> Wait a moment,
>
> I put the javascript tag and remote function not intyo head but just
> after my div, so I'm sure that is all right with the DOM...
>
> <div id="definition_box"></div>
> <script language="javascript">
> <%= remote_function(:update => "definition_box", :url => { :action =>
> :lookup } ) %>
> </script>
>
> are you sure you have inserted the correct javascript link tag into head
> ?
>
> <%= javascript_include_tag :defaults %>
--
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
-~----------~----~----~----~------~----~------~--~---