similar to: Basic AJAX Response (Mootools)

Displaying 20 results from an estimated 1000 matches similar to: "Basic AJAX Response (Mootools)"

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 Mar 25
2
responseXML not working on XML file
When creating an Ajax.Request(''/path.xml'') i don''t get responseXML. I''m confused what I am doing wrong. If i change the response variable and dump responseText, it shows the file, it just doesn''t recognize it as xml. function xml(url){ new Ajax.Request(url, { method: ''post'', parameters:''resultSet=simcall'',
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 Jan 16
2
Ajax Response responseXML is null in IE
This may be a Prototype question but is probably a general JavaScript question. I am creating an Ajax.Request and getting back a response that should be evaluated as XML. But in IE, in my onSuccess function, the response.responseXML object is null. In Firefox it works properly. I have checked the three things that are supposed to determine whether the browser interprets the response text as
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
2007 Aug 02
3
Problems with Element.extend() on responseXML elements with IE
I have the following code in the "onSuccess" function of an Ajax.Request() call. The content type of the response message is "text/ xml". function interactionSuccess(request) { var root = $(request.responseXML.documentElement); ... So more or less I extend the root element of my XML response. This call triggers the onException callback. The exception is a
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all, Is there a known bug with Ajax.Updater not working in IE6? I''m having trouble with a Autocompleter control that calls a function that contains an Ajax.Updater as an AfterUpdateElement callback. It works fine in firefox, but I don''t think Ajax.Updater gets called under IE. http://pastebin.com/563889 1. function updater(input, item) { 2. var
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe, After removing all occurrences of charset=utf-8 from my headers I am still getting the same bug in IE. Currently, it''s Content-Type: text/html Any other suggestion? Nathan. > Message: 2 > Date: Mon, 20 Feb 2006 09:13:57 -0500 > From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org> > Subject: RE: [Rails-spinoffs] [Prototype] onSuccess Event
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) {
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(<
2007 Jun 16
3
Help with effect queue.
I have an interesting challenge for you. I am using both Scriptaculous and Prototype on a web site (not using Ruby) and I am trying to queue effects and updates. Here is the situation - I have a page with editable blocks, when the user clicks on the edit button under the box, I want it to: 1) Use Ajax to go out and get the code to build the editor form. 2) When it has the form, use Effect.BlindUp
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/.
2007 Apr 03
2
Some cryptic error in IE
Hello, I am using Sarissa v 0.9.7.6 and prototype v 1.5. In ajax application, I am retrieving xml string from a local servlet and displaying it using xslt processing by sarissa. This works perfectly well in FF, however it gives bunch of error in IE. I have posted same type of problem quite few days back and I stopped using Sarissa. Now I need to use Sarissa so any help would be highly
2008 Apr 14
2
transport.response is truncated
hi - i have a randon but recreatable problem whereby my transport.responseText seems to get truncated. I have tried swithcing btwn onSuccess and onComplete buit it happens on both. As i said it''s totally random. any ideas ? what other info di i need to provide ? many thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to
2008 Aug 25
1
prototype.js Ajax is slow
So I was doing some experimenting with prototype and ajax and discovered something interesting. When I use the first ajax call the response from the server take 53ms. When I use the second on using the prototype functions the request from the server is over 200ms. My question is why, and can it be fixed? <p><a href="#" onclick="serverSideAlert();">Call
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and xml node and put things in an input text but im a little lost, im using this code, but isn''t work, what am i doing wrong? --------------------- <a href="#" onclick="getXML()">Get XML</a> <input type="text" value="nothing here" id="respuesta" />
2008 Aug 10
1
Prototype, JSON and headers
Hi everyone. I love JSON and using Prototype has help me reduce the code to handle AJAX responses. But one thing keeps me confused and sometimes even frustrated. I don''t really understand what is going on with the headers, so if someone could take some time to explain what is going on, I (and probably a lot more people) would be very thankful. The thing is this. On my local server (Mac OS
2006 Jun 28
12
Ajax.Updater
Hi, someone can help me, I am ot able to find the way how to user Ajax.updaterto test if the request give some positive or negative result. I am able only to return the result inside a div. An example is appreciated. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2007 Nov 20
3
Ajax.Updater -- Cancel DOM write?
Is it possible to cancel the DOM write to the element passed to Ajax.Updater? I didn''t see anything in the documentation, and I''d like to use this instead of Ajax.Request. There are situations where the results that are returned will not be what is expected, and I have no control over this. For this reason, I''d like to be able to cancel writing to the DOM. Thanks in
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id; new Ajax.Request( this.config[''url''], { method: ''get'', parameters: pars,