Jquery ajax request failed
I am trying to develop a web application and I have a little problem to
send data to the server with Ajax my goal is to do a double with ajax
request
Except that the varible $ _GET['lang'] does not exist on the server side!
(PHP)
here my code.js
Code:
jQuery.ajax ({
type: "GET"
url: URL,
like: "json"
success: function (response) {
var jsonp = response;
var obj =jQuery.parseJSON (jsonp).;
jQuery.each (obj, function () {
lang + = this ['value'] + ":" + this ['qualify'] split ('@')
[4] split ('s') [1] + "\ n".. });
alert (lang);
jQuery.ajax({
type:"GET"
url:"SaveFileFromClient.php"
data: "lang =" + lang,
success: function (response) { }
});
}
});
No comments:
Post a Comment