As Rapahel integrate with modal window ??
Hi everyone
I need Rapahel integrate functions within a modal window.
Use the following code but Rapahel is not within the modal window.
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>dialog demo</title>
- <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
- <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
- <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
- <script type="text/javascript" src="../js/vendor/raphael.js"></script>
- </head>
- <body>
-
- <button id="opener">open the dialog</button>
- <div id="dialog" title="Dialog Title">I'm a dialog</div>
-
- <script>
- $( "#dialog" ).dialog({ autoOpen: false });
- $( "#opener" ).click(function() {
- $( "#dialog" ).dialog( "open" );
- paper = Raphael(0, 0, 200, 100);
- var backgraund = paper.rect(0,0,199,99).attr({fill: "rgb(187,198,191)"});
-
-
- });
- </script>
-
- </body>
- </html>
Any help or suggestion is welcome