Results 1 to 5 of 5

Thread: [RESOLVED] Reference Lost When Saving Web Page

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Resolved [RESOLVED] Reference Lost When Saving Web Page

    I do very little HTML so not sure whether this is a function of the Browser, a setting on my system or the HTML.

    Problem:

    When downloading a web page, images arrive and are placed in folder with extention "_files" but the directory embedded link reference in the html is different than the directory name where the web page was saved, so unable to show images when reviewing page off line.

    Example

    The HTML for the file shows the image at:

    src="/library/media/1033/windowsxp/images/using/more/fax_fig01.jpg"

    The web page was saved to directory (e.g. c:/thisdir) under the file name "thisfilename.htm". The save from Firefox created a directory of (c:/thisdir/thisfilename_files) and put all the webpage images, css, etc.
    into the correct supporting file and directory "c:/thisdir/thisfilename_files". However the
    embedded HTML directory link for the images did NOT get changed or removed during the save. Consequently, when bringing up the web page offline, no images are shown unless I manually edit the HTML to reflect the correct directory for the images.

    I find this occurs MOST (if not all) of the time, when downloading and saving ANY web page on my system using either IE or Firefox.
    Last edited by dw85745; Jan 29th, 2010 at 09:30 AM.

  2. #2
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Reference Lost When Saving Web Page

    html isn't about downloading web pages... its about writing them, i don't really get your problem? this has nothing to do with html as i understand what you say, its just IE and Firefox that can't change src="/bla/bla/bla/something.png" into src="http://domain.com/bla/bla/bla/something.png"

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Re: Reference Lost When Saving Web Page

    Justa Lol:

    If I understand your comment:

    The Save function of the brower (IE, Firefox or whatever) must contain a function (or code) to replace the embedded "src" string with the new created directory string rather than the HTML code itself performing this function.

    Thanks. That helps narrow things down a bit.

  4. #4
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Reference Lost When Saving Web Page

    no... i'm saying this has nothing to do with html...

  5. #5
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: [RESOLVED] Reference Lost When Saving Web Page

    Justa: he's trying to save a web page using the browser's "Save Page As" function. If you select "complete web page," the browser will save the HTML of the page, as well as create a local folder for the resources (images, CSS, JS) that are used on the page: this folder is typically named "example_files". The browser will alter the HTML to use this folder with relative paths (eg. it will change src="path/to/file.jpg" to src="example_files/file.jpg").

    This thread has been marked as Resolved though... do you still need help, dw85745?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width