Title: Message
Have you tried using CFOBJECT to create the XMLDOM object?
----- Original Message -----
From: Ron Mast
Sent: Friday, March 07, 2003 3:24 PM
Subject: RE: VBScript and ColdFusion

Yeah, I took the set out...:)  I still get a runtime error and the CF error below.
-----Original Message-----
From: Matthew Morvant [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 2:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: VBScript and ColdFusion

The set keyword is only used when assigning objects to variables not simple strings.
-----Original Message-----
From: Ron Mast [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 2:18 PM
To: [EMAIL PROTECTED]
Subject: RE: VBScript and ColdFusion

Hi Jeremy,
 
<script type="text/vbscript">
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("goodinstance.xml")
 
set x=xmlDoc.getElementsByTagName("N1")
set myVariableTest = "Hello Ron!"
 
for i = 1 to x.length
<cfoutput>
 <cfset hello = myVariableTest>
</cfoutput>
document.write(x.item(i-1).getAttribute("N101")+"<BR>")
document.write(x.item(i-1).getAttribute("N103")+"<BR>")
document.write(x.item(i-1).getAttribute("N104")+"<BR>")
next
</script>
 
<cfoutput>#hello#</cfoutput>
 
What am I doing wrong? 

Error Occurred While Processing Request

Error Diagnostic Information

An error occurred while evaluating the expression:

 hello = myVariableTest

Error near line 14, column 8.

Error resolving parameter MYVARIABLETEST

ColdFusion was unable to determine the value of the parameter. This problem is very likely due to the fact that either:

  1. You have misspelled the parameter name, or
  2. You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL, or CFTABLE tag.

The error occurred while processing an element with a general identifier of (CFSET), occupying document position (14:2) to (14:31).

Date/Time: 03/07/03 14:14:06
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)
Remote Address: 89.0.30.48


-----Original Message-----
From: Jeremy Ridout [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: VBScript and ColdFusion

What exactly are you trying to do?
 
With Cold Fusion being a server side technology and VBScript being a Client side technology, the issues shouldnt be too different than using _javascript_.
 
Jeremy
 
-----Original Message-----
From: Ron Mast [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:38 PM
To: [EMAIL PROTECTED]
Subject: VBScript and ColdFusion

Hi All,
Does any of you have an example of How to integrate CF with VBScript?

Ron Mast
Truth Hardware
Webmaster
(507)444-4748