Link to home
Start Free TrialLog in
Avatar of GOMF
GOMFFlag for Denmark

asked on

Delphi & ISAPI & HTML

hi guys,

I am trying to get my ISAPI to "automatically" direct a user from one URL to another, without him/her doing anything..how do I do that.

I tried various solutions such as a simple one like this one :

HTML := HTML + '<A HREF="http://'+ServerName+'/index.htm">hej.gif</A>';

Had this is been reguliar HTML on a browser - it would have as soon as the gif file is displayed directed me to servername/index.htm - however it does not..this is prop. because of my ISAPI..

What about TWebResponse..can I do something there ?

Any bright ideas ?


Regards,

GOMF
Avatar of GOMF
GOMF
Flag of Denmark image

ASKER

to put aside any confusion..the hej.gif is not complete..should have had a

<img src="hej.gif"> ....
Avatar of Lischke
Lischke

Try using JavaScript instead:

<script language="JavaScript">
function Redirect() {
  window.location = "http://www.lischke-online.de"}
   
}
}
</script>

<body onload=Redirect>
</body>

Ciao, Mike
Oops, some typos. It should be:


<script language="JavaScript">
function Redirect() {
  window.location = "http://www.lischke-online.de"}
</script>

<body onLoad="Redirect();">
</body>

Ciao, Mike
You can use SendRedirect('http://blahblahblah') for automatic redirection.

But can you describe more in detail what you want to achive 'coz I don't understand your question fully..?
Avatar of GOMF

ASKER

I found a solution to the proble myself, I use a meta name

<META http-equiv="refresh" content="3; URL=http://www.myserver.com">

;-)

Thanks for your help.

Regards,

GOMF
ASKER CERTIFIED SOLUTION
Avatar of Probie
Probie
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Opps, sorry...
you can write the new URI direct to the
TWebResponse.Location instead...
(it's the same as my example above but this is an easier way to do it)

rgds
Probie
Avatar of GOMF

ASKER

goodie.


GOMF