|
-
Jan 29th, 2010, 09:23 AM
#1
Thread Starter
PowerPoster
[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.
-
Jan 29th, 2010, 10:34 AM
#2
Fanatic Member
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"
-
Jan 29th, 2010, 11:24 AM
#3
Thread Starter
PowerPoster
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.
-
Jan 29th, 2010, 11:34 AM
#4
Fanatic Member
Re: Reference Lost When Saving Web Page
no... i'm saying this has nothing to do with html...
-
Jan 29th, 2010, 11:54 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|