Click here to Skip to main content
15,895,011 members

Comments by Trekstuff (Top 6 by date)

Trekstuff 17-Sep-12 16:46pm View    
Actually the solution I ended up with: Initial query returns IDs only - all few million of records, but a single field - primary key only. In .NET code they're read via DataReader (which is very fast) and stored in generic list. in the grid when I request a current page of data I pass just the ids needed for current page and a query returns subset of data based on those IDs - which is pretty fast too.
Trekstuff 2-Nov-11 21:58pm View    
Too unpredictable, you have to time setTimeout precise and even then it will behave differently in different situations.

Found a solution though:

http://codecorner.galanter.net/2011/11/02/how-to-load-iframes-in-order-according-to-priority/

Does not depend on timing or callback, just pure loops.
Trekstuff 26-Oct-11 15:40pm View    
I do know how they interact and which iframe I want to load with delay, just not sure which is the best way. This is approximation of the code currently in use:

for (var I=1; I<10; I++) {
oIframe = GetIframeObject(I);
sURL = GetIframeSource(I);
bIsDelayed = GetIsDelayed(I);

if (bIsDelayed) {
// What to do here?
} else {
oIframe.src = sURL
}
}

I am having problem with what to do if bIsDelayed condition is true and I need to delay that particular IFRAME load until after the rest are loaded. How do I delay load of that URL?
Trekstuff 26-Oct-11 15:38pm View    
Deleted
I do know how they interact and which iframe I want to load with delay, just not sure which is the best way. This is approximation of the code currently in use:

for (var I=1; I<10; I++) {
oIframe = GetIframeObject(I);
sURL = GetIframeSource(I);
bIsDelayed = GetIsDelayed(I);

if (bIsDelayed) {
// What to do here?
} else {
oIframe.src = sURL
}
}

I am having problem with what to do if bIsDelayed condition is true and I need to delay that particular IFRAME load until after the rest are loaded. How do I delay load of that URL?
Trekstuff 26-Oct-11 11:32am View    
IE surely picks and chooses when to follow standards. I even tried registry hack to increase number of connections, but it seems to work only on the first load. After that I guess all connections are used up.
What about delayed load? Let IE keep it limit, but make slowest iframe load last? What would be the best way to do it? Thanks for the IE info, btw +5