[thelist] (no subject) ASP2.0 server.execute

ashok at magicalkenya.com ashok at magicalkenya.com
Thu May 30 12:08:01 CDT 2002


nope - asp2.0 doesnt have a server.execute command to do this.
but you could do this fairly easily  using a mix of asp 2.0 & client
javascript...

add a named 1 pixel transparent image just below the body tag...
something like ...
<img src="x.gif" height=1 width=1 id=secret>

in an onLoad() javascript event.
do something like :

document.images['secret].src = 'http://x.com/sendmail/mail.asp?txtFrom
="Me at 1stperson.com"';

when the user hits your page , your sendmail/mail.asp with the query string
parameters will get called invisibly without the user knowing it, once the
onLoad() function gets called.

if your mail .asp takes different params you could do something like using
asp to write the onload function for the page :

<%
response.write "<script language=javascript>function onLoad(){"
response.write "document.images['secret].src
='http://x.com/sendmail/mail.asp?txtFrom="+ strServerSideVariable
response.write "</script>"
%>
<body onLoad="javascript:onLoad();">....


HTH
ashok


------
ã$hØK
http://www.unganisha.org
<The contents of this mail should not be construed as  a "if you attack me,
I'll blast your arse" veiled threat >
------





More information about the thelist mailing list