Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 12th, 2012, 07:00 AM
Registered User
 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call classic ASP function from javascript

Hi Friends,
I am working on classic ASP application.I want to check database value from access table on key press event.
Now I want to check this using javascript.
I have done following code.
<html>
<script type="text/javascript">
document.onkeyup = KeyCheck;
function KeyCheck(event)
{
var KeyID =event.keyCode;
switch(KeyID)
{
case 16:
document.Form1.KeyName.value = "Shift";
call getVal();
case 40:
document.Form1.KeyName.value = "Arrow Down";
break;
}
}

function getVal()
{
<%
'Dim prtObj,result
'set Conn=Server.CreateObject("ADODB.Connection")
'Conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
' "Dbq=c:\Inetpub\wwwroot\kosDev\dbVBRFVal.mdb;"
'Set RS=Conn.Execute("SELECT * FROM RFTab")
'result=RS("RF")
'Response.Write(result)
'Response.Write(result)
%>
}
</script>
<form name="Form1">


</form>
</html>

I am not able to call asp function from javascript function.
Plz, I need this urgently.

Thanks in Advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to call Oracle reports 6i through asp classic S Shirani Wrox Book Feedback 0 May 24th, 2009 06:18 AM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
Help with Javascript function call fakeeyed Javascript 1 January 15th, 2006 04:27 AM
ASP classic function lucian Classic ASP Professional 2 May 4th, 2005 12:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.