IE 7 Appears to Hang after JScript runs (code works in IE 5.5

IE 7 Appears to Hang after JScript runs (code works in IE 5.5

Post by RG9uIFNpbH » Thu, 13 Dec 2007 09:23:00


Dave,

Good catch... and I appreciate your input!

I fixed those issues on the sample page. So far it's still *** for me on
IE7.

I think we caught those issue on the real page, but I decided to go back to
the original 4 year old code which has worked in previous versions of IE for
the stripped page. Anyway, now it has an ID and everything is quoted.

Anything else you can think of? My theory is we are simply blind to
something because we are too close. All ideas are welcomed, big or small.
 
 
 

IE 7 Appears to Hang after JScript runs (code works in IE 5.5

Post by Etan Bukie » Thu, 13 Dec 2007 13:32:06

This seems to be a focus related issue. One way to get over this issue in
your sample application is to add the following two lines to the end of your
"hideDdn" functions:

document.body.blur();
document.body.focus();

You might want to focus the text box, but it is important to "blur" the
active control first.

Etan Bukiet

 
 
 

IE 7 Appears to Hang after JScript runs (code works in IE 5.5

Post by RG9uIFNpbH » Thu, 13 Dec 2007 21:41:00

tan,

Your theory is consistent with ours...

I tried your suggestion in two places, at the end of the hideDdn() function
and in the middle of the function, before the control with the focus is set
to hidden. I've commented out both place in the source, because it still
hangs in IE7 for me, and if someone wants to test the code on their machine,
they can copy then uncomment the code in either place.

My theory is the list control had focus, was set to hidden and didn't give
focus back to the visible controls until tab (or other) forced the focus to
change. It doesn't explain why IE7 handles this differently than IE6, but so
far your proposed solution isn't working. (Maybe I did something wrong, you
will see it in the source.)

Tomorrow I'll try to directly blur the object that has the focus and reset
the focus to the text box.

Although that isn't ideal, since the IE6 version allows for the fact that
users might click outside the pick list, and it still "closes" (hides) the
list and focus doesn't go to the text box.

I suspect we are dancing right around a workaround, so please feel free to
set me straight if I'm missing something.

I appreciate the suggestions and all others are welcomed!

"Etan Bukiet" wrote: