luckylukevn
asked on
Ajax http.open absolute URL
I want to use the function http.open but there are some problems when I try to use it with the absolute URL.
for example:
http.open('POST', 'http://langnghe.net/test/test.php')
Is it wrong? Can http.open use with absolute URL?
for example:
http.open('POST', 'http://langnghe.net/test/test.php')
Is it wrong? Can http.open use with absolute URL?
Ooops i had typo on earlier post....
It should infact be http.open("GET","http://langnghe.net/test/test.php",true);
The open() method takes three arguments. The first argument defines which method to use when sending the request (GET or POST). The second argument specifies the URL of the server-side script. The third argument specifies that the request should be handled asynchronously
Syntax :
http.open(Method,URL,Async hronous/Sy nchronous)
Example :
http.open("GET","http://langnghe.net/test/test.php",true);
It should infact be http.open("GET","http://langnghe.net/test/test.php",true);
The open() method takes three arguments. The first argument defines which method to use when sending the request (GET or POST). The second argument specifies the URL of the server-side script. The third argument specifies that the request should be handled asynchronously
Syntax :
http.open(Method,URL,Async
Example :
http.open("GET","http://langnghe.net/test/test.php",true);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http.open("POST","http://langnghe.net/test/test.php")
What error does it give