Jquery Ajax Post 500 Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more 500 internal server error ajax get about Stack Overflow the company Business Learn more about hiring developers or posting jquery ajax 500 internal server error php ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Post 500 (internal Server Error) Angularjs
Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up JQuery Ajax Post results in 500 Internal Server Error up vote
500 Internal Server Error Ajax Php
50 down vote favorite 13 I am trying to perform this AJAX post but for some reason I am getting a server 500 error. I can see it hit break points in the controller. So the problem seems to be on the callback. Anyone? $.ajax({ type: "POST", url: "InlineNotes/Note.ashx?id=" + noteid, data: "{}", dataType: "json", success: function(data) { alert(data[1]); }, error: function(data){ alert("fail"); } }); This is the string jquery ajax post 500 internal server error asp net that should be returned : {status:'200', text: 'Something'} javascript jquery ajax share|improve this question edited Dec 23 '15 at 4:43 Sindhoo Oad 1,105724 asked Aug 28 '09 at 20:17 Nick 7,90932133248 .ashx = .NET platform? What does this have to do with Java? –matt b Aug 28 '09 at 20:27 is it possible to make the call correctly without $ sign or jQuery prefix in front of ".ajax"? –Sinan Aug 28 '09 at 20:42 Yes.. I am using the jQuery.noConflicts(). The prefix is correct. Like I said. It makes the request.. but the error is returned. –Nick Aug 28 '09 at 20:48 Check the post here developersnote.com/2014/01/… –shamcs Jan 21 '14 at 8:35 The link above from @shamcs contains a string at the end that renders it invalid. The correct link is developersnote.com/2014/01/… –Erenor Paz Aug 16 at 20:13 add a comment| 28 Answers 28 active oldest votes up vote 48 down vote accepted I suspect that the server method is throwing an exception after it passes your breakpoint. Use Firefox/Firebug or the IE8 developer tools to look at the actual response you are getting from the server. If there has been an e
here for a quick overview of the site Help Center Detailed answers to any questions you
Ajax Post 500 Internal Server Error C#
might have Meta Discuss the workings and policies of this site 500 (internal server error) ajax post laravel About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or post 500 internal server error php posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of http://stackoverflow.com/questions/1349118/jquery-ajax-post-results-in-500-internal-server-error 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 500 Internal Server Error due to JQuery Ajax Post up vote 1 down vote favorite 1 Found the answer: The error was the semicolon and it worked ! But as "KIKO Software pointed out" due the code http://stackoverflow.com/questions/37640121/500-internal-server-error-due-to-jquery-ajax-post that didn't make sense the data was added twice in the database hence I removed the "$("script").html(result);" line in the html file and everything worked like a charm. And this was nothing related to server error 500.... Just a few errors in the code. I am stuck while trying to perform an AJAX post. For some reason, I'm getting a server 500 error. I can see it hit break points in the controller. I tried alerting and echo from the PHP file, and it doesn't work. I tried looking at other stack overflow queries and it didn't help. The Ajax call in add_pet.html script function add_trigger(){ var name=$('#name').text(); var breed=$('#breed').text(); $.ajax({ type: "POST", url: "add_pet.php", data: "PET_NAME="+name+"&PET_BREED="+breed, cache: false, success: function(result) { $("script").html(result); window.location.href='view.html'; } }); } $('div[contenteditable]').keydown(function(e) { if (e.keyCode === 13) { add_trigger(); return false; } });