As the tutorial on the website suggested I used the saveStar function
to call a function in one of my controllers. the controller name is
comments and the function name is addRate.
the code I have below doesnt work because it is not accessing the
comments controller. how do i fix this?
function saveStar(event) {
new Ajax.Request('comments/addRate', {
parameters: event.memo,
onComplete: function(xhr) {
// optional callback
}
});
}
Also, how do i retrieve the data (event.memo) that is being send to
the addRate function? should i use the $this->param['forum']['memo'] ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment