jQuery.post doesn't return any response -


I value using POST jQuery (API call) on my server. Prices have been successfully added to DB, but I have not received any response from the server.

Here is my jquery for the post.

  $ (document) .ready (Function () {$ ('# signupConfirm') click (function () {if (validateSignUpForm ()) // // check the availability of username // All these Vars sign up in the API call var ServiceUrl = 'http: // xxxxxxxxxxxxxxxx'; var apiKey = 'xxxxxxxxxxxxxx'; var apiSecret = 'xxxxxxxxxxxxxxxxxxx'; var user name = $ ('# username'). Val (); var Email = $ ('# email1') .val (); var password = $ ('# password1'). Val (); $ .post (signUpServiceUrl, {'api_key': apiKey, 'api_secret ': ApiSecret,' Username ': Username,' Email ': Email,' Password ': Password}, ​​Function (data) {Par Result = JSON.parse (data);});}});});  

Is there any mistake in this?

You are sending cross-domain requests, use jsonp . Here's an example:


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -