A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: JSON

How to do AJAX in jQuery with JSON callback in Zend Framework

Here is how to do it in Zend Framework. Let’s start with the form: <textarea id="mytext"> </textarea> <input type="button" id="mybutton" value="go" />   < script language="Javascript"> //jQuery stuff $(document).ready(function() { $("#mybutton").click(function() { $.post("< ?=$this->baseUrl?>/path/to/my/coolaction",{ mytext: $(’#mytext’).val() }, function(data){ //alert("Data Loaded: … Continue reading

Posted in General | Tagged , , | 3 Comments