473,385 Members | 1,752 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,385 software developers and data experts.

<img src="page.asp">

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.
Dec 28 '05 #1
2 6780
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
"McKirahan" <Ne**@McKirahan.com> wrote in message
news:JZ******************************@comcast.com. ..
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.

Dec 28 '05 #2
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!

"McKirahan" <Ne**@McKirahan.com> wrote in message
news:JZ******************************@comcast.com. ..
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.

Dec 28 '05 #3

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

Similar topics

8
by: Eric Bragas | last post by:
What is this? <img src="{$ ImagesDir}/photo.gif"> I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type...
9
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript">...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
1
by: Michael Stock | last post by:
Hi all, hopefully someone can tell me how to do this for a web server in C#: We have images in a folder you can't access over the net. So everytime we need to display an image from this folder,...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
0
by: Henri | last post by:
Hi, I've built a custom control named Tree in MyNameSpace.Tree compiled into dans MyNameSpace.Tree.dll I've then designed a page index.asp with its code in index.aspx.vb (class PageIndex)....
1
by: lwhitb1 | last post by:
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found...
3
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.