Click here to Skip to main content
16,010,488 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Redirect question Pin
Michela20-Nov-02 3:21
Michela20-Nov-02 3:21 
GeneralRe: Redirect question Pin
Tom Archer20-Nov-02 4:01
Tom Archer20-Nov-02 4:01 
GeneralIIS versus Personal Web Server Pin
Anonymous18-Nov-02 5:27
Anonymous18-Nov-02 5:27 
GeneralRe: IIS versus Personal Web Server Pin
Megan Forbes18-Nov-02 5:39
Megan Forbes18-Nov-02 5:39 
GeneralRe: IIS versus Personal Web Server Pin
joan_fl18-Nov-02 12:01
joan_fl18-Nov-02 12:01 
GeneralRe: IIS versus Personal Web Server Pin
benjymous21-Nov-02 3:53
benjymous21-Nov-02 3:53 
GeneralInclude file/virtual problem... Pin
Sarvesvara (BVKS) Dasa17-Nov-02 19:58
Sarvesvara (BVKS) Dasa17-Nov-02 19:58 
GeneralRe: Include file/virtual problem... Pin
Paul Watson17-Nov-02 21:58
sitebuilderPaul Watson17-Nov-02 21:58 
SPS wrote:
When I click a link from that file (now I am in /home/2/2a) for a file @ /home/. It displays 404-file not found error.

Ok I am not sure what the include files have to do with 404 errors but here is some info which may help.

HTML includes a very helpful element: <base href="" />

Basically what it does is tell the browser that all relative URLs are to be prefixed with the value of the href attribute.

So I could have the following HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <base href="http://www.notinkansas.com/" />
    </head>
    <body>
        <a href="about.htm"><img src="res/img/test.png" /></a>        
    </body>
</html>


You could place that HTML file in any sub-directory of notinkansas.com but the IMG and A elements will find the right file.


Just be careful though as it screws ASP.NET forms up and you have to use some JavaScript to sort it out.

Paul Watson
Bluegrass
Cape Town, South Africa

Colin Davies wrote:
...can you imagine a John Simmons stalker !
GeneralRe: Include file/virtual problem... Pin
Sarvesvara (BVKS) Dasa18-Nov-02 19:38
Sarvesvara (BVKS) Dasa18-Nov-02 19:38 
GeneralFrames in web-page Pin
Sarvesvara (BVKS) Dasa16-Nov-02 1:56
Sarvesvara (BVKS) Dasa16-Nov-02 1:56 
GeneralRe: Frames in web-page Pin
Anonymous16-Nov-02 2:24
Anonymous16-Nov-02 2:24 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa16-Nov-02 2:37
Sarvesvara (BVKS) Dasa16-Nov-02 2:37 
GeneralRe: Frames in web-page Pin
Anonymous16-Nov-02 2:53
Anonymous16-Nov-02 2:53 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa17-Nov-02 1:53
Sarvesvara (BVKS) Dasa17-Nov-02 1:53 
GeneralRe: Frames in web-page Pin
ian mariano16-Nov-02 9:56
ian mariano16-Nov-02 9:56 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa17-Nov-02 1:58
Sarvesvara (BVKS) Dasa17-Nov-02 1:58 
GeneralRe: Frames in web-page Pin
Paul Watson17-Nov-02 6:31
sitebuilderPaul Watson17-Nov-02 6:31 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa19-Nov-02 18:31
Sarvesvara (BVKS) Dasa19-Nov-02 18:31 
GeneralRe: Frames in web-page Pin
ian mariano20-Nov-02 3:22
ian mariano20-Nov-02 3:22 
GeneralRe: Frames in web-page Pin
Paul Watson20-Nov-02 3:39
sitebuilderPaul Watson20-Nov-02 3:39 
GeneralRe: Frames in web-page Pin
Megan Forbes16-Nov-02 2:40
Megan Forbes16-Nov-02 2:40 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa17-Nov-02 1:56
Sarvesvara (BVKS) Dasa17-Nov-02 1:56 
GeneralRe: Frames in web-page Pin
Stephane Rodriguez.17-Nov-02 2:45
Stephane Rodriguez.17-Nov-02 2:45 
GeneralRe: Frames in web-page Pin
Sarvesvara (BVKS) Dasa17-Nov-02 20:10
Sarvesvara (BVKS) Dasa17-Nov-02 20:10 
GeneralAn ODBC Connection in asp to view Crystal Report Pin
BravoTwoZero14-Nov-02 23:03
BravoTwoZero14-Nov-02 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.