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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -