similar to: prototype ajax + xml response

Displaying 20 results from an estimated 200 matches similar to: "prototype ajax + xml response"

2006 Feb 07
2
Question about Classes.
I have the attached class that I''m writing. The problem that I''m running into is that I can not access the options from the createArray function which get called after the ajax request gets done. I want to move the values of the xml file to an array and story it in the options variable. Can someone explain what I''m doing wrong? var LeaderInfo = Class.create();
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
2006 Apr 17
7
Serve static XML files how?
Hi, a Javascript in one of my Rails templates needs to load a static XML file. I tried several places to put the actual XML file, and I also tried to make the file a rails template (tried both .rhtml and .rxml) and access it via a controller action. None of these ways worked. Does the lighttpd server know how to serve XML files, or do I need to configure it first? Or, is there a good workaround?
2006 Jul 24
15
XML Question
I''ve got an XML file which is pretty well structured. I need to retrieve specific elements from that file to fill out empty HTML elements on a page. I think what I need is xPath? Or - is that overkill? Is there some easier way to locate an XML element? What I have in mind is pulling the XML file using Ajax, then xPath to get the bits I need. Am I on the right path and does
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'',
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {
2012 Apr 03
2
Grouping and/or splitting
I have a dataframe imported from csv file below: Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 2,1,1,96 2,1,2,4 2,1,3,2 2,2,1,58 There are three groups identified based on the combination of first and second columns. How do I split this data frame? I tried aa <- split(inpfil, inpfil[,1:2]) but it has problems. Output desired is aa[1] Houseid,Personid,Tripid,taz 1,1,1,4 1,1,2,7 aa[2]
2013 Mar 04
3
urgent: question concerning data manipulation
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130304/62581e97/attachment.pl>
2006 Feb 21
3
HABTM :insert_sql help
Hi all, I''m working with a legacy sqlserver db and I''m trying to override the insert sql in as defined in the HABTM method below(becasue the join has three primary keys), but I''m getting the error: ''undefined local variable or method `record'' for Project:Class'' has_and_belongs_to_many :people, :class => ''Person'',
2009 Dec 22
3
vector indexing problem in multilevel data: assigning a specific value to all group members
Dear List, I work with multilevel data from psychological group experiments and have frequently encountered a situation for which I haven't found an elegant solution: I need to assign the value of a specific group member to all members of the group. For example, I have a group leader (identified by a binary vector) and some attribute for all group members. I want to create a new
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/
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 13
0
MGeoRSS and IE
Hi, Not sure where else to post this since MGeoRSS doesn''t seem to have its own list. I''m using MGeoRSS (http://brainoff.com/gmaps/mgeorss.html) because Google''s GeoRSS API (http://googlemapsapi.blogspot.com/2007/03/kml-and-georss-support-added-to-google.html) doesn''t support local GeoRSS servers (yet - see
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
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 Jun 16
4
Prototype $$() on arbitary DOM element ?
I am bit confused with this function. Should I be able to pass in a DOM element e.g. someAjaxRequest.responseXML and interrogate it ? Seems not but perhaps I am missing something... TIA Matt
2007 Dec 24
3
Affy Package
Dear R Users, In the expresso function, which combination of these methods for data pre-processing (when using affymetrix oligo arrays) is the best: bgcorrect.metod = rma rma2 mas normalize.method = qspline quantiles loess pmcorrect.method = pmonly subtractmm mas summary.method = liwong avgdiff medianpolish mas There are many options within each method. I would appreciate a hint on the best
2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {
2005 Oct 25
2
Content-Type: application/rdf+xml
Hi, I am trying to parse the response received from a rdf file using DOM. However, I am not able to get anything in the responseXML. It always returns null. Following is the content type I receive from the server. Content-Type: application/rdf+xml Can someone let me know how I can receive this as an xmlObj? Thanks in advance, Mandy. _______________________________________________
2008 Jan 19
1
Set Return Type XML in Prototype
Please help i can''t return xml data using prototype. If i use data from direct xml file then it works fine but when i use ajax request with header content xml it''s not working My code just work on IE but in FF it does not working. My code sample are given below If any one already done this kinds of job Please help me as soon as possible. var xmlDoc; function Claulate() { var