Get Service using jQueryHome › Forums › Programming › Get Service using jQuery Tagged: jQuery, serviceThis topic has 2 replies, 1 voice, and was last updated 11 years, 3 months ago by Satish.Viewing 3 posts - 1 through 3 (of 3 total)AuthorPostsJuly 19, 2013 at 6:31 am#3279SatishKeymasterhttps://technotip.com/2271/fetch-json-data-using-jquery-ajax-method-getjson/Replace json_data.json with the obsolute URL from where you want the service(data).json_data.json is the first parameter of $.getJSON method.https://technotip.com/2294/fetch-json-array-elements-using-jquery-ajax-method-getjson/If you have different datatype: use $.ajax method $.ajax({ dataType: "json", url: url, data: data, success: success }); replace datatype and url values. Use success handle to process the data received. July 19, 2013 at 6:36 am#3280SatishKeymasterExampleIf your callback URL is present herehttp:// localhost:8080/restws/json/product/get?callback=processshould output:process({Company: “Technotip”, reg_id: 15}) $.ajax({ type: "GET", dataType: "jsonp", url: "http:// localhost:8080/restws/json/product/get?callback=process ", success: function(data){ alert(data); } }); July 19, 2013 at 6:44 am#3281SatishKeymasterReal-time Example: Fetching My latest Tweets from TwitterGetting latest Tweets: APIAuthorPostsViewing 3 posts - 1 through 3 (of 3 total)You must be logged in to reply to this topic.Log InUsername: Password: Keep me signed inLogin form protected by Login LockdownLog In