473,407 Members | 2,312 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,407 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 2206

<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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.