473,804 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1787

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
3665
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 minutes) to generate a batch of pages (say two thousand). If anyone has URL resources which performance information germane to XSL Transforms, Streams, and XML I am interested in hearing about them. I have written some notes below of what I am...
7
2596
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 usercontrol has some functions and when the function is run, I lose all of the property values. If I assign the property value to a text box, the information is not lost in the text box. I think this is by design, but how do I get around it??? ...
28
7420
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 "good" in such terms, that this core data structure is changed only by atomic operations, so that the data structure is always consistent regarding the application. Only the change-operations on the dicts and lists itself seem to cause problems...
1
6513
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
3
2126
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 closing the browser doesn't terminate the session, the session variable is kept alive until the session expires. But, surprisingly, I've found this to be true for the session variables
5
1998
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, i); // last argument is depth } };
2
2671
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 very quickly, or when I added the show() command the shell window was locked until I closed the figures. My question is: is there a way to open those windows in the background without blocking the shell and without running it interactively??
9
2683
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 live. I know I can do something similar with globalStorage in FF, window.name & userData on IE, but those storages only hold strings.
1
385
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 much better off creating an instance of a class and using that. regards
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10353
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3836
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.