'How can a web service written in c recover passed data (js) through a url?
After passing the parameters through an AJAX call to my web service via the URL, how can I retrieve those parameters passed in my web service written in C?
This is my composition of the function to extrapolate the value of the single inputs. How do I call them in the web service?
function myFunction(element) {
$.ajax({
url: pacchetti_wsurl + 'ws_json_gestionepacchetti800',
type: 'GET',
data: {
ws_login: readCookie("wc_login").replace(/\"/g, ""),
ws_password_type: 'C',
ws_pwd: encodeURI(readCookie("wc_password").replace(/\"/g, "")),
nomepacchetto: $(".nomepacchetto").val(),
id: element.value,
tipotraffico: $(".tipotraffico").val(),
numerominuti: $(".numerominuti").val(),
importocanone: $(".importocanone").val(),
},
dataType: "json",
encode: true,
}).done(function(data) {});
event.preventDefault();
};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
