Re: Problem with the relative paths

  •  06-30-2006, 11:48 AM

    Re: Problem with the relative paths

    Hi Adam
     
    Your reply gives me the hope to have soon good news.
    Now I will try to explain the structure of my site and of the html page.
     
    Suppose to define a site at a specific URL: http://192.168.1.4/Site/Pages corresponding  to a physical path 'c:\Tex'.
    The structure of the folder Tex is:
     
    C:
       Tex
          Site
             Pages
                img
     
    Now in the folder 'Pages' is stored a page html 'index.html' so defined:
     
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE html PUBLIC "-//DVB//DTD XHTML DVB-HTML 1.0//EN" "http://www.dvb.org/mhp/dtd/dvbhtml-1-0.dtd">
    <html>
    <head>
    <title>Regione Veneto</title>
    </head>
    <body>
    <p><img src="img/foot.jpg" /></p>
    </body>
    </html>
     
    I try to edit this page using your editor .i.e. calling the method: editor.LoadFile(path) where path is equal to "C:\Tex\Site\Pages\index.html". Well the page is rendered without the effect of the image 'foot.img' beucase its relative path is translated erroneusly in 'C:\Tex\img\foot.jpg.
    Of course if I change the relative path in absolute path all is ok. Besides if I call I.E. with the URL: http://192.168.1.4/Site/Pages/index.htm the page is rendered successfully.
     
    Can you tell me about this problem ?.
     
    P.S.
    For sake of truth, when the editor shows the page above displayed in html code, it is rendered with the below code:
     
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <p><img src="img/foot.jpg"></p>
    As you can see some tags (body, head,title....) are lost. But I suppose this for an other my mistake!!
     
    Thank
    Best regards
     
     
     
     
     
     
View Complete Thread