You are not logged in.
Pages: 1
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
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
Pages: 1