Solved

ColdFusion and VBScript

Posted on 2000-03-02
8
334 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamically highly text on a webpage 9 109
Using random iterations in password hashing.  Good or Bad? 4 76
htaccess restrict subdomain 4 88
Web Site Hosting 10 80
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

867 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

19 Experts available now in Live!

Get 1:1 Help Now