GOMF
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
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
Try using JavaScript instead:
<script language="JavaScript">
function Redirect() {
window.location = "http://www.lischke-online.de"}
}
}
</script>
<body onload=Redirect>
</body>
Ciao, Mike
<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
<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..?
But can you describe more in detail what you want to achive 'coz I don't understand your question fully..?
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
<META http-equiv="refresh" content="3; URL=http://www.myserver.com">
;-)
Thanks for your help.
Regards,
GOMF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER
goodie.
GOMF
GOMF
ASKER
<img src="hej.gif"> ....