Solved

ColdFusion and VBScript

Posted on 2000-03-02
8
341 Views
Last Modified: 2013-12-24
Can you pass variables from VBScript into CFQueries for ColdFusion? Example please.
0
Comment
Question by:houstim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 

Expert Comment

by:anusha
ID: 2578135
Cannot pass from VBscript to CF.
0
 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Finding an Azure real-time monitoring dashboard 2 91
Public IP Address Amazon Servers 2 68
WebSite Direction 1 79
Soundcloud.com 4 111
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

734 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