[TYPO3-ect] xaJax 0.2.4
Joerg Schoppet
joerg at schoppet.de
Thu Sep 7 10:00:16 CEST 2006
Oliver Hader wrote:
> Hi everybody,
>
> I'm using tx_xajax in the TYPO3 Backend on a page where records of the
> Web>List module are edited. So TCEforms renders the input fields and
> some of them use RTEhtmlarea.
> When the JavaScript code of ./ext/tx_xajax/xajax_js/xajax.js is included
> to the <HEAD> part of the browser, the JavaScript-Debug of Firefox tells
> me, that "containsValue" is not defined and throws an error in
> ../typo3temp/rtehtmlarea_htmlarea_a5631abce6f4c4f1b1cb2fbcc778868c.js
>
> It's a bit strange to me, because the "containsValue" is the prototype
> extension of the Array-Object in xajax.js:
>
> Array.prototype.containsValue = function(valueToCheck)
> {
> for (var i=0;i<this.length;i++) {
> if (this[i] == valueToCheck) return true;
> }
> return false;
> }
>
> To isolate the error I disabled "Array.prototype.containsValue" and
> added a function to the Xajax JavaScript class like this:
>
> function Xajax()
> {
> this.arrayContainsValue = function(arrayToCheck, valueToCheck)
> {
> ...
> }
> }
>
> And now it work's. Additional to this I used the original xajax.js and
> disabled the input fields, that were using RTEhtmlarea. And again, the
> error wasn't there anymore.
>
> I don't know what type of correlation between
> "Array.prototype.containsValue" of xajax and RTEhtmlarea that could be.
> Maybe someone of you also had some experience like this?
>
>
Hi,
strange. I'm now developing for some time with extension and never
experienced such a problem.
Joerg
More information about the TYPO3-team-extension-coordination
mailing list