Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 7th, 2004, 07:27 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default Can we access physical location of objects?

Can we access the browser cache from javascript? Though i am quite sure that using javascript we can get 'all' objects from the document (page) but i am not sure if we can get the physical location (from the browser cache) of these objects like images etc.

BaburMan
__________________
BaburMan
  #2 (permalink)  
Old December 7th, 2004, 10:57 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Baburman,
Do you mean to get images from Server Physical Locations directly?
If so then ,i think it's not possible.(think about the virtual path mapping to physical path)
Are you talking about somethink like this link ??
http://p2p.wrox.com/topic.asp?TOPIC_ID=23047



Cheers :)

vinod
  #3 (permalink)  
Old December 8th, 2004, 12:36 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

Well vinod, this is a good example of loading images directly from the server, but what i need is the
physical path of the images on the client not the server. I guess (but not sure) that i have to
access the browser cache but don't know how to get it.


thanx


BaburMan
  #4 (permalink)  
Old December 8th, 2004, 03:36 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

I think it is impossible !!!

Consider the scenario when my browser looking for a page in "ServerXYZ".
It sends a request to that server(Serverxyz)
Now this server process the page,looks for the folders if any image is required to shown on the page.
Even if this time virtual path setting works behind the scene.

Serverxyz only sends the HTML contents to the browser.Browser only knows how to render it and it

renders the images/text as specified by the tags.
Hope this will help you.
Looking for other answers too

Cheers :)

vinod
  #5 (permalink)  
Old December 8th, 2004, 04:15 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by baburman
 Can we access the browser cache from javascript? Though i am quite sure that using javascript we can get 'all' objects from the document (page) but i am not sure if we can get the physical location (from the browser cache) of these objects like images etc.

BaburMan
No.

--

Joe (Microsoft MVP - XML)
  #6 (permalink)  
Old December 8th, 2004, 05:57 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

I am afraid it didn't much help. In fact the server renders the html page as well as all other objects like images, activex controls, css files and swf objects etc to the client. The browser receives them and puts them in its cache and then shows up the page with all of its objects. Now we can access the entire html source and all objects using javascript in this page or document. This is where i wanna get the location of these objects in the browser cache may be using document or navigator object or else. Ok, if javascript can not do it, is there any other way out? Please note that i am developeing a windows application in .NET.

BaburMan
  #7 (permalink)  
Old January 24th, 2005, 07:59 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

Struggling, I have found getting it another way using windows API calls. Still working on it.
However this has become irrelevant to this JS forum. Anyway thankyou for the replies.



take care...


BaburMan


Similar Threads
Thread Thread Starter Forum Replies Last Post
physical address mateenmohd Classic ASP Basics 0 June 13th, 2007 09:24 AM
How access fields of objects stored in Array List rfinks VB How-To 2 July 11th, 2006 06:00 PM
Location of Access default command button icons ActuaryTm Access 2 September 16th, 2005 12:03 PM
Can't Access objects in .net outside of header dehrmantraut Visual C++ 0 January 24th, 2005 03:00 PM
Invalid access to memory location sahih Beginning PHP 3 March 17th, 2004 09:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.