Click here to Skip to main content
15,911,035 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUpdating WebService Pin
Spaz8018-Apr-06 2:43
Spaz8018-Apr-06 2:43 
QuestionDynamic DIV Pin
CoolASL18-Apr-06 1:53
CoolASL18-Apr-06 1:53 
AnswerRe: Dynamic DIV Pin
alexey N18-Apr-06 1:58
alexey N18-Apr-06 1:58 
GeneralRe: Dynamic DIV Pin
CoolASL18-Apr-06 2:01
CoolASL18-Apr-06 2:01 
GeneralRe: Dynamic DIV Pin
alexey N18-Apr-06 2:06
alexey N18-Apr-06 2:06 
AnswerRe: Dynamic DIV Pin
Guffa18-Apr-06 2:09
Guffa18-Apr-06 2:09 
AnswerRe: Dynamic DIV Pin
Guffa18-Apr-06 2:14
Guffa18-Apr-06 2:14 
GeneralRe: Dynamic DIV Pin
CoolASL18-Apr-06 3:36
CoolASL18-Apr-06 3:36 
Hi Guffa,
Thanks for coming to my rescue again.

It would really be nice if i could put the DIVs in the normal flow of the page. But since i am required to generate them dynamically, it is not possible to do so.

Ok, to tell you the actual thing, i am actually writing a script to display a Dynamic Tree View. I know there are quite a number of such free sources, but i wish to do it on my own so that i can have the display my way.

According to my code, when a user clicks on a + sign,
1) The sub-directories are retrieved from the database using AJAX.
2) DIVs are created dynamically and initialized properly
3) The DIVs are embedded inside the parent DIV using appendChild and the height of the parent is increased to accomodate the newly created DIVs.

I have to use
overflow:hidden 

property for all the DIVs because without that the generated DIVs fail to display themselves inside the parent DIV and they get displayed outside the parent DIV on the main page.

Now, since the parent DIV has been created in the normal flow, when they expand, they push down the other DIVs under them. But the ones generated by me, fail to do so and overwrite on the ones below.

I hope i was able to explain you my logic.
Is my logic ok, or is there a better way of doing this thing.
I have not tried, but i feel that i should alter the innerHTML of the parent DIV to add the newly created DIVs.

Please help me out.

Thanks in advance.


*** Who said nothing is impossible? I have been doing it for a long time ***

AnswerRe: Dynamic DIV Pin
Guffa18-Apr-06 6:41
Guffa18-Apr-06 6:41 
GeneralRe: Dynamic DIV Pin
CoolASL18-Apr-06 21:19
CoolASL18-Apr-06 21:19 
GeneralRe: Dynamic DIV [modified] Pin
Shog918-Apr-06 17:05
sitebuilderShog918-Apr-06 17:05 
GeneralRe: Dynamic DIV [modified] Pin
CoolASL18-Apr-06 21:18
CoolASL18-Apr-06 21:18 
QuestionMySql Regexp Pin
rgoyal18-Apr-06 1:50
rgoyal18-Apr-06 1:50 
QuestionForm Method Pin
Amol Ravatale17-Apr-06 19:09
Amol Ravatale17-Apr-06 19:09 
GeneralRe: Form Method Pin
Guffa17-Apr-06 20:56
Guffa17-Apr-06 20:56 
AnswerRe: Form Method Pin
NeverHeardOfMe18-Apr-06 1:51
NeverHeardOfMe18-Apr-06 1:51 
GeneralRe: Form Method Pin
alexey N18-Apr-06 2:02
alexey N18-Apr-06 2:02 
AnswerRe: Form Method Pin
Guffa18-Apr-06 2:16
Guffa18-Apr-06 2:16 
QuestionGenerate xml files Pin
prasenc17-Apr-06 18:31
prasenc17-Apr-06 18:31 
AnswerRe: Generate xml files Pin
alexey N17-Apr-06 18:41
alexey N17-Apr-06 18:41 
GeneralRe: Generate xml files Pin
prasenc18-Apr-06 22:55
prasenc18-Apr-06 22:55 
QuestionMaking HTML page printable Pin
jmfekete17-Apr-06 8:19
jmfekete17-Apr-06 8:19 
AnswerRe: Making HTML page printable Pin
Shog917-Apr-06 9:09
sitebuilderShog917-Apr-06 9:09 
QuestionJapan Charackters and MySQL Pin
progman17-Apr-06 1:42
progman17-Apr-06 1:42 
AnswerRe: Japan Charackters and MySQL Pin
alexey N17-Apr-06 1:54
alexey N17-Apr-06 1:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.