<img src="page.asp">

M

McKirahan

If I have a Web page invoked via http://myDomain.com/What.htm
that references an ASP page via the <img> tag's "src=" like this:

<html>
<head>
<title>Page.htm</title>
</head>
<body>
<img src="http://myDomain.com/Page.asp"
border="0" width="0" height="0" alt="">
</body>
</html>

I know I can have the ASP add an entry to a log file, etc.

But can I have it affect what is displayed in the browser?
(And I don't mean showing an image.)

The following does not work:

<%@ Language="VBScript" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redirect(cURL)
%>

Thanks in advance for any information.
 
K

Kyle Peterson

with an img tag nope..
with an iframe to the asp page sure you could show something on the htm
page..

pretty much everything supports it nowadays too

not sure if its anything you want to do just a suggestion
 
S

Steven Burn

You need to either map the HTML file to work as ASP files, or use client
side <script tags/code in the ASP file.

'// page.asp
<%@ Language="VBScript" %>
<%
Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Write "<script>location.href='" & cURL & "';</script>"
%>

Example:
http://mysteryfcm.plus.com/misc/pgClientRedir.asp

Code:
http://mysteryfcm.plus.com/misc/pgClientRedir.asp?s=1

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top