[TYPO3] Prototype and Mootools (accordion vs ratings)
Ingo Renner
ingo at typo3.org
Tue Feb 19 15:11:37 CET 2008
Dmitry Dulepov [typo3] wrote:
> ==========================
> function tx_ratings_submit(id, rating, ajaxData, check) {
> $('tx-ratings-display-' + id).style.visibility = 'hidden';
> $('tx-ratings-wait-' + id).style.visibility = 'visible';
> new Ajax.Updater('tx-ratings-' + id, 'index.php?eID=tx_ratings_ajax', {
> asynchronous: true,
> method: 'post',
> parameters: 'ref=' + id + '&rating=' + rating + '&data=' +
> ajaxData + '&check=' + check
> });
> }
you can leave out asynchronous and method as you're sign the default
values...
> If mootools and prototype are not ompatible, it should be easy to make a
> custom template to use with mootools. I am willing to add such template
> to ratings extension and mention author in docs ;)
I'd instead suggest having a look at this:
http://typo3.org/extensions/repository/view/jsmanager/1.0.0/
Ingo
--
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2
More information about the TYPO3-english
mailing list