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

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -