o use my javascript library.
Get JQuery UI - http://jqueryui.com/download/
Sample HTML
-
<!DOCTYPE html PUBLIC "XSLT-compat">
-
<html>
-
<head>
-
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
-
<link rel="stylesheet" type="text/css" href="reset.css">
-
<link href="jquery-ui.min.css" rel="stylesheet">
-
<script src="jquery.js"></script>
-
<script src="jquery-ui.min.js"></script>
-
<script src="rjm_lib.js"></script>
-
<script src="rjm_lib_ui.js"></script>
-
<script src="doc.js"></script>
-
<title>TITLE</title>
-
</head>
-
<body>
-
TODO
-
</body>
-
</html>
Then make doc.js call the main funciton:
-
$(document).ready(function() {
-
rjmlib_ui_init();
-
});
Test by calling a dialog:
-
rjmlib_ui_questionbox("Some question", "title");
Example Question Box
-
rjmlib_ui_questionbox("Some question", "title",
-
"Yes", function() {
-
alert("Yes");
-
},
-
"No", function() {
-
alert("No");
-
});
RJM Article Type
Work Notes