You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by H....@MI.unimaas.nl on 2004/11/16 23:20:06 UTC

HTMLarea in a table in IE doesn't show up, help anyone?

Hi,

I read a post somewhere that HTMLarea doesn't display properly when it's in
a table in IE. It works as expected in FireFox.

Does anyone know how to fix this? So, a rows="20", cols="80" area only shows
the toolbar in IE, when displayed in a table cell. I really cannot change to
DIV (as was proposed in the other post), so does anyone have a solution?

Thanks.

Bye, Helma

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: HTMLarea in a table in IE doesn't show up, help anyone?

Posted by Andreas Schmid <co...@sa-lsa.com>.
Just try to set a explicid hright to your table cell (td)
eg

<table style="height:200px; width:200px;">
    <tr>
       <td>
             <textarea style="height:200px; width:200px; "/>
        </td>
    </tr>
</table>

I think this would do....

H.vanderLinden@MI.unimaas.nl wrote:

>Hi,
>
>I read a post somewhere that HTMLarea doesn't display properly when it's in
>a table in IE. It works as expected in FireFox.
>
>Does anyone know how to fix this? So, a rows="20", cols="80" area only shows
>the toolbar in IE, when displayed in a table cell. I really cannot change to
>DIV (as was proposed in the other post), so does anyone have a solution?
>
>Thanks.
>
>Bye, Helma
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: HTMLarea in a table in IE doesn't show up, help anyone?

Posted by Frank Taffelt <fr...@interface-business.de>.
i also had this behaviour. the solution was to define an own
javascript:onload function which does all the initialization that the
htmlare needs.

my forms templates calls this function :
...
<fi:styling type="htmlarea" style="height:400px;width:800px;">
   <initFunction>init_html_area</initFunction>
</fi:styling>
...

the function init_html_area is defined in the html/head section as:
<script>
  function init_html_area(id) {

  var myobj = new Object();
  myobj.data = id;

  myobj.forms_onload = function() {
    // default config
    var config = new HTMLArea.Config();

    // override deafults
    config.width = "auto";
    //config.width = "300px";
    config.height = "auto";
    //config.height = "300px";
    HTMLArea.replace(this.data,config);
  }

  // register in the onload chain
  forms_onloadHandlers.push(myobj);
}
</script>

in short, the problem is a timing problem when the HTMLArea gets executed
and not all required Elements (your table) are rendered and has the correct
height, in your your case height = 0.

hth,
Frank


----- Original Message -----
From: <H....@MI.unimaas.nl>
To: <us...@cocoon.apache.org>
Sent: Tuesday, November 16, 2004 11:20 PM
Subject: HTMLarea in a table in IE doesn't show up, help anyone?


> Hi,
>
> I read a post somewhere that HTMLarea doesn't display properly when it's
in
> a table in IE. It works as expected in FireFox.
>
> Does anyone know how to fix this? So, a rows="20", cols="80" area only
shows
> the toolbar in IE, when displayed in a table cell. I really cannot change
to
> DIV (as was proposed in the other post), so does anyone have a solution?
>
> Thanks.
>
> Bye, Helma
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: HTMLarea in a table in IE doesn't show up, help anyone?

Posted by Ugo Cei <ug...@gmail.com>.
Il giorno 16/nov/04, alle 23:20, H.vanderLinden@MI.unimaas.nl ha 
scritto:

> Does anyone know how to fix this? So, a rows="20", cols="80" area only 
> shows
> the toolbar in IE, when displayed in a table cell. I really cannot 
> change to
> DIV (as was proposed in the other post), so does anyone have a 
> solution?

I have it working in an app and from what I can see of the source, I 
use the following attributes:

style="width: 100%;" rows="20"

HTH,

		Ugo

-- 
Ugo Cei - http://beblogging.com/