search for: responsetext

Displaying 20 results from an estimated 152 matches for "responsetext".

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...
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 with responseText it doesn''t...
2008 May 24
5
TypeError : transport.responseText has no properties
...n 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 happened, I use firebug to log both the error and the transport object. When I inspect the transport object, transport.responseText is definitely there, and well-formed. Has anyone else encountered this behaviour? Best, Chris henry --~--~---------~--~----~----------...
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 = request.respo...
2008 Jan 30
3
Ajax.Request - nothing in responseText, I need it!!
...a.php?myparams"; new Ajax.Request(url, { method: ''POST'', asynchronus: ''true'', contentType: ''text/html'', onComplete: parseData}); } function parseData(originalRequest) { myResponse = originalRequest.responseText; myDivID.innerHTML += myResponse; } ------------------------------------------------- when I include alerts in parseData to see if there is any content to responseText, it always comes back empty. What am I doing wrong here? Like I said, the php script is working fine, but there seems to...
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 tytuł Króla Strzelców i poczuj atmosferę Ligi Mistrzów: http://klik.wp.pl/?adr=www.ligamistrzow.wp.pl&sid=688
2009 Jun 14
3
Basic AJAX Response (Mootools)
...e 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 Moo-specific JS Script // @.js : new Request( { url: ''bla'' onSuccess: function(responseText, responseXML) { console.warn(responseText); console.warn(responseXML); } , onFailure: function(xhr) { alert(STD_ERR); } }).send(); // @SomeController : respond_to do |format| format.html { head :ok } format.xml { render :xml => ({:foo => "bar...
2008 May 21
6
this.initialize has no properties error in Prototype Code
...r span = ''totalViews'' + video_id; var params = ''video_id='' + video_id; Ajax.Response(''trackVideo.php'', { method: ''post'', parameters: params, onSuccess: function(transport) { var count = transport.responseText; $(''span'').innerHTML = count; Mediabox.open(video_url, '''', ''mediabox[480 380]''); }, onFailure: function() { alert(''I Fudged Things.''); } } ); However, when I try to execute the co...
2008 Jan 19
1
Set Return Type XML in Prototype
...Ajax.Request( url, { method: ''get'', parameters: pars, onComplete: loadXML }); } function loadXML(xmlHttpRequest) { // code for IE if (window.ActiveXObject) { xmlDoc = new ActiveXObject("MSXML2.DOMDocument"); xmlDoc.loadXML(xmlHttpRequest.responseText); //xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); //xmlDoc.async=false; //xmlDoc.load(xmlHttpRequest.responseText); alert(xmlHttpRequest.responseText); getmessage(); } // code for Mozilla, Firefox, Opera, etc. else if (document.implementation && document.implementati...
2006 Jan 14
14
Javascript/AJAX Debugging
...apter 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 => "eval(request.responseText)", :url => {:action => ''update'', :id => @cause.id}) %> <div id="div1">super</div> <div id="div2">super</div> <div id="div3">super</div> <%= end_form_tag %> views/causes/c...
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/ restlet/"; url = url + "engines" + sServer; new Ajax.Request(url, {...
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
...There was an error.''); 9. } 10. function reportComplete(request) 11. { 12. alert(''onComplete: '' + request.responseText); 13. } 14. function reportSuccess(request) 15. { 16. alert(''onSuccess: '' + request.responseText); 17....
2008 Jun 17
4
Formating Date Field
...=displaydate/> </form> <script> function callJs(arg1) { var url="Ajax.jsp"; new Ajax.Request(url, {asynchronous: true,method: "post",parameters: "ajaxrefno=" +arg1, onSuccess: function(request) { $(''displaydatetxt'').value =request.responseText; }, onFailure: function(request) { $(''displaydatetxt'').value =request.responseText;} }); } </script> </body> </html> ******************************** Now the Ajax.jsp <html> <body><% if(request.getParameter("ajaxrefno")!=null...
2005 Oct 06
0
Re: Ajax.Request: responseText = null in Safari
Hi > Any tips? Does my PHP script need to return certain headers for > this to > work in Safari? It is probably worth doing a sanity check and hard code a php response so you know that the problem is at the receiving end and not a problem with the php request from safari. The content-type header of the response should be text/xml or application/xml but I don''t think
2006 Apr 06
4
function onComplete how to overload?
...use result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I don''t know id of my html element. I need to do something like this: funcion onComplete(originalResponse,param1) { if (param1 != something) $(''result'').value = originalRequest.responseText; else $(''resultSecond'').value = originalRequest.responseText; } How to achieve this? ---------------------------------------------------- W kwietniowym numerze "Zwierciadła" "3 x Malle" - płyty z filmami Louise Malle''a i konkurs z cennymi nagroda...
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/.
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 blank. The response is a well-formed xml document, and I''m sending the "content-type: text/xml; charset=utf-8" header. Is this an encoding p...
2006 Jan 10
2
Make link_to_remote call redirect current view, not read redirected content
...remote(''Create Party'', { :url => {:action => ''convert_to_party'', :id => request}, :loading => visual_effect(:fade, "create-#{request.id}"), :failure => %q{alert(''Failure to update: '' + request.responseText)}, 302 => %q(alert(''Redirect To: '' + request.inspect))}, { :title => ''Convert to Party'', :id => "create-#{request.id}" })%> class DashboardController < ApplicationController def convert_to_party @contact_request =...
2008 Jun 26
7
Strange readyStates in prototype Ajax
...transport says 1!!!!! That last one is the real problem - because readyState is 4 but the real readyState in the XHR object is still actually 1, the success callback is triggered (because Ajax.Response checks transport.readyState, not the readyState passed to respondToReadyState), but there is no responseText (yet), so the whole call fails. Extremely frustrating bug to tease out, let me tell you, because Firebug *always* seems to get the right responseText, even though Prototype doesn''t. It was easy enough now to fix my problem, all I did was this: respondToReadyState: function(readyState)...
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
...} > 10. > function > reportComplete(request) > 11. > { > 12. > > alert(''onComplete: '' + > request.responseText); > 13. > } > 14. > function > reportSuccess(request) > 15. > { > 16. > > alert(''onSuccess: '' + &...