Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save File as web page and maintain page's look and feel

Status
Not open for further replies.

TWillard

Programmer
Apr 26, 2001
263
US
I have a fairly simple web page that is used for reporting. It has some tables, styles, text and images. When I try and perform a : File > Save As... from the file menu, I get the following message from IE:

This page may not save correctly. Would you like to save it anyway? ( Yes or No )

If I select yes and save the page, the saved page looses the images and linked style sheets. Is there any way to save this information as part of the file or a seperate set of files in a sub folder, so that a saved page will look better that it cuurently does. I have seen some web pages save off sub folders with underscores that carry over objects, so the file is properly displayed from the file system. Any ideas? I quess I could reference the images by full path urls, but I was hoping for an offline solution.

Thanks, in advance.
 
You could put the css styles onto the page (rather than have them linked). This will bloat the page out a lot - and cause some extra bandwidth (the css will be downloaded every time you request a page). You still wouldn't get images though.

You could look at using the default "Save Page As" option in Firefox (Windows) with the "Save as type" set to the default "Web Page, complete". This will save a local version with linked css, images and scripts etc.

I'm pretty sure it's available in IE as well. You can do it in Safari as a "Web Archive".

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
You are spot on for FireFox "Save Page As" "Web Page, complete".

However, the IE version (6.0) with the same commands ( "Save Page As" "Web Page, complete") does not work quite as well. I have imported the style sheets, but I guess there is no way to make the images appear offline.

Maybe the next version of IE, 7?

Thanks for the help.
 
PhantomPhil, Thanks for the response. It does not work for my web page. I did not state this earlier, because I thought it was a non-issue. This page is a php page. Its contents are being dynamically generated from logic and database calls. The end result is still html that is displayed in the web browser, therefore I thought it was a non-issue. Apparently, when IE trys to save the it trys to re-render the call request, which is not always going to have the same output results. Mozilla's FireFox does this correctly, it takes the existing html in the browser and saves that offline. FireFox also downloads the images in a seperate folder (which has its own pros and cons) so that they are accessible and the page can be rendered again offline as it appears online.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top