Javascript Common Library

Submitted by code_admin on Fri, 07/20/2018 - 16:15

o use my javascript library.

Get JQuery UI - http://jqueryui.com/download/

Sample HTML

  1. <!DOCTYPE html PUBLIC "XSLT-compat">
  2. <html>
  3. <head>
  4. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" type="text/css" href="reset.css">
  6. <link href="jquery-ui.min.css" rel="stylesheet">
  7. <script src="jquery.js"></script>
  8. <script src="jquery-ui.min.js"></script>
  9. <script src="rjm_lib.js"></script>
  10. <script src="rjm_lib_ui.js"></script>
  11. <script src="doc.js"></script>
  12. <title>TITLE</title>
  13. </head>
  14. <body>
  15. TODO
  16. </body>
  17. </html>

Then make doc.js call the main funciton:

  1. $(document).ready(function() {
  2.     rjmlib_ui_init();
  3. });

Test by calling a dialog:

  1. rjmlib_ui_questionbox("Some question", "title");

Example Question Box

  1.     rjmlib_ui_questionbox("Some question", "title",
  2.     "Yes", function() {
  3.         alert("Yes");
  4.     },
  5.     "No", function() {
  6.         alert("No");
  7.     });
RJM Article Type
Work Notes