poab
04-17-2003, 10:25 AM
Hi,
I've already asked a question along these lines in the html forum. The thread is here (http://forums.webdeveloper.com/showthread.php?threadid=7553). Pyro was good enough to help me but the issue has taken on an asp angle so I'm posting a variation on the question here...I hope that doesn't count as a cross post.
After the last thread this is where I am. I have a number of .asp files but I want the address bar to read like this:
http://www.mySite.com/about/
so I've created a folder called 'about' and inside put the file index.asp and changed my hyperlinks to read:
<a href="../about/" target="_blank" onFocus="this.blur()">about</a>
etc.etc. This all works the way I wanted. Now here's the asp bit. I have forms on a few of these pages the action looking like this:
<form name="one" action="<% Request.ServerVariables("SCRIPT_NAME") %>" method="post">
The form is supposed to recall the page, check if the form has been submitted, and if it has modify the content. Everything is working swimmingly, except the file path. Once the page loads the address bar reads
http://www.mySite.com/about/
as intended, but once the asp form is run it reads
http://www.mySite.com/about/index.asp
which is exactly what I was trying to avoid. I tried using the same page reference as in the links so the form looked like
<form name="one" action="../about/" method="post">
but the browser's not having any of it, I even tried an absolute path to the file with no joy.
I don't really want to give it up as a bad job because I'm leaving the company soon and I want to leave them with a website they can change if necessary (including changing the type of files if necessary), but I don't ant the inconsistency of the address changing once the form is submitted. Should I just drop this and use a standard 'http://www.mySite.com/about.asp'?
cheers.
I've already asked a question along these lines in the html forum. The thread is here (http://forums.webdeveloper.com/showthread.php?threadid=7553). Pyro was good enough to help me but the issue has taken on an asp angle so I'm posting a variation on the question here...I hope that doesn't count as a cross post.
After the last thread this is where I am. I have a number of .asp files but I want the address bar to read like this:
http://www.mySite.com/about/
so I've created a folder called 'about' and inside put the file index.asp and changed my hyperlinks to read:
<a href="../about/" target="_blank" onFocus="this.blur()">about</a>
etc.etc. This all works the way I wanted. Now here's the asp bit. I have forms on a few of these pages the action looking like this:
<form name="one" action="<% Request.ServerVariables("SCRIPT_NAME") %>" method="post">
The form is supposed to recall the page, check if the form has been submitted, and if it has modify the content. Everything is working swimmingly, except the file path. Once the page loads the address bar reads
http://www.mySite.com/about/
as intended, but once the asp form is run it reads
http://www.mySite.com/about/index.asp
which is exactly what I was trying to avoid. I tried using the same page reference as in the links so the form looked like
<form name="one" action="../about/" method="post">
but the browser's not having any of it, I even tried an absolute path to the file with no joy.
I don't really want to give it up as a bad job because I'm leaving the company soon and I want to leave them with a website they can change if necessary (including changing the type of files if necessary), but I don't ant the inconsistency of the address changing once the form is submitted. Should I just drop this and use a standard 'http://www.mySite.com/about.asp'?
cheers.