Yes, it works good in Firefox and IE ver > 9, But in IE <=9 I still have the "access denied" error.
I heard about same IFRAME method to get around this problem, but I don't know how to do it.
User Profile
Collapse
-
I digged in the NET and changed my script to use the XDomainRequest. It works good, but only if the url request has HTTP protocol. When I try to use url request with HTTPS protocol, in IE I still have the "access denied" error.
My new script.
...Code:function test_kod(field) { var xhr = createCORSRequest('GET', "https://dad-atlas.datasolutions.pl/karta.php?karta="+field.value);Leave a comment:
-
ajax from HTTP to HTTPS
On my page I have the FORM with one INPUT field. On SUBMIT this form I use JavaSript function "test_kod(this) " to valid is the the enetered value correct or not. But in the Internet Explorer ver <=9 the OPEN method allways fall with error "access denied".
WHAT AM I DOING WRONG?
...Code:function test_kod(field) { var req = createXMLHTTPObject(); if (!req) { return false;
No activity results to display
Show More
Leave a comment: