| Latest |Kites |Pictures |Programming |Life |
![]() [filed under Programming]zend framework jeditable ![]() Tags: zend framework jquery.jeditable.js JSON jeditable does not accept JSON in response to the AJAX call. So how can you get this to work with Zend Framework? Like this: Your view will need the the .js files: <?php In your controller you'll need to add a context swtich to return JSON, not HTML: public function init() You action will look like this: function myEditableAjaxAction()
The URL you need to paste into the editable config will need the JSON context switch in it: $(".edit_area").editable("<?= $this->url(array('action'=>'my-editable-ajax', 'format'=>'json')) ?>", { Hope that helps.
Comments |
| Server Grind [0.0026 seconds] |