C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

How to call the vbscript function from javascript


Posted Date: 04 Jul 2008      Posted By: Challa SudhakarReddy      Member Level: Gold     Points: 1   Responses: 2



hi,

how to call the vbscript function from javascript function. and also how to pass the variale from javascript to vbscript in ASP3.0.

Kindly help me regarding this. this is VERY VERY VERY URGENT!!!

Thanks!!!





Responses

Author: vallimohan    07 Jul 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 4

Yes, it can.

<HTML>
<Head>
<Script Language=JavaScript>

function callVB(){

VBFunction();

}

</Script>
<Script Language=VBScript>

Function VBFunction()

MsgBox "Hello"

End Function


</Script>
<Body>
<input type=button value="Call VB" onclick="callVB()">
</Body>
</HTML>



Author: kunal badgujar    08 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

hi..

<SCRIPT TYPE="text/vbscript" LANGUAGE="VBScript">
Function SaveChanges()
alert("Hello")
End Function
</SCRIPT>

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
function Validate()
{
var blSaved;
with (objForm)
{
blSaved = Function('return SaveChanges()');
}
}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : how to check textbox value is greate than 100 using javascript
Previous : How to check file extension in java script
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use