render-html

jquery post returning rendered html page rather than sql result

痴心易碎 提交于 2019-12-11 17:52:53
问题 I am using codeigniter in my application and have a jquery post function that works perfectly. $.post('getticketstacktype', {ticketnumber:ticketnumber},function(result) { alert(result); } I am then using the exact same post function on another edit page. this page is prepopulated with PHP and works correctly. I use the same post to call my controller, I have checked that ticketnumber value is correct $.post('getticketstacktype', {ticketnumber:ticketnumber},function(result) { alert(result); }