Thursday, February 02, 2006

Auto Refresh Content | Access No Cached Data

The following code snippet is Javascript on the client to directly access data without caching.
----------------------------------------------------------------------------
var request = GXmlHttp.create();
var url = "AlumData.aspx?RandomKey=" + Math.random() * Date.parse(new Date());
request.open('GET', url, true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
var markers = xmlDoc.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markers.length; i++) {
var point = new GPoint(parseFloat(markers[i].getAttribute("lng")),
parseFloat(markers[i].getAttribute("lat")));
var info = "" + markers[i].getAttribute("title") + "
";
info += "My Message: " + markers[i].getAttribute("message");
var marker = new createMarker(point, info);
map.addOverlay(marker);
}
}
}
request.send(null);
-------------------------------------------------------------------------------
To see the page in action, you could visit:
http://backup.kelley.iupui.edu/Googlemap/alummap.aspx

Note: the pages could be removed at any time.

2 Comments:

Blogger Legal and Finance Consulting said...

Hi, I am MagicDrinks, and like to contact you!

By my SEARCHING out FOR THE LATEST INFORMATION about popups I have found your site.
Of course, I was looking out for popups related information and I have found your Auto Refresh Content | Access No Cached Data. Sorry, I have seen that isn't a perfect match. But, anyway, I am glad I have stopped by even though this isn’t a perfect match. What you have in your content is very interesting for most people.
I like to set up a link to you. What you think about?
It does will be a pleasure, if you contact me. Perhaps we have some same ideas. Wish you success with your site.

Fritz

10:41 AM  
Blogger Legal and Finance Consulting said...

Hi there MagicDrinks, I AM OUT SEARCHING FOR THE LATEST INFORMATION ON visitor and found your site.
Although Auto Refresh Content | Access No Cached Data wasn't exactly, what I was looking for, it certainly got my attention and interest. I see row why I found your page when I was looking for visitor related information, and I am glad I stopped by even though this isn’t a perfect match.

Fritz

4:41 AM  

Post a Comment

<< Home