jQueryUI1.6- Hellllp!

Bes

Bes

Soldato
Joined
18 Oct 2002
Posts
7,318
Location
Melbourne
Hi

Why doesn't the following work? It is driving me nuts and the JQueryUI documentation is terrible

Thanks

<html>
<head>
<script type="text/javascript" src="javascript/jquery/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="javascript/jquery/jquery-ui-personalized-1.6b.min.js"></script>

<script language="javascript" type="text/javascript">
$("#dialog").dialog({
modal: true,
overlay: {
opacity: 0.5,
background: "black"
}
});
</script>
</head>
<body>
<div id="dialog" title="thr">jQuery UI Dialog</div>
</body>
</html>
 
Try putting the call in a document ready event handler:

Code:
$(document).ready(function()
{
	$("#dialog").dialog(
	{
		modal: true,
		overlay:
		{
			opacity: 0.5,
			background: "black"
		}
	});
});

Not sure if this will work but it's worth a shot.
 
Ah yes that was the problem- thanks.

As I said the documentation for JQueryUI is not good at all..
 
Back
Top Bottom