Use jQuery to update database through Joomla MVC component
I am developing a new version of my Joomla component TTVideo. I'm trying setup a rating system using the jQuery stars plugin. I have the jQuery noconflict issue resolved, however I'm a bit confused as to how to send the vote **securely** to a helper class that updates the database with the value of the vote. 

Usually this is done through an external script which is only every accessed by the ajax request. I would like to do this so it is incorporated within my component, and in such a fashion that the std Joomla variables are available to the helper class e.g. getDBO() and the database reference #__table_name.

Any comments on how to achieve this will be greatly appreciated. Thanks.
Use jQuery to update database through Joomla MVC component
===

I am developing a new version of my Joomla component TTVideo. I'm trying setup a rating system using the jQuery stars plugin. I have the jQuery noconflict issue resolved, however I'm a bit confused as to how to send the vote **securely** to a helper class that updates the database with the value of the vote. 

Usually this is done through an external script which is only every accessed by the ajax request. I would like to do this so it is incorporated within my component, and in such a fashion that the std Joomla variables are available to the helper class e.g. getDBO() and the database reference #__table_name.

Any comments on how to achieve this will be greatly appreciated. Thanks.