How define the complete path when the pages includes relative paths for the images and css.

Last post 06-29-2006, 3:50 AM by polmau. 2 replies.
Sort Posts: Previous Next
  •  06-28-2006, 11:30 AM 20551

    How define the complete path when the pages includes relative paths for the images and css.

    My question is very trivial!.
    In the virtual directory of my server are stored html pages with relative path both the images and css.
    On client side I try to load a page using editor.LoadFile( pathFile ) where pathFile rappresents the path absolute to this page on server.  Nevertheless no image is displayed (or css is rendered) beucase, I suppose, the editor don't know the absolute path for the this image. How can I define it ?     
    Best regards
  •  06-28-2006, 2:10 PM 20561 in reply to 20551

    Re: How define the complete path when the pages includes relative paths for the images and css.

    polmau,

    That's the problems using relative path. When using the relative path,  it will work in some particular situations. When load the HTML code into the editor, if browser can't find the images when translating the relative path to aboslute path, it will not be able to show images.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-29-2006, 3:50 AM 20578 in reply to 20561

    Re: How define the complete path when the pages includes relative paths for the images and css.

    Sorry..but I think to understand where is the problem!.
    CuteSoft editor expects the html pages to exam are resident on the same virtual directory where is present the editor!.
    In my case I have the CuteSoft editor under the virtual dir /webEditor whereas my pages under /sites so that, when it creates the absolute path, merges the two path erroneously.
    For me this is an error of your implementation.
     
    Can you suggest a workaround ?
    Best regards
     
View as RSS news feed in XML