Yii Framework for jquery Ajax submission back to POST Found error, seek resolution
This post was last edited by Burningx on 2014-12-22 21:16:40
$.ajax ({
URL: "
createurl (' edit ')?>",
Type: ' Post ',
Data:{aidarr:aidarr,hide:obj},
DataType: ' JSON ',
Success:function (data) {
if (data.status = = 1) {
Window.location.href = "
createurl (' select ')?>";
}else{
Alert (' failed to publish ');
}
},
Error:function (Boj,info) {
alert (info);
},
});
What the hell is wrong with this? Yesterday did not have a problem, the function has been tested, but today found all by the Ajax submitted by the prompt this error, confused + do not know, you help AH!!!
------to solve the idea----------------------
Brother.. Did you write the wrong action in the controller?
Seems to be the control of Admincontroller in the Actionarticle ($edit) method???
Or you module modules adminmodule Articlecontroller editaction (//Here is not write parameters? ) method??