MoFish Posted February 16, 2014 Share Posted February 16, 2014 Hi, I have a form posting to a php page which does some echo's. <div class="content"></div> <script> $('#designForm').submit(function(event) { event.preventDefault(); $.ajax({ type: 'POST', url: 'inc/design/design.process.php', data: $(this).serialize(), dataType: 'html', complete: function (data) { $('.content').html(data); } }); }); </script> I'm somehow getting responses in firebugs console, but nothing to in the webpage itself. Could anyone help shine some light onto why the messages would not be getting inserted into the .content div as i would have expected, but appear to be working in console? Thanks, MoFish Link to comment https://forums.phpfreaks.com/topic/286228-getting-response-in-firebug-but-not-to-browser/ Share on other sites More sharing options...
Ch0cu3r Posted February 16, 2014 Share Posted February 16, 2014 Use success: instead of complete: Link to comment https://forums.phpfreaks.com/topic/286228-getting-response-in-firebug-but-not-to-browser/#findComment-1469123 Share on other sites More sharing options...
MoFish Posted February 16, 2014 Author Share Posted February 16, 2014 That was it - I changed that yesterday thinking it would help. Thank You Link to comment https://forums.phpfreaks.com/topic/286228-getting-response-in-firebug-but-not-to-browser/#findComment-1469127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.