S not defined
S not defined
I am really stuck.
My code is working but I get the "s is not defined error"
What is wrong?
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Collapsible Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="jquery/css/ui.all.css" type="text/css" media="screen">
<link rel="stylesheet" href="jquery/css/jquery-ui-1.7.2.custom.css" type="text/css" media="screen">
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.dialog.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/effects.core.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#colleft").load("http://www.google.com").dialog({
autoOpen:false,
modal:true,
open: function() {$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove();
},
buttons: {
"Close": function() { $(this).dialog("close"); }
}
});
});
function showDialog(){
$("#colleft").dialog("open");
return false;
}
</script>
</head>
<body>
<p>
<a href="" onclick="return showDialog()">Show the Dialog</a>
</p>
<div style="display: none;" id="colleft">
</div>
</body>
</html>
[/code]
Thanks