PDA

View Full Version : dialog have bugs



susam119
2 Mar 2007, 3:14 AM
when i use these script.i open dialog first have content. close and then open dialog second content is empty.
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../jquery-plugins.js"></script>
<script type="text/javascript" src="../../ext-jquery-adapter.js"></script>

use these script is no problam.
<script type="text/javascript" src="../../yui-utilities.js"></script>
<script type="text/javascript" src="../../ext-yui-adapter.js"></script>


why???????? :roll:

JeffHowden
2 Mar 2007, 11:56 AM
It's completely impossible to say without either seeing the code involved or, better yet, a link to something online that illustrates what you're talking about.

susam119
2 Mar 2007, 4:24 PM
test this code.dialog plugins is no problam.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="../../yui-utilities.js"></script>
<script type="text/javascript" src="../../ext-yui-adapter.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="hello.js"></script>
<link rel="stylesheet" type="text/css" href="../examples.css" />
<script type="text/javascript" src="../examples.js"></script>

</head>

<body>
<input type="button" id="show-dialog-btn" value="Hello World" />
<!-- The dialog is created from existing markup.
The inline styles just hide it until it created and should be in a stylesheet -->
<div id="hello-dlg" style="visibility:hidden;position:absolute;top:0px;">
<div class="x-dlg-hd">Hello Dialog</div>
<div class="x-dlg-bd">

<div class="x-dlg-tab" title="Hello World 1">

<div class="inner-tab">
Hello...



</div>
</div>

<div class="x-dlg-tab" title="Hello World 2">
<div class="inner-tab">
... World!
</div>
</div>
</div>
</div>
</div>

</body>
</html>


test this code dialog plugins have some problam. first open dialog have content .second open dialog content is empty.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="../Js/jquery.js"></script>
<script type="text/javascript" src="../Js/jquery-plugins.js"></script>
<script type="text/javascript" src="../Js/ext-jquery-adapter.js"></script>
<script type="text/javascript" src="../Js/ext-all.js"></script>
<script type="text/javascript" src="hello.js"></script>
<link rel="stylesheet" type="text/css" href="../examples.css" />
<script type="text/javascript" src="../examples.js"></script>

</head>

<body>
<input type="button" id="show-dialog-btn" value="Hello World" />
<!-- The dialog is created from existing markup.
The inline styles just hide it until it created and should be in a stylesheet -->
<div id="hello-dlg" style="visibility:hidden;position:absolute;top:0px;">
<div class="x-dlg-hd">Hello Dialog</div>
<div class="x-dlg-bd">

<div class="x-dlg-tab" title="Hello World 1">

<div class="inner-tab">
Hello...



</div>
</div>

<div class="x-dlg-tab" title="Hello World 2">
<div class="inner-tab">
... World!
</div>
</div>
</div>
</div>
</div>

</body>
</html>