473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Keeping A "Persistent" XML Document In Memory

I have an application that uses the Google Maps API to display
customized maps via a generated XML file. The XML is generated via a
"Wizard" system to determine what the XML holds.

I am looking for a way to keep the XML file "persistent" across the
pages via Javascript. The way the Maps API works is that the Client
feeds the items to be mapped to google, which generates the maps.
Storing the XML file on the server would mean I would have to download
the (possibly large) XML file each time the next wizard page displayed.
If the XML file was persistent on the client side (stored as a string
or document object), the display time would be cut, and my bandwidth
limits from my webhost would not be in danger of being hit.

I'd rather not have to access the wizard system session variables if I
can avoid it. Any ideas/references to code?

Jason

Oct 11 '05 #1
2 1764

DartmanX wrote:
Storing the XML file on the server would mean I would have to download
the (possibly large) XML file each time the next wizard page displayed.
Why, if that is a resource on the server and the server sends the proper
headers indicating the resource can be cached a browser will probably
cache the XML the same way it caches images or HTML or script served
from a server.
If the XML file was persistent on the client side (stored as a string
or document object), the display time would be cut, and my bandwidth
limits from my webhost would not be in danger of being hit.


Unless you use frameset/frames where you could store stuff in the
frameset window and hope that visitors only navigate in the frames there
is not much you can do to store larger data.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 12 '05 #2
Unfortunately, the wizard allows users to make changes to the XML,
which will constantly be changing until the user clicks the Finish
button.

The idea is that the user will decide to change something on a map, so
the XML has to be regenerated, then reprocessed, then sent to Google,
_each time_.

I'm on the verge of doing AJAX server calls anyways, since I haven't
found any other methods that fit the bill.

Jason

Oct 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Trevor Oakley | last post by:
I am writing thousands of html pages from an MS SQL source using a DataSet and then an XslTransform. I have an interest in making the code run faster as it takes several minutes (sometimes ten...
7
by: David Lozzi | last post by:
Howdy, I have a usercontrol in my aspx page and when the page loads, I send it some property values based on the data displayed. I am sending it to a public property like below. However the...
28
by: robert | last post by:
In very rare cases a program crashes (hard to reproduce) : * several threads work on an object tree with dict's etc. in it. Items are added, deleted, iteration over .keys() ... ). The threads are...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
5
by: -Lost | last post by:
See, in ActionScript (Flash) I was able to do it this way: frame 1 { this.onEnterFrame = function () { if (buttonIsDown) { i += 1; duplicateMovieClip(_root.layer.target, 'variable_name' + i,...
2
by: Rodrigo Lopez-Negrete | last post by:
Hi all, I'm trying to write a python script using plotting form pylab. Unfortunatelly I've encountered a problem. When I run the script via 'python myscript.py' the plot windows open and close...
9
by: mel | last post by:
Hi all, I need a persistent TCP connection with my web server over page reloads. This means that, even if the user goes to a different page (in my domain), I want to keep a TCP connection...
1
by: Steve Holden | last post by:
Joe Strout wrote: This is a pretty bizarre requirement, IMHO. The normal place to keep such information is either class variables or instance variables. It's a bad smell. I think you'd be...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.