GoldSoft Posted August 13, 2014 Share Posted August 13, 2014 My first time on this Excellent forum, hope that someone can help me here..... i got from my customer string that I need to get to the server and get an answer. this is the string: http://XXX.YYY.DDD.WWW:8082/My_ws?Myapp=Myprice&Mydip=123&itemno=123456 and i get any string as Result. i try this in ajax and jQuery - But I did not get any answer and I think something wrong in the code: $.ajax({ServiceCallID: 1,url: MyString,type: 'POST',data: '{"itemno": "' + itemno+ '"}',contentType: 'application/json; charset=utf-8',dataType: 'json',success:function (data, textStatus, XMLHttpRequest) {ALL = (data.d).toString();}},error:function (XMLHttpRequest, textStatus, errorThrown) {alert(textStatus);}}); I really have no idea how I'm supposed to send this link and in return get a string from the server thanks Link to comment Share on other sites More sharing options...
niche Posted August 13, 2014 Share Posted August 13, 2014 If you posted this topic 3 times on purpose, once is enough. More works against the topic. If not, please be more careful in the future. Link to comment Share on other sites More sharing options...
es131245 Posted August 13, 2014 Share Posted August 13, 2014 What does this do? ALL = (data.d).toString(); Maybe you can tey with something simple. Like alert(data); Link to comment Share on other sites More sharing options...
niche Posted August 14, 2014 Share Posted August 14, 2014 This will help you with your original question: http://www.w3schools.com/php/php_ajax_intro.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now