I use JQuery UI 1.8.10 and jquery latest.
My code is:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.js"></script>
<script type="text/javascript" src="/cms/ww.admin/login/login.js"></script>
</head>
<body>
<div id="header"></div>
<?php
if(isset($_REQUEST['login_msg']))
{
require SCRIPTBASE.'cms/ww.incs/login-codes.php';
$login_msg = $_REQUEST['login_msg'];
if(isset($login_msg_codes[$login_msg]))
{
echo '<script>$(function(){$("<strong>'.htmlspecialchars($login_msg_codes[$login_msg]).'</strong>").dialog({modal:true});});</script>';
}
?>
why does this give a cannot read property '3' of undefined error?
the file that gives the error is jquery-ui.js on line 186
okay now i changed it to:
</head>
<body>
<div id="header"></div>
<div id="login-msg"></div>
<?php
if(isset($_REQUEST['login_msg'])){
require SCRIPTBASE.'cms/ww.incs/login-codes.php';
$login_msg=$_REQUEST['login_msg'];
if(isset($login_msg_codes[$login_msg])){
echo '<script>$(function(){
$("#login-msg").html("<strong>'.htmlspecialchars($login_msg_codes[$login_msg]).'</strong>").dialog({modal:true});});</script>';
}
}
?>
But still the same error