Displaying 5 results from an estimated 5 matches for "update_div".
2005 Nov 25
0
question on rails , form_remote_tag and backbase
...emote_tag.
I am using the Backbase ajax framework with rails and protoype.js
The following form.rhtml file
<% if @guess %>
<p> It seeems ''<%=h @guess %>'' is hardly the right answer</p>
<% end %>
<%= form_remote_tag(:update => "update_div",
:url => {:action => :guess } ) %>
<label for="guess">Ruby on ....? </label>
<%= text_field_tag :guess %>
<%= submit_tag "Post with Ajax" %>
<%= end_form_tag %>
and template file
<?xml ver...
2006 Mar 23
2
ajax replace div
Hi,
Using form_remote_tag methode, is there a clean way to
directly replace the content of a given div instead of just update it ?
If I destroy the content of the div using this code:
:success => ''$(\''mydiv'').innerHTML = \''\'''',
It works. But it''s not really a clean way...
Any suggestions are very welcome..
Thanks.
Seb
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi,
I''m using prototype within ruby on rails.
One limitation I''d like to overcome is the restriction of beeing able to
update just one html elements content using from_remote_tag or
link_to_remote.
AFAICS this is just a restriction of the form_remote_tag/link_to_remote
implementation and it''s underlying Ajax.Updater class. Right?
In theorie there should be no problem,
2006 Jan 10
8
first ajax demo in Rails book - does it work for anyone?
Just tried the first AJAX example in the rails book (p.391-392, the
''word guessing'' thing), and the AJAX partial used seems to render as a
full page.
I''m not sure whether it''s
a) a partial bug
b) some interaction between ajax and partials
c) a change since the book came out
or
d) pilot error
I''ve checked the errata pages and it''s flagged up
2005 Sep 06
0
Problem with form_remote_tag
Cheers,
I stumbled over a problem/bug with form_remote_tag.
I have a view with
<%= form_remote_tag(:update => "update_div",
:url => { :action => :top_flop },
:loading => "Element.show(''top-flop-indicator'')",
:complete => "Element.hide(''top-flop-indicator'')",
:html =&g...