Main Page | Report this Page
.NET DotNet Forum Index  »  JScript .NET Forum  »  Behaviors cause modal dialog box to close slowly...
Page 1 of 1    

Behaviors cause modal dialog box to close slowly...

Author Message
Aaron...
Posted: Mon Dec 08, 2008 5:55 pm
Guest
As part of an HTA, I have a modal dialog box that has a large number of
inputs on it. Each input field also has a label; both input fields and labels
have behaviors defined through CSS. Closing the dialog window, either by
submitting it or actually closing it, takes 3-4 seconds. However, if the
behavior files (.htc files) are encoded using the Microsoft Script Encoder,
the delay on closing the window is reduced to nothing.

I have two questions regarding this: first, why are the attached behaviors
slowing down the operation of closing the dialog window, and second, why does
encoding the behavior files remove this delay?
 
comphilip...
Posted: Wed Dec 24, 2008 4:18 am
Guest
I have no ideas about this behavior. Well I guess after encoder encodes the
codes, it make some optimizations.

--
Thanks,
Philip Chan

"Aaron" <Aaron at (no spam) discussions.microsoft.com> 写入消息
news:EEA537B2-5100-4A83-892D-60B997454BC5 at (no spam) microsoft.com...
Quote:
As part of an HTA, I have a modal dialog box that has a large number of
inputs on it. Each input field also has a label; both input fields and
labels
have behaviors defined through CSS. Closing the dialog window, either by
submitting it or actually closing it, takes 3-4 seconds. However, if the
behavior files (.htc files) are encoded using the Microsoft Script
Encoder,
the delay on closing the window is reduced to nothing.

I have two questions regarding this: first, why are the attached behaviors
slowing down the operation of closing the dialog window, and second, why
does
encoding the behavior files remove this delay?
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Fri Nov 27, 2009 7:07 pm