Guest User

Untitled

a guest
Jul 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <html>
  2. <head>
  3. <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.18.custom.css" rel="stylesheet" />
  4.  
  5.  
  6. </head>
  7. <body>
  8.  
  9.  
  10. <button id="clickit">Click it </button>
  11.  
  12.  
  13. <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
  14. <script type="text/javascript" src="js/jquery-ui-1.8.18.custom.min.js"></script>
  15. <script>
  16. var $myParentTarget = $('body', window.parent.document);
  17. $myParentTarget.append("<div id='myDialog' style='display:none;' >soomesweettexts</div>");
  18. var $myParentPop = $('#myDialog', window.parent.document);
  19.  
  20. $myParentPop.dialog({
  21.  
  22. autoOpen: false,
  23.  
  24. width: 700,
  25.  
  26. buttons: {
  27.  
  28. "Ok": function() {
  29.  
  30. $(this).dialog("close");
  31.  
  32. },
  33.  
  34. "Cancel": function() {
  35.  
  36. $(this).dialog("close");
  37.  
  38. }
  39.  
  40. }
  41.  
  42. });
  43.  
  44. $("#clickit").click(function(){
  45.  
  46. $myParentPop.dialog('open');
  47.  
  48. return false;
  49.  
  50.  
  51.  
  52. });
  53.  
  54. </script>
  55. </body>
  56. </html>
Add Comment
Please, Sign In to add comment