473,382 Members | 1,377 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,382 software developers and data experts.

xmlhttpRequest caching problem

jmt
Hi,

We are having a problem with a xmlhttpRequest request returning a cached
version of the request - the code we are using is inserted below.
Has anyone else had this problem before - or have any ideas on what we may
be doing incorrectly.

Thanks
JMT

----------------------------

xmlhttpRequest : function(url)

{

var mainPageURL = document.location.href.split("/");

var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");

try

{

var vURL = mainPageURL[0] + "//" + mainPageURL[2] + "/" +
mainPageURL[3] + "/" + url;

xmlhttp.open("GET", vURL, false);

xmlhttp.send();

if (xmlhttp.statustext != "OK")

{

alert("Failed to execute URL " + vURL + ": " +
xmlhttp.statusText);

return "";

}

else

return xmlhttp.responseText;

}

finally

{

xmlhttp = null;

}

},
--
jmt
Jul 22 '05 #1
1 3890
jmt wrote:
Hi,

We are having a problem with a xmlhttpRequest request returning a
cached version of the request - the code we are using is inserted
below.
Has anyone else had this problem before - or have any ideas on what
we may be doing incorrectly.

Thanks
JMT


You showed us your client-side code* which is not where the problem is. The
problem actually is in the server-side page to which you are sending the
request. See:
http://www.aspfaq.com/show.asp?id=2022
Bob Barrows
* A better newsgroup for client-side questions is .scripting.jscript. ASP is
server-side technology, so we focus on server-side questions here.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #2

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

Similar topics

10
by: Matt Kruse | last post by:
I'm aware of the circular reference memory leak problem with IE/closures. I'm not sure exactly how to resolve it in this situation. Also, Firefox appears to grow its memory size with the same code....
3
by: Sergey Surkov | last post by:
Hello Does anybody know how to make FireFox to cache data that comes via XMLHttpRequest? Here is the issue I deal with: - On the web server (apache2) I have a static xml file test.xml - When I...
2
by: warteschlange | last post by:
Martin Honnen wrote: >You can set HTTP request headers if you need to > var httpRequest = new XMLHttpRequest(); > httpRequest.open('GET', 'file.xml', true); > ...
76
by: kwilder | last post by:
This works, but it doesn't load the latest version of the xml if it was just modified without closing and reopening the browser. Here's the scenario: I have an xml doc called results.xml. It...
42
by: Greg | last post by:
Hi, I've designed a bookmark in Ajax / PHP that I will put soon on sourceforge.net. But I've got an very tricky bug. I try it on some computers with Internet Explorer/Windows, Firefox...
25
by: Matt Kruse | last post by:
According to HTTP/1.1 specs, a client should only have two connections open to the host at a time (which can be changed by browser users, of course). When using xmlHttpRequest connections, is...
2
by: bizt | last post by:
Hi, I have a page that makes many XmlHttpRequest requests from a single page. This works fine but I need some requests to be made over a secure connection. To my understanding, when setting the...
25
by: q-rious | last post by:
Hello All, I have a question regarding XMLHttpRequest. I have the following code (as part of a much larger file): function loadXMLDoc(url) { // branch for native XMLHttpRequest object if...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.