Re: Convert relative paths to physical paths

  •  07-12-2005, 9:27 AM

    Re: Convert relative paths to physical paths

    Okay..
     
    Here is the problem I currently face. After the html has been imported I have developed a script that scans for hrefs, src and background URLs the script then resolves these urls to absolute paths. The string containing the revised html is then dropped into the editor with the EditCompleteDocument value set to true. The result is an editable html page that references images, links and css includes from the domain where it originated from.

    However... the Editor automatically removes the head info which means that the css cannot be referenced. When I try to save the contents of the editor to the local file system using 'Editor1.saveFile(Server.MapPath("savedHTML.html"))' the page looses all of it's CSS formatting... I can't seem to figure out how to resolve this in a practical way?
     
    Any help would be MUCH appreciated...

    Web Developer
    The Company Formation Wizard -
    Company Registration
View Complete Thread