Yes, actually I started out downloading a jQuery UI package as well. But then I somehow got to:
http://example.nemikor.com/basic-usa...ery-ui-dialog/
and looked at the source code, which included:
Code:
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>
I'm familiar with the ajax.googleapis so I figured they probably had the latest versions mentioned on the other pages about the dialog function, so I just put those numbers in:
Code:
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
And it worked. So you really don't need the package, Google is hosting it and more (has the css too).
But you might want to style the dialog yourself. It takes a DOM inspector to see the class names involved. Or you can go to:
http://jqueryui.com/docs/dialog/
and click on the Theming tab to see the generated markup with class names as well as some advice on customizing the look of the dialog.
But for instance:
Code:
<style type="text/css">
.ui-dialog-titlebar {
background: gold;
}
</style>
changes the background for the title bar of the dialog.
Bookmarks