34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
Elementary introduction to using jQuery ajax and the yii framework
Comparing
#2
with
#3
Revision #3 was created by
dhimes
on Sep 13, 2012, 12:08:58 PM.
Added a comment to the code based on François' comment below.
« Previous (#2)
Next (#4) »
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 ");
[...]