I try to follow the guide from yii wiki about ajax and javascript. Unfortunately, it is too complex to understand or able to run. Anyone has another sample that able to perform ajax + javascript on yii please send me ones, thank .
What I want is client-side send to test.php a variable aValue. It process and send back $responseData to client-side, then from there it will execute callback function if the data successfully passed: aFunction(responseData).
If I have 2 buttons, how do I know which one I pressed? How to set get or post method for these buttons? And variable msg is the response data from server-side? Can I run only? :