I am using MSXML 4 because I have to (legacy app, and I need to get it
working on my machine)...
I can create the object easily enough, but as soon as I try to use it, or
create a document element, then I get this message:
"An exception occurred when executing a Com method.
The cause of this exception was that: java.lang.NoSuchMethodException: There
is no method called Item."
Code:
<cfset request.strXMLParser = "MSXML2.DOMDocument.4.0">
<!--- create an instance of the MSXML object --->
<cfobject type="COM" name="xmlDoc" class="#request.strXMLParser#"
action="CREATE" context="INPROC">
<!--- add processing instruction --->
<cfSet xmlPI = xmlDoc.appendChild(xmlDoc.createProcessingInstruction("xml",
"version='1.0'"))>
<cfscript>
newElem = xmldoc.createElement("Tree");
xmldoc.documentElement = newElem;
</cfscript>
Error is thrown on the xmldoc.documentElement = newElem line (in fact it
doesn't matter what the line says, when I try to write the documentElement
property, it messes up).
Now, COM says that to use an object, it must contain an "Item" method. The
application works on CF5, but not on CFMX. Has anyone else come across this
before and is there a simple workaround (apart from adding in an Item
method, which I really don't want to do!)
Anyone?
Paul
PS If it's MSXML 4 that's wrong... it's hardly a surprise is it? Who came
up with COM anyway?
-------------------------------------------
Paul Johnston
PJ Net Solutions Ltd
http://www.pjnetsolutions.com
[EMAIL PROTECTED]
+44 (0)7866 573013
> -----Original Message-----
> From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> Sent: 02 January 2003 11:36
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] WOT: removing iframe border using CSS
>
>
> > Here are all the iframe attributes.
> >
> > <iframe src="filename" width="400" height="400" marginwidth="0"
> > marginheight="0" align="left" frameborder="0"> </iframe>
> >
> > If a style of
> > border : none;
> >
> > doesn't work then that css attribute doesn't affect iframe border.
>
> Cule, thanks Russ. Yeah, looks like frameborder is going to
> have to be it, although I hate using attributes where CSS should work.
>
> And I realised after posting the follow-up that I'd lied
> (well, made a mistake); style="border: none;" works for
> Netscape in the iframe tag, not in the body tag.
>
>
> --
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental Ltd +44 (0)1695 51775
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star
> Internet. The service is powered by MessageLabs. For more
> information on a proactive anti-virus service working around
> the clock, around the globe, visit: http://www.star.net.uk
> ______________________________________________________________
> __________
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED] For human help, e-mail:
> [EMAIL PROTECTED]
>
>
>
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]