:: Forum >>

#box and #frame in HTML - how?


I'm currently trying to insert the good looking "dialog.htm" into rather complicated html page with a lot of tabs and cells.
The question is:

How do I insert: var box = new AW.HTML.DIV; and var frame = new AW.HTML.DIV; object in <TD> tag?

I sued:

but then it gives me only Frame obejct displayed. Box is disspaering.
So I guess in case with several objects - one CAN NOT use obj.toString(); coz then you will only get the last object displayed.
So, what one can do?...

And anther one question:

#box and #frame CSS using position: absolute;
this is not going to work if you want to put it inside of f.ex <TD> tag.
How can I then put "box" and "frame" and all the rest inside of <TD>?.....

Any suggestions are appreciated!

Thursday, February 9, 2006

you can try:



var content = [box, frame, ...];

Alex (ActiveWidgets)
Thursday, February 9, 2006
Thanx, Alex
works just as it should :)
easy, ha..

What about CSS? Could anyone pls share an example on how to implement nicely looking "dialog.htm" into <TD>?

In my case, if I include : position: absolute;
then it goes beyond <td> which is no good at all.
If I remove position: absolute; then BOX object goes first, and then FRAME object goes next to it below, but they are not sticking together...
Thursday, February 9, 2006
Put the dialog parts into a DIV that has a position=relavtive and then put the DIV into the TD. THe dialog should then align itself to the DIV and not the page.
Jim Hunter (www.FriendsOfAW.com)
Thursday, February 9, 2006
It does not help me...maybe I'm doing something wrong?
The box and the frame are still go one after another below.

#box {left: 0px; top: 400px; width: 398px; height: 432px; border: 1px solid #000000; background: #ece9d8; position: absolute;}
#frame {left: 6px; top: 408px; width: 386px; height: 402px; border: 1px solid #000000; background: #f9f8f4; position: absolute;}

<table border="1">
<tr><td width="800" align="right">2 Grid</td></tr>
<tr><td width="800" align="right">
<div style="position=relavtive;" id="grid2">
var box = new AW.HTML.DIV;

var frame = new AW.HTML.DIV;

var container = new AW.HTML.SPAN;

Can anyone help me please?
Friday, February 10, 2006
sorry, I think the problems was with: position=relavtive
misspelling. It's seems working now...
Friday, February 10, 2006

This topic is archived.

Back to support forum

Forum search