Revision #3 has been created by dhimes on Sep 13, 2012, 12:08:58 PM with the memo:
Added a comment to the code based on François' comment below.
« previous (#2) next (#4) »
Changes
Title
unchanged
Elementary introduction to using jQuery ajax and the yii framework
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
AJAX
Content
changed
[...]
~~~
[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 ");[...]