Advertisement

04.07.2008 at 10:15AM PDT, ID: 23302025
[x]
Attachment Details

Can I call a vbscript function from within JavaScript?

Asked by TheInnovator in Active Server Pages (ASP), JavaScript, VB Script

Tags: ASP,VBscript, Javascript

I'm trying to call a vbscript function from inside Javascript.  Is that possible.?

The reason for this is, if the user clicks the "Update" button it goes through some  javascript validation.  It also goes through validation when the user clicks "Delete" before actually deleting from the database.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
<SCRIPT language="JavaScript">
<!--
function confirmDelete()
{
 var confDel = confirm("Are you sure you want to DELETE?");
 
 if (confDel== true)
 {
    document.write("<%=   call datadelete() %>"); <--- line 865
 }
}
//-->
</SCRIPT>
 
<form>
.
.
.
.
.
<input type=submit name="action" value="Update" ID="Submit7" onClick="update();">
 
<input type=submit name="action" value="Delete" ID="Submit8" onClick="confirmDelete();">
 
""I changed the above delete to a "button" but get an error. See below:""
<input type=button name="action" value="Delete" ID="Submit8" onClick="confirmDelete();">
 
ERORR..
Microsoft VBScript compilation error '800a03ea' 
 
Syntax error 
 
request.asp, line 865 
 
Response.Write(call datadelete())
 
 
</form>
[+][-]04.07.2008 at 10:20AM PDT, ID: 21298806

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), JavaScript, VB Script
Tags: ASP,VBscript, Javascript
Sign Up Now!
Solution Provided By: b0lsc0tt
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.07.2008 at 10:22AM PDT, ID: 21298826

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 10:40AM PDT, ID: 21298978

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.07.2008 at 10:54AM PDT, ID: 21299070

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 11:37AM PDT, ID: 21299475

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 12:05PM PDT, ID: 21299634

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.07.2008 at 12:30PM PDT, ID: 21299814

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628