[visualization-api] Re: Parse XML GXml

2008-11-14 Thread p00kie
Hi VizGuy, Actually what I am doing totally has to do with the Google Visualization API. 1. I am using GXml in place of XMLHttpRequest as per Google's sample code: http://code.google.com/apis/maps/documentation/services.html 2. Don't look at it as something for the Google Maps API (although

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread p00kie
Anyways. I'm not sure what the problem is. 501 function initialize() { 502 if (GBrowserIsCompatible()) { 503 GDownloadUrl(../output/search/ results.xml, function(data) { 504 var xml =

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread p00kie
So I created a temporary xml sheet just to test something: data data_id id=5310482/ /data 501 function initialize() { 502 if (GBrowserIsCompatible()) { 503 GDownloadUrl(../output/search/ temp.xml, function(data) {

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread Mike Glen
you need to get the text node that is a child of data_id then get its value you prob need to try something like: dataId[0].firstChild.nodeValue p00kie wrote: Anyways. I'm not sure what the problem is. 501 function initialize() { 502 if

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread Mike Glen
did you try alert(dataId[0].firstChild.nodeValue) getAttribute wont work as the element data_id5310482/data_id does not have any attributes p00kie wrote: You mean something like this: alert(dataId[0].item(0).getAttribute(id)); - does not work. On Nov 14, 9:37 am, Mike Glen [EMAIL

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread p00kie
You mean something like this: alert(dataId[0].item(0).getAttribute(id)); - does not work. On Nov 14, 9:37 am, Mike Glen [EMAIL PROTECTED] wrote: you need to get the text node that is a child of data_id then get its value you prob need to try something like:

[visualization-api] Re: Parse XML GXml

2008-11-14 Thread p00kie
That works. Thanks Mike. Is it possible to setCell with a variable? Line 521 works - However line 528 does not. On Nov 14, 9:55 am, Mike Glen [EMAIL PROTECTED] wrote: did you try alert(dataId[0].firstChild.nodeValue) getAttribute wont work as the element data_id5310482/data_id does not

[visualization-api] Re: Parse XML GXml

2008-11-13 Thread p00kie
Attempting to parse this info: if (GBrowserIsCompatible()) { 503 GDownloadUrl(../output/search/ results.xml, function(data) { 504 var xml = GXml.parse(data); 505 var dataId =

[visualization-api] Re: Parse XML GXml

2008-11-13 Thread VizGuy
I am not sure what you are trying to do, but I am quite sure this is not the right group to post this question to, as it has nothing to do with the Google Visualization API. Does it...? VizGuy On Thu, Nov 13, 2008 at 10:20 PM, p00kie [EMAIL PROTECTED] wrote: Attempting to parse this info: