Elementary introduction to using jQuery ajax and the yii framework

Comparing #2 with #3

Revision #3 was created by dhimes dhimes on Sep 13, 2012, 12:08:58 PM.

Added a comment to the code based on François' comment below.

Content

[...]
~~~
[javascript]
ajaxCall = function(a){
jQuery.ajax({
                // The url must be appropriate for your configuration;
 
                // this works with the default confi of 1.1.11
 
url: 'index.php?r=app/ajaxProcessor',
type: "POST",
data: {ajaxData: a},
error: function(xhr,tStatus,e){
if(!xhr){
alert(" We have an error ");
[...]