php - Getting jQuery's .post to work with Zend, error code 500 -
okay, trying make site using zend framework on php , jquery. make ajax call page 1 of controllers , controller echos code, jquery never "succeeds". got:
jquery ajax call:
$('.homelink').click(function() { $.ajax({ url: '/index/ajax/page/index', type: 'post', success: function(result){ alert(result); } }); });
the controller echo's following string:
<p>home page content here</p>
the problem function never called upon success send alert.
any help?
thanks.
update:
i discovered ajaxcontext switch. jquery call bit different. using url '/index/index/format/html'.
the zend controller being call correctly however, nothing being returned still. console replies internal server error (code 500).
Comments
Post a Comment