I can't dump any COM object with CFDUMP in CF5 anyway.
objXMLHTTP.open("GET", "http://www.coldfusionist.com/xml/rss/rss.xml",
False);
objXMLHTTP.Send();
* By now I already have retrieved the XML file which I assign to objXMLDOM
*
objXMLDOM = objXMLHTTP.ResponseXML;
The error I get when using () is
Just in time compilation error
Invalid parser construct found on line 35 at position 62. ColdFusion was
looking at the following text:
.
The eror I get when using [] is
Failed attempting to find "0" property/method on the object
As I said before, code works fine in VB.....
Maybe cfscript just can handle this method call???
Nobody else out there using objects to create XML within cf? (CF5 that is
;-()
----- Original Message -----
From: "Viktor Radnai" <[EMAIL PROTECTED]>
Newsgroups: cfaussie
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 7:54 PM
Subject: [cfaussie] Re: cfscript object array reference
> Taco,
>
> Is it possible to dump out objXMLHTTP.ResponseXML to see what it is? I
> don't want to sound dumb but aren't you overwriting your objXMLDOM
> object with it?
>
> Overwriting it is of course fine *if* objXMLHTTP.ResponseXML is already
> an XMLDOM object, but if it's the raw XML dump, then you have a problem.
>
> Am I totally missing the plot here?
> Are you getting any errors anyway?
>
> Taco Fleur wrote:
> > Thanks, but no its not the case, just copied the wrong code in the
email.
> > Following is the correct code
> >
> > objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");
> > objXMLDOM = createObject("COM", "Microsoft.XMLDOM");
> >
> > objXMLHTTP.open("GET", "http://www.coldfusionist.com/xml/rss/rss.xml",
> > False);
> > objXMLHTTP.Send();
> > objXMLDOM = objXMLHTTP.ResponseXML;
> >
> > objItem = objXMLDOM.getElementsByTagName("item");
> >
> > writeOutput("<table width=""100%"" cellspacing=""5""
cellpadding=""5"">");
> > for (i = 0; i LTE objItem.length - 1; i = i +1 )
> > {
> > writeOutput("<tr>");
> > writeOutput("<td width='200'>");
> > writeOutput("<a href='foo' target='_blank'>foo" & objItem(i).text);
> > writeOutput("</a></td>");
> > writeOutput("<td></td>");
> > writeOutput("</tr>");
> > }
> >
> > writeOutput("</table>");
> >
> > objXMLHTTP = false;
> > objXMLDOM = false;
> >
> >
> > ----- Original Message -----
> > From: "Viktor Radnai" <[EMAIL PROTECTED]>
> > Newsgroups: cfaussie
> > To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
> > Sent: Monday, February 24, 2003 7:07 PM
> > Subject: [cfaussie] Re: cfscript object array reference
> >
> >
> >
> >>Hi Taco,
> >>
> >>I haven't played with XML objects before, but isn't your problem caused
> >>by you accidentally changing objXMLHTTP to objXMLDOM?
> >>
> >>Apologies if I'm completely losing the plot here, I don't know anything
> >>about the COM object you're using.
> >>
> >>Taco Fleur wrote:
> >>
> >>>objXMLHTTP = createObject("COM", "Microsoft.XMLHTTP");
> >>>
> >>>The code below creates an array and assigns it to the variable
> >>>"objURL" if I am correct
> >>>objURL = objXMLDOM.getElementsByTagName("url");
> >>>
> >>>However I can't seem to refence to it, neither with
> >>>objURL(i).text); nor with
> >>>objURL[i].text);
> >>>
> >>>Any ideas?
> >>
> >>
> >>---
> >>You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> >>To unsubscribe send a blank email to
> >
> > [EMAIL PROTECTED]
> >
> >>MX Downunder AsiaPac DevCon - http://mxdu.com/
> >>
> >
> >
> >
> >
> >
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/