Hi,

I have got now ajax to work in my application.

But I have still a small problem :

I have a content - section


.......
<div id = 'cont'>
</div>
......


Than I want to call a action which update this section depending on the
data-constellation in the database.
There is no input-field on the page.

It works fine when I create
<%=link_to_remote("dispatchConstraint",:update => "cont",:url =>
{:action => :dispatch, :order_id => @order}) %>

My problem is : I do not want a link on the page. There is no field to
observe and there is no periodic update necessery.

The action is :

def dispatch
 if (@order.cont==true)
      render :partial => "list"
  else
      render :partial => "addForm"
  end
end

Is there any function to do this ?

What I learned is that the trigger comes from the browser but all
functions I have found need an interaction or is periodically called.

Thanks for any idea


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

Reply via email to