Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] RE:Microsoft.XMLHTTP
- From: priya_rajanga at yahoo.com (priya iyer)
- Subject: [Javascript] RE:Microsoft.XMLHTTP
- Date: Tue May 10 10:06:34 2005
I make this function call in set time out dataDetailsFrame is a frame in which data is got. The problem is i have window.open at various places, whenever those windows are clicked they hang in ie can anyone tell me how this can be resolved
function doFetchDetails(){
loadFrameWith(window.dataDetailsFrame, 'detailsData.jsp?currPage='+currPage+'&index='+index+'&vehicleId='+pagesSummaryArray[currPage][index].vehicleId);
}
function loadFrameWith(theFrame, url, async) {
var req;
// Create a request object
if (window.XMLHttpRequest) {
// The browser natively supports XmlHTTPRequest
req = new XMLHttpRequest();
} else {
// This is IE so we need to get the ActiveX object
req = new ActiveXObject("Microsoft.XMLHTTP");
}
req.onreadystatechange = function(evt) {
// Only take action when loading is complete
// (readyState 4) and successfull (status 200)
if((req.readyState == 4) && (req.status == 200)) {
theFrame.window.location.replace('about:blank');
theFrame.document.writeln(req.responseText);
theFrame.document.close();
}
};
if (!async) async=true;
req.open("POST", url, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send();
}
---------------------------------
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050510/227e183b/attachment.html
- Prev by Date: [Javascript] live counter help!!!
- Next by Date: [Javascript] Off Topic, CSS and XML Question- this message is in text format
- Previous by thread: [Javascript] Off Topic, CSS and XML Question- this message is in text format
- Next by thread: [Javascript] Silly question
- Index(es):