Solved

ColdFusion and VBScript

Posted on 2000-03-02
8
333 Views
Last Modified: 2013-12-24
Can you pass variables from VBScript into CFQueries for ColdFusion? Example please.
0
Comment
Question by:houstim
8 Comments
 
LVL 1

Expert Comment

by:deepchanda
ID: 2577922
i dont know much about VBscript myself, but i would think it more of a client-side scripting language. Since CFquery tag is something that is processed at the server side, the VBscript code wont get run until it reaches the client browser

DC
0
 

Expert Comment

by:samphi
ID: 2577968
I dont know much about VBscript, but CF can UPDATE a data ...
And VBS can only INSERT, DELETE...

I'm not sure...
0
 

Expert Comment

by:anusha
ID: 2578133
Cannot pass from VBscript to CF.
0
 

Expert Comment

by:anusha
ID: 2578135
Cannot pass from VBscript to CF.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 5

Expert Comment

by:nathans
ID: 2581194
Are you referring to in the SAME page?  If so you might be able to use wddx and xml??? maybe??
0
 
LVL 1

Expert Comment

by:GGena
ID: 2582715
VBscript is working on client side. CF - on server. You cannot send data inside the same page without refreshing this page.

If you want to send values to another page it will be (in JavaScript) like

function SendVar(a,b){

location="newpage.cfm?FirstVar=" + a + "SecondVar=" + b
}


Sorry about JavaScript, but at VBscript it will be similar.
0
 
LVL 1

Expert Comment

by:GGena
ID: 2582716
GGena changed the proposed answer to a comment
0
 
LVL 1

Accepted Solution

by:
GGena earned 60 total points
ID: 2582720
VBscript is working on client side. CF - on server. You cannot send data inside the same page without refreshing this page.

If you want to send values to another page it will be (in JavaScript) like

function SendVar(a,b){

location="newpage.cfm?FirstVar=" + a + "SecondVar=" + b
}

newpage.cfm:
======================
<cfquery name=MeQuery>
   SELECT *
   FROM MyTable
   WHERE Field1=#FirsrVar# AND
         Field2=#SecondVar#
</cfquery>


Sorry about JavaScript, but at VBscript it will be similar.
0

Featured Post

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Join & Write a Comment

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now