I have an HTML page which I want to populate using Ajax. I\'ve copied code from other pages, (which are all in PHP, and I\'m not sure if that matters), and it\'s returning
You need to include the datatype parameter on you AJAX call to indicate that you are simply expecting a text response:
function getSplashHelpVideos() { $.ajax({ url: "include/get_help_videos.php", type: "POST", dataType: "text", success: function(data) { alert(data); } }); return; }