Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-12-17 10:24:29

murphy
New member
Registered: 2007-12-17
Posts: 1

naming textareas dynamicly

Hello.

I have a website with several textareas, witch are named "news_1", "news_4", "news_<insert any numer here>" ...
Since the textareas numbers change for each reload, are there a way to use a wildcard in the xinha_editors=   ? (like "xinha_editors:["news_*"];"


My problem can also be solved by using one textarea named "news", and then changing the value of "news". but, the javascript:
document.getElementById('news').value='<insert new content to news here>';  does not work. The textarea "news" keeps its original value (witch is empty).
I know the document.getElementById('fieldname').value='<insert text or object.value here'>; works, but just not on a textarea that have xinha integrated... Is there a way forcing  xinha to update the value in its textarea?

Offline

#2 2007-12-20 18:21:13

Practicality
Xinha Community Member
Registered: 2007-02-15
Posts: 24

Re: naming textareas dynamicly

I believe you are looking for the setHTML method. (http://xinha.gogo.co.nz/punbb/viewtopic.php?id=224)
or maybe the insertHTML method:
http://xinha.raimundmeyer.de/JSdoc/Xinh … insertHTML

Offline

Board footer

Powered by FluxBB