Hi all!
Has tried to fulfil substitution “alert” on a similar method “Modalbox.alert”.
(
http://www.wildbit.com/labs/modalbox/ )
In a method has installed a substitution property “overrideAlert”
Modalbox. Methods = {
overrideAlert: true, …
I insert libraries
<script type = "text/javascript" src = "manager/media/script/modalbox/prototype.js"> </script>
<script type = "text/javascript" src = "manager/media/script/modalbox/scriptaculous.js? load=builder, effects"> </script>
<script type = "text/javascript" src = "manager/media/script/modalbox/modalbox.js"> </script>
<link rel = "stylesheet" href = "manager/media/script/modalbox/modalbox.css" type = "text/css"/>
into html code.
In a simple test html-file, for example line
… <li> <a href = "#" title = "Alert Test" onclick ='window.setTimeout ("alert (\" In the entered login or the password an error! \")", 10); '> TEST </a> </li> …
works correctly. Substitution of “alert” on a similar method “Modalbox.alert” is made. OK!
But the same substitution does not work in real template.
In the bottom of a window of browser IE7 the message is produced
String: 56
Character: 3
Error: the Object does not support this property or a method
(translation from Russian).
This error to me is absolutely not clear. It shows on lines:
<ul>
<li><a href="#" onclick="qe.open('1');return false;" title="Редактировать RTE for the new blog entries">blogContent</a></li><li><a href="#" onclick="qe.open('4');return false;" title="Редактировать Comma delimited tags for the current document">Tags-comma</a></li><li><a href="#" onclick="qe.open('3');return false;" title="Редактировать Space delimited tags for the current document">Tags</a></li><li><a href="#" onclick="qe.open('2');return false;" title="Редактировать Conditional name for the Login menu item">loginName</a></li><li><a href="#" onclick="qe.open('content');return false;" title="Редактировать Содержимое документа">Содержимое документа</a></li><li><a href="#" onclick="qe.open('description');return false;" title="Редактировать описание документа">Описание</a></li><li><a href="#" onclick="qe.open('introtext');return false;" title="Редактировать аннотацию документа">Аннотация (введение)</a></li><li><a href="#" onclick="qe.open('longtitle');return false;" title="Редактировать расширенный заголовок документа (может быть полезно для поисковых систем)">Расширенный заголовок</a></li><li><a href="#" onclick="qe.open('pagetitle');return false;" title="Редактировать название (заголовок) документа. Нежелательно использовать в названии обратный слэш (\)">Заголовок</a></li>
</ul> (lines 55,56,57)
I understand, that a code
<script> window.setTimeout ("alert (' In the entered login or the password an error! ')", 10); </script> <script type = "text/JavaScript">
is generated dynamically. In it difference of a test example from a real site consists.
Who will tell me how to troubleshoot?