[thelist] Calling a function in ASP from a link
Chris Blessing
webguy at mail.rit.edu
Sun Dec 9 14:40:14 CST 2001
I'm assuming since you're talking about db interaction, you've written a VBS
function in an asp page somewhere. You can't use that function client-side.
That's the whole idea behind ASP/PHP/JSP, etc. They're server-side
languages that are interpreted on the fly by the web server.
What you *could* do is link the person to another .asp page which contains
your function, pass it some data via a querystring or something, then use
that data in the function and redirect the user from there. The point is
that you have to keep things separated between client-side (browser; i.e.
javascript form checking, etc.) and server-side (web server; i.e. db
queries, etc.).
Chris Blessing
webguy at mail.rit.edu
http://www.330i.net
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Michael Galvin
Sent: Sunday, December 09, 2001 3:39 PM
To: thelist at lists.evolt.org
Subject: [thelist] Calling a function in ASP from a link
I have an ASP page and on it, I want to give the user the opportunity to
"bookmark" a certain record in the database (ie. the one they're currently
on). I have the function written, etc, but have no idea how to get it to
work from a link.
Basically, I want the link "Bookmark this job" to appear on the page, and
when clicked, it calls the function I've written (VBScript) and *does
nothing else*. I'm guessing I'll have to put <a href="#"> in there
somewhere, but how do I call a VBScript function from a link? OnClick
event?
Anyone?
Michael
---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list