similar to: q: master/child with ajax

Displaying 20 results from an estimated 20000 matches similar to: "q: master/child with ajax"

2006 Apr 26
3
q: master/child where children are added with ajax
Say my user creates an Article and an Article has_many :links. The edit form for article contains an "add link" link_to_remote that brings up an edit line for links for further reading. The problem is that there is that the Article is not yet saved, so it''s unclear how to accumulate or remove these items. I''m sure others have implemented similar things. Hints? Thanks
2005 Dec 14
0
Master-Details with Ajax
I have in my rhtml file an master-detail data structur <ul id="master"> <li><%= link_to_remote ''aaa'', :update=>''details''... %></li> <li><%= link_to_remote ''bbb'', :update=>''details''... %></li> <li><%= link_to_remote ''ccc'',
2006 Apr 13
1
Adding a title to an AJAX link.
Hello all. I am trying to add a title to a link_to_remote created AJAX link. What I want to create is: <a href="#" title="VALUE-HERE" onclick="new Ajax.Updater(''content'', ''/area/show/28/40'', {asynchronous:true, evalScripts:true}); return false;">Area Name</a> However I cannot seem to get it to work, the API says
2006 Jun 01
1
link_to_remote renders Ajax.Updater, sometimes Ajax.Request
I''m new to Rails, but am really enjoying working with it. But i just hit a brick wall... I have two link_to_remote tags in two seperate _whatever.rhtml files. The targets of the updates are in edit.rhtml which does a render :partial to include the links. here''s some code: <%= link_to_remote ''Destroy'', :update => "libtable",
2007 Aug 12
0
Newbie: AJAX not working - Undefined Method error
Hello I have included prototype in my Applications rhtml file <head> <%= javascript_include_tag "prototype" %> <title>FLYPRO </title> <%= stylesheet_link_tag ''flypro'' %> </head> I call link_to_remote in a page as follows <div id="flypro-list"> </div> <%= link_to_remote("Do
2006 Feb 28
1
Ajax functions with embedded objects
Hi, In my project, there is an rhtml page with an embedded SVG file. In my javascript functions, I can find an object by id inside the SVG file with the following: ObjectInSVG = top.document.embeds[0].getSVGDocument().getElementById("rect"); Now, I want to use Ajax methods, like link_to_remote, in the rhtml page to manipulate the SVG objects. The problem is that link_to_remote
2006 Jan 11
0
AJAX: link_to_remote problem
I use: <%= link_to_remote("Update", :update => ''mydiv'', :url => { :action => :create, :host => ''rails'' }) %> which generates the following: <a href="#" onclick="new Ajax.Updater(''mydiv'', ''/account/create'', {asynchronous:true, evalScripts:true}); return
2006 Feb 20
0
Ajax and tables
Guys, I want to be able to update the contents of a table without dedrawing the entire thing. Basically, if the user clicks on the 2nd column then i want to turn that cell red, the 3rd green and the 4th blue. I have the table drawing correctly now but not updating correctly. I can''t get the update to work on the div unless its inside the table cell. I was hoping to have the div
2006 Jan 26
2
link_to_remote > in :action , interrupt ajax to render a new page outside the :update div ?
Hello, I have a simple link_to_remote that refresh a div. I just want to know if it''s possible to interrupt the div''s refresh inside :action to perform a complete reload of the page, outside of the div Actually, I havea a new page, but loaded inside the ":update" div. Someone have an idea please ? the rhtml: **** link_to_remote "yeah" , :update =>
2006 Feb 12
2
link_to_remote (AJAX) and tables: IE issues, validation?
I have a table that lists domain names, with a form next to it to add new domains. I have AJAXified this so that new domains are immediately added as table rows. This works fine in Firefox 1.5/Win, but not in IE6/Win. Domains are added into the database, but the HTML table is not updated unless you reload the page. Some googling tells me there are issues with e.g. link_to_remote updating
2006 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%=
2006 Jun 19
1
AJAX - Image output to an IMG tag ?
Hi, I''m using the "link_to_remote" AJAX function call from my "view", and what i want is after i get the results from the function call, I want to update the result directly into to an image ie. <IMG> tag, how to do this.?? ie. if we want to update the result into a ''div'' element we do like this, which works fine.. link_to_remote(:update
2006 Apr 18
0
AJAX not displaying - due to action not complete?
Hi everyone, I''ve got a pair of AJAX actions that use slide_up and slide_down to toggle the editing of some info. You first see a table of entitlements for a user. Clicking "Change these" slides that up and then a full table comes down, displaying all possible entitlements for that user. Remove and Add links are next to the appropriate entitlements. When finished, clicking
2006 Apr 19
1
render() call that does AJAX request?
All, I have a page where I was using link_to_remote to do an AJAX call to dynamically update another part of the page. I''d like to just do the update no matter what (e.g. take out the need for the user to click). So I''m thinking that I need to render, but I want my render to do an AJAX request to the same controller method that my link_to_remote did. How can I achieve
2009 Apr 29
1
will_paginate urls and AJAX calls
I am using will_paginate to paginate my site. I also have a link_to_remote in my view that will toggle view modes (from list to icon view). My will_paginate code works fine until I click on my link_to_remote. At that point my will_paginate code (which is in the partial that is updated in the link_to_remote) is broken. i.e. the link changes from /documents?page=1 to /documents/toggle_view? page=1
2007 Jan 21
1
Strange Ajax Error Since Upgrade
Hi All I''m getting the following very strange Ajax error and I''ve searched Google, this group and various other places to no avail. So I''m desperately hoping someone here can help. Whenever I try to execute any Ajax call whether as a form request or a link_to_remote link I get the following error: ------------------- FORM REQUEST ------------------- [2007-01-21
2005 Dec 24
2
Ajax Help: Multiple Updates - ?
Hi! Wondering if anyone can tell me what''s wrong with my code? I''m trying to use the onChange event of a select list to update multiple divs... Agile Web Development with Rails (p. 403) suggests using ":complete => eval(request.responseText) instead of :update" I''ve attempted the following test code: # in the view <select name="plist",
2010 Jan 13
2
[Ajax on Rails]How to pass an object via param
I''m trying to pass an object as a parameter on a link_to_remote. What I do is pretty simple: link_to_remote ''Insert subquestion'', :url => {:action => ''add_subquestion'', :question => @question}, :update => '''', :method => :get But, obviously, what I get is a string which has the address of the object. Can I
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for an action, and the page needs to reload. link_to_remote worked great when I was updating a DOM element but obviously won''t work when I need to reload a page. Is there an option -- Posted via http://www.ruby-forum.com/.
2006 May 07
1
Clean incrementer across Ajax calls?
Hey all, I want to have an ajax call that increments a number each time it is called. Basically I have want to render a partial that contains a call to append that same partial again at the end of the div. Perhaps it will help if I give the example code. So in my view.rhtml i have: === view.rhtml === <div id="where_clause_div"> <%= link_to_remote ''Add'',