similar to: Make link_to_remote call redirect current view, not read redirected content

Displaying 20 results from an estimated 1300 matches similar to: "Make link_to_remote call redirect current view, not read redirected content"

2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi anybody plz help me how can i use link_to_remote with in form_for.. i tried but no luck... if i use form_tag i can able to use link_to_remote and made ajax call.but i need to use form_for ....can anyone help me how can i do with this.Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Jan 08
0
link_to_remote(image_url url_for_file_column(product, "image
I apologise for bad formatting. I don''t know how to make it nice in an email How do you nest image_url tags into link_to_remote tags. The following creates the error:wrong number of arguments (3 for 2) <%= link_to_remote(image_tag url_for_file_column(product, "image_url"), { "class" => "small_product",
2006 Apr 11
12
RJS
I am trying to use RJS as shown in this tutorial : http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates However it does not seem to work. I am not getting any excpetions in the logs. Here is what the logs say : Parameters: {"action"=>"add", "controller"=>"homepage"} Rendering homepage/add The homepage/add is named add.rjs I know
2006 Jul 16
7
RJS and Action Renders but page doesn''t update
All, I am trying to perform a simple ajax task and am having some difficulties with the page showing the response. The action performs, but no response on the page. I have found examples on the web and I believe I have copied and pasted exactly what works from the demo site. However, on my system it isn''t finishing. For a simple test, I have limited it down to an alert.
2006 Apr 18
2
RE: how to evaluate responseText as an array?
getSelectedGridData()[getSelectedRow()] = eval(response.responseText); I believe that will work. Greg ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Joe Hudson Sent: Tuesday, April 18, 2006 12:56 PM To:
2005 Oct 18
4
responseText Vs responseXML
This is a newbie question. If I have a xml file that I am opening using Ajax.Request, then the response is trapped using responseText. Now this response is a set of xml tags, if I need to traverse through it using DOM, I am not able to use the getElementByTagName method? If I write my own ajax function, then when I do t.responseXML.getElementByTagName(''items'') it works but
2008 May 24
5
TypeError : transport.responseText has no properties
Hello all, I''m using prototype in conjunction with Extjs to build out an Ajax- driven app. I''m noticing that occasionally there will be Ajax Requests that will occasionally not complete. After some investigation, I found that when I made a call to String#evalJSON, it would throw a TypeError with the following message : transport.responseText has no properties. When this
2006 Jul 26
3
insert_html inserting fragment twice
Has anyone had trouble with inline RJS insert_html with the latest version of Rails? My problem is that insert_html inserts the html fragment twice. For example, render :update do |page| page.insert_html :top, "some_list", "<li>booyow</li>" end would render "<li>booyow</li>" twice. Thanks. -- Posted via
2006 Jun 27
5
Ajax - Inserting selected elements from request.responseText
After retrieving a URL using an Ajax.Request... function onComplete (request, json) { // request.responseText holds the entire page Only the content contained in elementID = ''source'' is intended for display At this time, the following code works, but it disturbingly copies the entire page from the source URL into the target DIV $(''target'').innerHTML =
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All, I''m a super newbie with Prototype and am trying to implement my first solution using it. This is my code: var span = ''totalViews'' + video_id; var params = ''video_id='' + video_id; Ajax.Response(''trackVideo.php'', { method: ''post'', parameters: params, onSuccess: function(transport) {
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi, I''ve done AJAX calls to Rails'' Controllers before yet never required to generate a response back to the view. In this respect, I have tried to keep it moronically simple and just add a node to see that it works, yet the response doesn''t come through / isn''t interpreted as it should. Long story short, code : // Have to use Mootools to integrate a
2006 Jan 14
14
Javascript/AJAX Debugging
Hello ! I''m trying to implement something similar to the "multiple updates" section of the Web2.0 chapter of the Agile book. I implemented my version, and nothing is happening. No javascript errors, my logs look fine, page is rendered fine... just no Effect.Highlight. Here is the code: views/causes/cause_home/index.rhtml =============== <%= form_remote_tag(:complete =>
2007 Sep 27
4
transportXML returns null?
Hi, I want to load an XHTML file into DOM. I issue Ajax.Request and on success do: var response=transport.responseXML Response is null. On the other hand: var response=transport.responseText; // has the data. Why is response=transport.responseXML returns null? Here is the code: function display() { url = "http://" + location.hostname + port + "/fusion/
2008 Jan 30
3
Ajax.Request - nothing in responseText, I need it!!
I am at a complete loss here and I need a solution asap! Any help is GREATLY appreciated!!! I have my request going out to a php script that sends a query to my db and then echos the return data into html format. this script works fine when I go to the url in a browser and send the correct params. However, in my ajax request, nothing gets returned?! Here is my code...
2006 Mar 07
1
Ajax.Responders- how to get responseText?
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html but I don''k how to manipulate Ajax responseText in this function. Does anyone know how to do it? Gregor ---------------------------------------------------- Zagraj o
2006 Feb 23
6
prototype ajax + xml response
Hi, I am looking for a solution to use ajax.request object. Return response text will be in xml format and I like to know how to parse that xml information, so that I can put those info into the "span" or "div" tags of my html page. Is there any easy way to parse that xml info using prototype library? Thanks, kevin. -- Posted via http://www.ruby-forum.com/.
2008 Jun 17
4
Formating Date Field
First.jsp ------------------ <jsp:usebean id="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi, I''ve never posted here before so please forgive me if I''m not observing proper decorum, yadda yadda yadda :-) I''ve ran into a very, very strange bug with Prototype I wanted to share and see if anyone else has seen this. In a few of my projects involving Ext JS, I''m using the TreePanel control, which uses AJAX to load child nodes asynchronously. Because I
2005 Sep 07
3
XMLHttp question
I''m continuing my work on integrating fckeditor with Rails. Currently I''m working on implementing the filebrowser / upload features, but I''ve ran into this problem. The response I get back is being loaded into the "responseText" property instead of the "responseXML" property. I''m trying to figure out why this is the case, but am coming up
2006 Apr 06
4
function onComplete how to overload?
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this: funcion onComplete (originalResponse) { ..some operations } I need pass to function one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I