I'm having the same problem, as much as i know you have to use the cakephp ajax helper but havn't found out how to retrieve the data in a function. -Armen
On Oct 31, 8:58 am, BeerMan <[email protected]> wrote: > I'm trying to use the starbox star rating system in my page. > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
