вторник, 16 июня 2009 г.

Обработка Javascript-сценариев в IE

Давеча столкнулся с проблемой: при отображении страницы IE выдавал сообщение следующего содержания

Остановить выполнение этого сценария?

Сценарий на этой веб-странице замедляет работу Internet Explorer.
Если не остановить сценарий, компьютер может перестать
реагировать на действия пользователя.

и предлагал ответить да или нет.
Порыскав наткнулся на обсуждение похожей проблемы
http://en.forums.wordpress.com/topic/a-script-is-causing-internet-explorer-to-run-slowly

А вот предлагаемое одним из участников временное решение:

... this solution might calm you down for a while...
Its a little trick to remove this error...
-----------------------------------------

1. Using a Registry Editor such as Regedt32.exe, open this key:
HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Styles

Note If the Styles key is not present, create a new key that is called Styles.
2. Create a new DWORD value called "MaxScriptStatements" under this key and set the value to the desired number of script statements.
By default the key doesn't exist. If the key has not been added, Internet Explorer 4 defaults to 5,000,000 statements executed as the trigger for the time-out dialog box.

Because the Internet Explorer 4.0, 5.0, 6, and 7 time-out is based on the number of script statements executed, the time-out dialog box will not display during ActiveX control or database-access delays. Endless loops in script will still be detected.


Вот такие дела...

Комментариев нет: