jquery - Cant make an ajax request to my restful server -
the request not being sent. when user clicks button should send request server , return json object. working when manually type in url in browser.
$(document).ready(function() { $("#get-all-btn").click(function() { $.ajax({ url: "http://localhost:8080/safirestaurant/rest-services/reserve/get-all", data: {} datatype: "json", success: function(data, textstatus) { window.location.href = "owner-dashboard.html"; }, }); }); });
Comments
Post a Comment