[TYPO3-ect] xaJax 0.2.4
Oliver Hader
oh at inpublica.de
Thu Sep 7 08:12:33 CEST 2006
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?
olly
Elmar Hinz wrote:
> Hi all,
>
> today I published xaJax 0.2.4 to TER, which implements xaJax 0.2.4 -- what
> a surprise ;.)
>
> http://sourceforge.net/forum/forum.php?forum_id=564820
>
> http://wiki.xajaxproject.org/0.2.4_Release_Notes
>
> You can also download it with SVN:
>
> svn export https://svn.sourceforge.net/svnroot/typo3xdev/tx_xajax/tags/0.2.4
>
> Please report your Tips and Experiences with xajax to this thread.
>
>
> Regards
>
> Elmar
More information about the TYPO3-team-extension-coordination
mailing list