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 %>
> Yes, it's in a script tag that's up in my <head> node.  So just now I 
> added this line to my routes.rb wondering if it's related to the issue:
>
>   map.connect 'lookup', :controller => 'home', :action => 'lookup'
>
> Both before and after adding this line, my Javascript alert box pops up 
> to let me know it entered the Javascript function that calls my 
> remote_function, but then my debug statement in the controller action 
> never spits out anything to the server console!
>
> Thanks for any help...
>
>
>
> Gianluca Tessarolo wrote:
>   
>> Hi,
>>
>> I'm using rails 2.3.2 with jrails/jquery and remote_function works.
>>
>> Do you have enclosed the remote_function call with <script> tag ?
>>
>> Try this...
>>
>> <script language="javascript">
>>   <%= remote_function(:update => "definition_box", :url => { :action => 
>> :lookup } ) %>
>> </script>
>>
>> Hope this helps !
>>     
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to