/    Sign up×
Community /Pin to ProfileBookmark

How to call a VB function from a Javascript function

Hi, what I’m looking for is a way to call a VB function containing a msgbox from a Javascript function.

I’m using ASP.

?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ravAug 25.2003 — It's not exactly possible.

See.. the ASP code is processed on the server side.. so it comes to the client already coded into the HTML..

My recomendation? do something Like this:

<%

set message= "This is the message to show"

if showMSG = TRUE then

%>

<script language=javascript>

alert("<%=message%>");

</script>

<%

end if

%>
×

Success!

Help @mxweb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...