Saving Web Page Issue

When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also Firefox 3.6) 
will create a "_files" directory and store the images, css and js files in 
that directory.

However,  -- more often than not -- the htm or html source code is NOT
modified to reflect the "_files" directory.   It appears to maintain
the original directory on the server for images, css, and js files.

Questions:

1)  Is this a function of IE (and/or firefox)?
2)  If so can it be corrected and how?
3)  If not why, can you please provide an explanation as to why the link in 
the html source is not being changed?
4)  Is there any setting I can set in XP (pro in this case) that
will correct this?
5)  Is there any other solution?

Thanks
David 


0
David
3/28/2010 11:40:45 PM
internetexplorer.general 1684 articles. 0 followers. Follow

5 Replies
811 Views

Similar Articles

[PageSpeed] 51

The reason it does not modify the *.htm, *.html, or whatever extension it 
gets saved with, file is for several reasons:

1. The purpose of the _files directory is primarily for cache, so in the 
browser's mind, there is not need to modify the source code.
2. The save function simply copies the file from the location the browser 
put it when you viewed it to whatever location you are now specifying; no 
parsing is actually done during the save process, and therefore the browser 
does not actually look at the text in the file.
3. Because many images, css, and js files are dynamically generated (in the 
*.htm, *.html, *.aspx, etc. file it doesn't actually end with *.gif, *.jpg, 
*.css, *.js, etc.), looking at the html code might make it hard for the 
browser to figure out what to do.

If you really want to have a copy of a page that is completely local to your 
machine, I would suggest that you edit the source code yourself, it's not 
that hard, especially if you have any basic html editor (or even that hard 
without one using Notepad if you've ever even touched html before).
-- 
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/

"David" <NoWhere@earthlink.net> wrote in message 
news:OJhqVAtzKHA.4384@TK2MSFTNGP06.phx.gbl...
> When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also Firefox 3.6) 
> will create a "_files" directory and store the images, css and js files in 
> that directory.
>
> However,  -- more often than not -- the htm or html source code is NOT
> modified to reflect the "_files" directory.   It appears to maintain
> the original directory on the server for images, css, and js files.
>
> Questions:
>
> 1)  Is this a function of IE (and/or firefox)?
> 2)  If so can it be corrected and how?
> 3)  If not why, can you please provide an explanation as to why the link 
> in the html source is not being changed?
> 4)  Is there any setting I can set in XP (pro in this case) that
> will correct this?
> 5)  Is there any other solution?
>
> Thanks
> David
> 
0
Nathan
3/29/2010 3:42:03 AM
"David" <NoWhere@earthlink.net> wrote in message 
news:OJhqVAtzKHA.4384@TK2MSFTNGP06.phx.gbl...
> When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also Firefox 3.6) 
> will create a "_files" directory and store the images, css and js files in 
> that directory.
>
> However,  -- more often than not -- the htm or html source code is NOT
> modified to reflect the "_files" directory.   It appears to maintain
> the original directory on the server for images, css, and js files.
>
> Questions:
>
> 1)  Is this a function of IE (and/or firefox)?
> 2)  If so can it be corrected and how?
> 3)  If not why, can you please provide an explanation as to why the link 
> in the html source is not being changed?
> 4)  Is there any setting I can set in XP (pro in this case) that
> will correct this?

> 5)  Is there any other solution?

WinHTTrack

http://www.httrack.com/page/1/en/index.html

"It allows you to download a World Wide Web site from the Internet to a 
local directory, building recursively all directories, getting HTML, images, 
and other files from the server to your computer.

HTTrack arranges the original site's relative link-structure. Simply open a 
page of the "mirrored" website in your browser, and you can browse the site 
from link to link, as if you were viewing it online. HTTrack can also update 
an existing mirrored site, and resume interrupted downloads. HTTrack is 
fully configurable, and has an integrated help system."

Donald Anadell


>
> Thanks
> David
> 


0
Donald
3/29/2010 12:41:44 PM
Mr. Sokalski:

Thanks for the explanation and your time.    Some followup questons if I 
may.

1)

If the browser(s) -- IE or Firefox in this case -- is creating the "_files" 
directrory as a cache directory
(which makes perfect sense),  if the html source does not not include this 
reference, how does the browser know where to find the "cached files" -- so 
they can be displayed -- when the page is downloaded onto the client 
machine?

2)
Why would the source on some webpages contain the "_files" directory 
reference and others not
-- unless -- the html downloaded to the client was hard coded this way?

3)
Curious as to where you found this info, as searched everything I could 
thing on net and came up with zippo,
even MSDN.   Any link or reference to explain -- in detail -- how the 
browser handles this would be appreciated?

4)
------------------
> If you really want to have a copy of a page that is completely local to 
> your machine, I would suggest that you edit the source code yourself
-----------------

This is what I've been doing.   Sometimes an easy fix, other times not.
Will write a parsing routine to automate --if possible, but need to 
understand how the browser is handling this first.

David


"Nathan Sokalski" <njsokalski@hotmail.com> wrote in message 
news:24DE1E95-7ABB-461C-A924-3D5C4C1E2D2B@microsoft.com...
> The reason it does not modify the *.htm, *.html, or whatever extension it 
> gets saved with, file is for several reasons:
>
> 1. The purpose of the _files directory is primarily for cache, so in the 
> browser's mind, there is not need to modify the source code.
> 2. The save function simply copies the file from the location the browser 
> put it when you viewed it to whatever location you are now specifying; no 
> parsing is actually done during the save process, and therefore the 
> browser does not actually look at the text in the file.
> 3. Because many images, css, and js files are dynamically generated (in 
> the *.htm, *.html, *.aspx, etc. file it doesn't actually end with *.gif, 
> *.jpg, *.css, *.js, etc.), looking at the html code might make it hard for 
> the browser to figure out what to do.
>
> If you really want to have a copy of a page that is completely local to 
> your machine, I would suggest that you edit the source code yourself, it's 
> not that hard, especially if you have any basic html editor (or even that 
> hard without one using Notepad if you've ever even touched html before).
> -- 
> Nathan Sokalski
> njsokalski@hotmail.com
> http://www.nathansokalski.com/
>
> "David" <NoWhere@earthlink.net> wrote in message 
> news:OJhqVAtzKHA.4384@TK2MSFTNGP06.phx.gbl...
>> When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also Firefox 3.6) 
>> will create a "_files" directory and store the images, css and js files 
>> in that directory.
>>
>> However,  -- more often than not -- the htm or html source code is NOT
>> modified to reflect the "_files" directory.   It appears to maintain
>> the original directory on the server for images, css, and js files.
>>
>> Questions:
>>
>> 1)  Is this a function of IE (and/or firefox)?
>> 2)  If so can it be corrected and how?
>> 3)  If not why, can you please provide an explanation as to why the link 
>> in the html source is not being changed?
>> 4)  Is there any setting I can set in XP (pro in this case) that
>> will correct this?
>> 5)  Is there any other solution?
>>
>> Thanks
>> David
>> 


0
David
3/29/2010 12:43:15 PM
Thanks

Didn't know there was anything in GPL I could look at.

David

"Donald Anadell" <danadell@nospamersmikrotec.com> wrote in message 
news:%23Fpaz0zzKHA.6112@TK2MSFTNGP05.phx.gbl...
>
> "David" <NoWhere@earthlink.net> wrote in message 
> news:OJhqVAtzKHA.4384@TK2MSFTNGP06.phx.gbl...
>> When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also Firefox 3.6) 
>> will create a "_files" directory and store the images, css and js files 
>> in that directory.
>>
>> However,  -- more often than not -- the htm or html source code is NOT
>> modified to reflect the "_files" directory.   It appears to maintain
>> the original directory on the server for images, css, and js files.
>>
>> Questions:
>>
>> 1)  Is this a function of IE (and/or firefox)?
>> 2)  If so can it be corrected and how?
>> 3)  If not why, can you please provide an explanation as to why the link 
>> in the html source is not being changed?
>> 4)  Is there any setting I can set in XP (pro in this case) that
>> will correct this?
>
>> 5)  Is there any other solution?
>
> WinHTTrack
>
> http://www.httrack.com/page/1/en/index.html
>
> "It allows you to download a World Wide Web site from the Internet to a 
> local directory, building recursively all directories, getting HTML, 
> images, and other files from the server to your computer.
>
> HTTrack arranges the original site's relative link-structure. Simply open 
> a page of the "mirrored" website in your browser, and you can browse the 
> site from link to link, as if you were viewing it online. HTTrack can also 
> update an existing mirrored site, and resume interrupted downloads. 
> HTTrack is fully configurable, and has an integrated help system."
>
> Donald Anadell
>
>
>>
>> Thanks
>> David
>>
>
> 


0
David
3/29/2010 3:47:38 PM
In news:OJhqVAtzKHA.4384@TK2MSFTNGP06.phx.gbl,
David <NoWhere@earthlink.net> typed:
> When saving a web page, IE 6.0.2900.5512.xpsp_sp3 (and also
> Firefox 3.6) will create a "_files" directory and store the
> images, css and js files in that directory.
>
> However,  -- more often than not -- the htm or html source
> code is NOT modified to reflect the "_files" directory.  It 
> appears to maintain the original directory on the server for 
> images, css, and
> js files.
> Questions:
>
> 1)  Is this a function of IE (and/or firefox)?
> 2)  If so can it be corrected and how?
> 3)  If not why, can you please provide an explanation as to
> why the link in the html source is not being changed?
> 4)  Is there any setting I can set in XP (pro in this case)
> that will correct this?
> 5)  Is there any other solution?
>
> Thanks
> David

Not certain, but the one time I looked at that, I think it 
turned out to be whether the original code used Relative or 
Direct links. If Relative, they'll work on your computer. If 
not relative, then clicking the links or displaying images 
etc. might result in an attempt to retrieve them from the 
original web site or nothing, depending again on coding sytles 
and what you've set your firewall to prevent.

HTH,

Twayne`


0
Twayne
3/30/2010 6:59:26 PM
Reply:

Similar Artilces:

vlookup issue ( not working and im tearing my hair out)
Okay , well i cant discuss the actual info in my sheet but ill come up with a good analogy of it all . Ok basically on sheet 2 i have all the teams in my NHL ( my company) listed under the immediate manager. I also have the players last name, first name and number set out as such ; Team A Shivers Paul 14 Jacobsen John 25 Tucker Tanya 98 Team B Pitt Brad 22 Murray Bill 28 Clinton Hillary 55 You get the point, ok , on sheet 1 ( my main page accessible to my company ) , i have this format... Managers last name Players last name ...

FileNotFound returned by Bitmap::Save() when saving to stream
I have a little chunk of code which is supposed to take a bitmap image and save its PNG encoding into a block of memory. The problem is, I keep getting a FileNotFound error back from Save(). If anyone has any ideas, I'd love to hear them. Here's the code (more or less) in question; there really shouldn't be much to it, I would have thought: /* Allocate an IStream object to write the data into a global memory block. We indicate that the handle to the underlying data will be freed when the stream object is released. */ VERIFY(S_OK == ::CreateStreamOnHGlobal(nil, True, static_c...

Handling of savings accounts and 401k accounts in the budget
I noticed that Money treats money that I contribute to a 401k account or transfer to a savings account as an expense. Basically, the more I contribute, the worse my budget looks. Is there a way to prevent this from happening? Right now, I exclude transfers to my savings account from the budget and it solves the problem, however, I shouldn't have to manually do this each time. For 401k contributions, I cannot find a way to do this. Why does it show up as "an expense" (what Category???) instead of something like Transfer Out of Budget Accounts? The 401k cash account sh...

what encoding does system.xml.xmldocument.save(string path) use to save the xml document if there is no <?xml... in the front of the xml document?
what encoding does system.xml.xmldocument.save(string path) use to save the xml document if there is no <?xml... in the front of the xml document? Daniel wrote: > what encoding does system.xml.xmldocument.save(string path) use to save the > xml document if there is no <?xml... in the front of the xml document? UTF-8 is the default encoding. -- Oleg Tkachenko [XML MVP, MCPD] http://blog.tkachenko.com | http://www.XmlLab.Net | http://www.XLinq.Net utf8 i suppose would be default Vinu Baby "Daniel" <softwareengineer98037@yahoo.com> wrote in message news:e8#...

Unable to save password in Outlook 2003
I cannot seem to save my "network password" for Outlook 2003. I tried everything I can think of. I tried editing the registry. I use XP. I try going into Control Panel, go to mail and go thru the process there and....nothing worked there. I uninstalled Office the reinstalled it.....nothing! I even went as far as unistalling my internet software, still...nothing! Someone told me that XP will not save passwords. My Outlook express works fine. Someone HELP! I also had this issue in Outlook 2003, but also in indows Live Messenger and Internet Explorer 7. I spend hour...

Save and save as
Hi, I am looking for some help with a macro, I need to disable anyone from saving a file or save as and also disable the prompt if the close button is pressed you get an option to save the file then, I need to disable all of these, also have a pop up box to warn that save as been disables when a user tries to save the file fro save and save as. Can anyone help me with this. I am using word 2003 Regards Mark Once you give someone access to a document, you have ceded all control over it. You can however stop them from overwriting the original file by making the doc...

Saving Images
When I right click to save an image in an email, it will only save as a .bmp. I need to use it as a .jpeg or a .gif. How can I fix this? In news:AB8040CE-5975-4A14-87BD-BE3B97E33682@microsoft.com, Angi <Angi@discussions.microsoft.com> typed: > When I right click to save an image in an email, it will only save as > a .bmp. I need to use it as a .jpeg or a .gif. How can I fix this? Clear your internet explorer temp file cache.....go to control panel, internet options, and choose 'delete files' "Angi" <Angi@discussions.microsoft.com> wrote in message...

ATTN: Need to import data from access database, hosted on web.
This should be fun. I can use the import data feature to get data into excel from a loca access database, But i need a central access dbase on the web, and when someone open the excel workbook, it auto updates from the access dbase hosted on th web server. Im assuming this has something to to with the connection strings et that i need to write, could anyone point me in the right direction o post a solution, many many thanks in advance. Pau -- Message posted from http://www.ExcelForum.com ...

"Unattainable" savings goals
I've learned to mostly ignore it, but it drives me batty. I have a particular loan with a goal to pay it off by 7/4/04. The loan balance is 14,000. I have marked a savings account to be "used for budgeted savings goals." I deposit $1300 per month into the account which has a balance currently of $13000. Money 2K4 says that I cannot reach my savings goal. What can I do to help fix this? Any feedback would be appreciated! ...

Sending web page attachments
Whn attempting to send a web page via e-mail I receive the following message. What do I need to do in order to send these pages error free and why is the message being received in the first place? Thank you - Outlook blocked access to the following potentially unsafe attachments:www.msnbc.msn.url ...

Page Refreshing
Hi, Does anybody have the same problem that I do with Money in the sense that the page continually will load and refresh after a couple minutes? Its very annoying and I want to knwo if theres a way to turn it off. Thanks Anybody? I don't know. I don't. What version? Have you tried things like not running other apps? New video driver? Turning down hardware acceleration? "l8neway" <l8neway@discussions.microsoft.com> wrote in message news:7BA1A51A-81DE-4524-AE97-7FB8D4C7FDAF@microsoft.com... > Does anybody have the same problem that I do with Money in the sense ...

Saving default tabs
I can't seem to get a change in the default tab setting to save. When I reopen publisher the tab setting reverts to .5 which was original default. I'm I the only person who is having this problem? I'm using the 2003 verson but had the same problem with 2000. Why not take the default page, set the tabs you want and save it as a template with a file name of, "My Very Special Tabs Settings for Future Files.pub" (jerking your chain a bit<G>) Then when you want to create what you want, use your created template file and when your pub file is what you want, do a Sa...

Save to unProtect a Document?
Our company has word documents that we use as templates on a fileserver. How could I protect the documents so that when they open them, they dont make changes to the server version, but save their OWN version and do what they want? First of all, make use of true *template* files (with the *.dot or *.dotx extension). Also, assign the template files the read-ony attribute. -- Stefan Blom Microsoft Word MVP "Chris" <Chris@discussions.microsoft.com> wrote in message news:EB9D352D-823F-4126-8A00-2D90516A3FA1@microsoft.com... > Our company has word docum...

"Sync Issue
We occasionally get an instance of a 12800 error appearing in the application log. The event appears when backup exec (which is running locally on the server) is trying to backup / process a large message (70 mb) which is in a users' Outlook "sync Issues - Server failures folder. The message contains a large binary attachment. We don't get any other occurances of 12800 errors during other times, so I don;t think that it could be a server memory fragmentation issue. Does any one know of any issues with Exchange 2003 SP1 and large binary attachments? Does any one know o...

Web Access #7
When using Outlook 2003 Web Access I can log in, but my inbox is stuck at loading... Am I doing something wrong? Not sure with so little information - but since OWA is part of Exchange, not Outlook, you'd be best off posting this in an Exchange newsgroup (try microsoft.public.exchange.admin) with more details (as in, does this work from *inside* your network? anyone else having the problem? does it work from another external computer? what browser version/SP on the client?) Best of luck... path wrote: > When using Outlook 2003 Web Access I can log in, but my > inbox is stuck at ...

Exchange 2007 And Daylight Savings Time Update
Is there a patch I need for Day light savings time and Exchange 2007? Thanks! No CDO patch required (no equivalent of KB 926666). However, the Windows Server 2003 OS will required KB 931836 time zone update and Calendar-items in 2007-hosted mailboxes created using old DST 2006 rules will need to be rebased. -- Bharat Suneja MVP - Exchange www.zenprise.com NEW blog location: exchangepedia.com/blog ---------------------------------------------- "D303M" <D303M@discussions.microsoft.com> wrote in message news:A3132ABD-4614-402F-9654-61EA72501112@microsoft.com... > I...

Save csv format to dbf format
I have a .csv file with 13 columns of data opened in excel. I make a few changes to a field and then want to save to .dbf format. After saving as .dbf when I open the file only column 1 data is present. Any insights into where the rest of the data goes? Why does the data disappear? Thanks, Mike -- mdelasaux ------------------------------------------------------------------------ mdelasaux's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=28889 View this thread: http://www.excelforum.com/showthread.php?threadid=486365 Try using Notepad and open your .dbf...

when I save an email, where does it save to?
Hi all, I have several emails that I wanted to reply, and I did click "reply" and then wrote something, but I did not have time to finish... then I click on "save", and in the evening, I closed the outlook because I slept... now I reopen the outlook in the morning, and I want to find my saved unfinished replies that I was writing... But where to find them? I have a "draft" folder, but those saved emails do not seem to be in this folder... wherelse could they go? ---------------------------------------------- This is annoying... is there a way to automat...

Daylight Savings Time #2
In regards to DST or better yet XDST, in my windows 2003 domain environment I have the servers and workstations syncing their clock with one of my DCs. The statement has been presented here that since this is the case we should not have to worry about clocks being off by one hour. I do not get the warm and fuzzy with this statement. I feel that if it were that easy it would have been documented as a solution by now. Maybe they are right and I am wrong. Could you give me an explanation why so or why not? Thanks - Any clock synching is done based on UMT/GMT and the locale/timezone o...

Installing CRM on 2003 Web Edition
Has anyone installed CRM 1.2 on Windows Server 2003 Web Edition. The implementation guide is says it is a supported OS, I am planning on attaching WS03 Web Edition to an SBS 2003 server. I know that the supported configuration has everything on the single SBS box, but I would much rather put some things on other boxes. I am also planning on putting SQL Server on its own box as well. Any comments on this configuration? thanks, Geoff Hi, Beware that SQL Server cannot be installed on a Web Server edition ! -- Olivier Schmitt Microsoft Business Solutions Support Ce message est fourni...

Extra Pages in Reports
We upgraded from 8.0 to version 9 a few weeks ago. This week one of my clerks said that when she prints some payroll reports that the last two pages will print 10-20 times. Another clerk has had the same problem with the Checkbook posting journal. I have looked in the knowledgebase and in the forums to no avail. Anyone have any thoughts? Hi Jason Do you have Named Printers setup? I have seen named printers go a little crazy after an upgrade from version 8. if this is the case removing the named printers from the workstation and then readding it usually fixes it. Fliehigh "Jaso...

Move page button on sidenote
If you want to move a side note to one of your onenote pages, the easiest way is to customize your toolbar to add the "Move Page to" button to the sidenote toolbar. 1- select the drop down at the end of the toolbar 2- Select Add remove buttons and Customize 3- Under commands in the popup windows, select Edit - move page to - button to your toolbar. ...

Automatic save of all messages from a known contact
Hi, I'd like to store automatically all messages from a known CRM Contact. If for example my customers email-address is somebody@somhow.com, I'd like to store automatically all his emails via the Exchange<->CRM Connector regardless to who they are sent to. Is that possible? regards Juergen Tolksdorf Hi Juergen. My company has a product called Effective Email that does exactly what you are asking for. There is a sync event that gets installed on the users inbox. When emails come in, it checks the senders address against the CRM database, and if a match exists, it creates a...

How to get saved old saved work that was saved over?
I typed up some History notes and saved it. I wanted to use the same format from those History notes for some new History notes and I saved over on my old work. How can i retrive my old saved work? My work was in Word not Excel But I could not find a place to ask a question in the Word help section. If you saved over the original file, it is gone forever. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Maral" <Maral@discussions.microsoft.com> wrote in message news:C0ADFEF9-6A46-4589-8923-4BFC07D9C61F@microsoft.com......

Fixing position of page
I have some small menus created for a restaurant. They will be loaded on their computer and when they need to change prices etc. all I want them to be able to do is change prices and the food entry. I want to be able to lock the position of the groups on the page so they cannot destory the format etc. I just don't think there's a way to do it. If they can edit anything, they can edit everything. Assuming they are paying you for the work you're doing, it's their product and they can do anything they want to it. Including screw it up royally. (I know, that's the pits.)...