Advertisement
Advertisement
| 05.16.2008 at 03:13AM PDT, ID: 23407794 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
// This is the check in after the AJAX call, from a method called "loadDiv()"
xmlhttp.open("GET", url, sync);
xmlhttp.send(null);
try {
if(xmlhttp.obj.onreadystatechange == null)
if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
document.getElementById(content).innerHTML = xmlhttp.responseText;
}
}catch (e){}
...
// And here's an example of where it fails
...
loadDiv(url,'hiddenVals', 'false');
carJSON.carID = document.getElementById('carId').value;
...
// With the "carId" element being returned in the responsetext from "loadDiv()".
|