473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Internet Explorer. Inserting HUGE html data to control innerHTML.

wp.prototype.loadHtmlToCtrl = function (ctrl, html) {
alert(1);
ctrl.innerHTML = html;
alert(2);
}

5-10 seconds between two alerts depends on string length. It's only IE
bug. FF and Safari3 works fine.

Maybe anyone knows how I can insert huge HTML data faster? (100-400Kb
one time and 10-20Kb many times).

Thanks for advice.
All the best, Gleb M. Borisov.

Jul 18 '07 #1
2 2202

<bo**********@gmail.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
wp.prototype.loadHtmlToCtrl = function (ctrl, html) {
alert(1);
ctrl.innerHTML = html;
alert(2);
}

5-10 seconds between two alerts depends on string length. It's only IE
bug. FF and Safari3 works fine.
What makes you think this is a bug? Sounds like a performance issue to me.
>
Maybe anyone knows how I can insert huge HTML data faster? (100-400Kb
one time and 10-20Kb many times).
That doesn't sound so HUGE. Perhaps it is the complexity and not the size
that is the problem?

You can't get any faster than innerHTML. Do you have to insert the whole
thing at once or can you do it a little at a time? If you can break it up
into stages, you can use setInterval. It won't actually speed it up, but
will allow you to update a progress bar or something like that. You might
want to hide the containing element during the operation as you probably
don't want the user to interact with the partially rendered HTML.
Jul 18 '07 #2
On Jul 18, 7:00 pm, "David Mark" <dm...@cinsoft.netwrote:
<borisov.g...@gmail.comwrote in message

news:11**********************@j4g2000prf.googlegro ups.com...
wp.prototype.loadHtmlToCtrl = function (ctrl, html) {
alert(1);
ctrl.innerHTML = html;
alert(2);
}
5-10 seconds between two alerts depends on string length. It's only IE
bug. FF and Safari3 works fine.

What makes you think this is a bug? Sounds like a performance issue to me.
Maybe anyone knows how I can insert huge HTML data faster? (100-400Kb
one time and 10-20Kb many times).

That doesn't sound so HUGE. Perhaps it is the complexity and not the size
that is the problem?

You can't get any faster than innerHTML. Do you have to insert the whole
thing at once or can you do it a little at a time? If you can break it up
into stages, you can use setInterval. It won't actually speed it up, but
will allow you to update a progress bar or something like that. You might
want to hide the containing element during the operation as you probably
don't want the user to interact with the partially rendered HTML.
Now I'm trying to split content and insert it to element with some
intervals via setTimeout.
Anyway, thanks for reply.

All the best, Gleb M. Borisov.

Jul 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jason | last post by:
I have a web page that contains textareas. These are dynamically added via asp when the page loads based on database records. The user also has the ability to add more text areas via innerhtml. ...
2
by: The_Original_MB | last post by:
I have a task to create tables dynamically, using the javascript DOM. The current method uses a 1px x 1px IFRAME to loop through some data generation stuff, and then call JS functions in the parent...
3
by: VK | last post by:
Internet Explorer 7 beta 2 preview CNET Editor review: <http://reviews.cnet.com/Internet_Explorer_7_for_XP_SP2_Beta_2/4505-3514_7-31454661-2.html?tag=nl.e415> Summary (my personal review...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
1
by: mubarak basha | last post by:
hi, i wrote the following coding.......... <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Getting...
7
by: imad.sabonji | last post by:
HI I am using Visual Studio.Net 2003 and using C# I would like to know how is it possible to change the Internet explorer window title? ie. i want to get rid of "Microsot Internet Explorer"...
1
by: borisov.gleb | last post by:
Hi, all :) Does anybody know about IE freezing while huge html data inserted via innerHTML? I try to google it, try to research this bug. But nothing. Problem in that code: ...
1
by: Al7 | last post by:
Hello, I have wrote code that uploads files from user's hard disks to the server and everything works fine in Firefox and Safari, but in Internet Explorer it uploads dummy files and cycles that....
1
by: avpkills2002 | last post by:
I seem to be getting this weird problem in Internet explorer. I have written a code for parsing a XML file and displaying the output. The code works perfectly fine with ffx(Firefox).However is not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.