Hi.I'm new.
I want to access to my webservice from Safari on iPad.
My WebService is performed by WCF+OData.
First,I tried from Safari(Ver.5.0.2.) on local PC using
XMLHttpRequest,
but caught the following error at XMLHttpRequst.open() method.

status: Error: INVALID_STATE_ERR: DOM Exception 11

My javascript source is below.
if( window.XMLHttpRequest ){
        var xhr = new XMLHttpRequest();
        xhr.open( "GET", "http://XXXXXXXX";, true );
        xhr.onreadystatechange = function(){
            if( xhr.readyState == 4 && xhr.status == 200 ){
                alert( xhr.responseText );
            }
        }
        xhr.send( null );
}

I looked into the cause of this error,but I couldn't solve.
Please help me.

regards

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to