Click to See Complete Forum and Search --> : Safari AJAX and Form Submitting


Shawazi
05-25-2007, 08:20 PM
I have a script that uses AJAX to check if I should submit a form or not. It comes down to this area of code which we are familiar with for the most part:


if ((XMLHttpRequestObjectCheck.readyState==4 || XMLHttpRequestObjectCheck.readyState=="complete"))
{
document.getElementById('uploadForm').submit();
}


I got rid of the if statements from the ReponseText to just make it submit. This works in every browser except safari which gives an error like:
NSURLErrorDomain 1005 saying it lost the connection and to report the bug to Apple.

Oh, the long Object name is because I was running two AJAX processes and had renamed the two, to make sure it wasn't caused by that earlier on.