Rendering of DHTML elements programmatically in a loop
From: manju (manju_at_discussions.microsoft.com)
Date: 12/07/04
- Next message: TsyrPhlame: "IE Cannot Reach Certain Pages, tracert succeeds"
- Previous message: Jan Il: "Re: Java doesn't activate in my XP_SP2 IE 6"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Dec 2004 19:29:02 -0800
Hi,
I use DHTML browser as my main application window and I create elements like
<p>, <table>, <img> etc dynamically using MSHTML C++ interfaces like
IHTMLDocument2::createElement
IHTMLDOMNode::insertBefore
and these elements appear in the browser after creation and insertion into
the DOM.
The problem is that if I create an element, say a <p> with some text, in a
loop like the following statement
for(100 times)
{
createElement(...) //create <p> element
insertBefore //appends as a child to its parent DOM node
}
The <p> elements dont appear until the loop terminates and once the loop
terminates all elements appear at once, until then the browser is blank.
Is it possible to let the HTML renderer display elements immediately after
creation and insertion into DOM node?
what I mean to say is that in the above loop which iterates 100 times every
time an element is created it must be immediately displayed, is there a way???
Thanks,
manju
- Next message: TsyrPhlame: "IE Cannot Reach Certain Pages, tracert succeeds"
- Previous message: Jan Il: "Re: Java doesn't activate in my XP_SP2 IE 6"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|