473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Call VB Script's function

Max
Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?

thanks

Ma

Nov 18 '05 #1
4 3090
If your function name is called myFunction and accepts a parameter myVar
you would use the below code, the returned value is assigned to
returnedValue

<script language=vbscript>
Dim returnedValue
returnedValue = myFunction("valueofmyVar")
</script>

Matt

"Max" <an*******@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?
thanks,

Max

Nov 18 '05 #2
If your function name is called myFunction and accepts a parameter myVar
you would use the below code, the returned value is assigned to
returnedValue

<script language=vbscript>
Dim returnedValue
returnedValue = myFunction("valueofmyVar")
</script>

Matt

"Max" <an*******@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?
thanks,

Max

Nov 18 '05 #3
Client script blocks can only be called on the client side. You can
register the script as a startup script if you want it to be executed
when the page loads.
/Hugo

On Mon, 5 Apr 2004 23:51:02 -0700, Max
<an*******@discussions.microsoft.com> wrote:
Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?

thanks,

Max


Nov 18 '05 #4
Client script blocks can only be called on the client side. You can
register the script as a startup script if you want it to be executed
when the page loads.
/Hugo

On Mon, 5 Apr 2004 23:51:02 -0700, Max
<an*******@discussions.microsoft.com> wrote:
Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?

thanks,

Max


Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
1
by: cheezebeetle | last post by:
ok, so I am having problems passing in an ASPX function into the Javascript in the codebehind page. I am simply using a confirm call which when they press "OK" they call this ASPX function, when...
3
by: JoeK | last post by:
Hey all, I am automating a web page from Visual Foxpro. I can control all the textboxes, radio buttons, and command buttons using syntax such as: ...
2
by: Alani | last post by:
Hello All, I'm a new ASP.NET programmer and I want to create a custom control consist of two properties (Number1) and (Number2) and both of them are integers and default value = 0, now I'm...
3
by: KaNos | last post by:
Hi, "robot script pages" are html+javascript pages, can be played in aspx player. So in this tech, robot call aspx player's function (an interface is sheared) and wait a result synchronously with...
2
by: harishdixit1 | last post by:
Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
11
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
10
by: evicailieva | last post by:
A have a php scrip where I call a JavaScript function. I don't know why, but it doesn't work. At the beginning, when I was writing the script it was working but now it's not. I don't know wхat to do....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.