Announcement

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

#1 2007-02-17 09:27:48

MyLocalFOCUS.com
Xinha Community Member
Registered: 2007-02-17
Posts: 31

Dynamically added content areas

Hi,

I have downloaded xinha on 17th Feb, but had some problems. I will mention the problems here...

First, fullscreen wants to load from plugins folder as well as modules. I had to copy the folder from modules to plugins. This had me pulling my hair out. firefox then says that

Error: req has no properties
Source File: http://localhost/CorporatePortal/editor/XinhaCore.js
Line: 3004 (ignore the line number as I editted xinhacore to try and get the above issue working).

Anyhow, back to my question.

I am using C#

I have created a myconfig.js. This works fine but I need to seperate out the lines...

      xinha_editors = xinha_editors ? xinha_editors :
      [
'HTMLPH',
'Htmlplaceholder1'
      ];


The reason being is that my HTMLPH and Htmlplaceholder1 are dynamically generated at runtime, so they cannot exist in the static JS file. I have tried seperate lines along with my textarea but only one of the areas work. I have...

<textarea id=htmlph></textarea>
<script>
      xinha_editors = xinha_editors ? xinha_editors :
      [
'htmlph',
      ];
</script>

<textarea id=htmlplaceholder1></textarea>
<script>
      xinha_editors = xinha_editors ? xinha_editors :
      [
'htmlplaceholder1',
      ];
</script>


and only the first editor will work.

How can I make this work?

I have another question that I will post in a new thread...


Oh yes... Why don't you use the wysiwig in the forum?

Regards.

Offline

#2 2007-10-04 08:36:01

orcen
New member
Registered: 2007-10-04
Posts: 1

Re: Dynamically added content areas

Hi,

I have the same problem. I have multiple textareas, and only the first one works. The others have the display set to 'none' and are opened with JS. I really need to know how to get them work.

Please can somebody help me? Its very importent.

Offline

Board footer

Powered by FluxBB