hi i want show to user Prototype window when my page load completely? please show me where can i use Prototype code in the html tag. please help me step by step because i am new in javascript and Prototype. thanks. example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!-- Prototype Window Class Part --> <script type="text/javascript" src="../javascripts/prototype.js"> </script> <script type="text/javascript" src="../javascripts/ effects.js"> </ script> <script type="text/javascript" src="../javascripts/window.js"> </ script> <script type="text/javascript" src="../javascripts/ window_effects.js"> </script> <script type="text/javascript" src="../javascripts/debug.js"> </ script> <link href="../themes/default.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/spread.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/alert.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/alert_lite.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/alphacube.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/debug.css" rel="stylesheet" type="text/ css"> </link><!-- Doc Part--> <script type="text/javascript" src="js/application.js"> </ script> <link href="stylesheets/login.css" rel="stylesheet" type="text/ css"> </link><link href="stylesheets/style.css" rel="stylesheet" type="text/ css"> </link></head> <body onload=""> <--- i think i am write some code here for call Prototype window <script>Application.addTitle(''Open a simple window'', ''open_window1'')</ script> <div style="display:none" id="open_window1_codediv"> <xmp id="open_window1"> var win = new Window({className: "dialog", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}) win.getContent().innerHTML= "test" win.setStatusBar("www.test.com"); win.showCenter(); </xmp> </div> </body> </html> all user say i am must use Event.observe(window, ''load'', function(evt) { //Code here }); but i am not understand. please send one example or edit my example. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
hi i want show to user Prototype window when my page load completely? please show me where can i use Prototype code in the html tag. please help me step by step because i am new in javascript and Prototype. thanks. example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!-- Prototype Window Class Part --> <script type="text/javascript" src="../javascripts/prototype.js"> </script> <script type="text/javascript" src="../javascripts/ effects.js"> </ script> <script type="text/javascript" src="../javascripts/ window.js"> </ script> <script type="text/javascript" src="../javascripts/ window_effects.js"> </script> <script type="text/javascript" src="../javascripts/debug.js"> </ script> <link href="../themes/default.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/spread.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/alert.css" rel="stylesheet" type="text/ css"> </link><link href="../themes/alert_lite.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/alphacube.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/debug.css" rel="stylesheet" type="text/ css"> </link><!-- Doc Part--> <script type="text/javascript" src="js/application.js"> </ script> <link href="stylesheets/login.css" rel="stylesheet" type="text/ css"> </link><link href="stylesheets/style.css" rel="stylesheet" type="text/ css"> </link></head> <body onload=""> <--- i think i am write some code here for call Prototype window <script>Application.addTitle(''Open a simple window'', ''open_window1'')</ script> <div style="display:none" id="open_window1_codediv"> <xmp id="open_window1"> var win = new Window({className: "dialog", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}) win.getContent().innerHTML= "test" win.setStatusBar("www.test.com"); win.showCenter(); </xmp> </div> </body> </html> all user say i am must use Event.observe(window, ''load'', function(evt) { //Code here }); but i am not understand. please send one example or edit my example. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I don''t know what Application.addTitle is or the xmp tag, but put a script block like this anywhere in your page and it should work:<br> <br> <pre wrap=""><script type="text/javascript"> Event.observe(window, ''load'', function() { var win = new Window({className: "dialog", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}) win.getContent().innerHTML= "test" win.setStatusBar("<a class="moz-txt-link-abbreviated" href="http://www.test.com">www.test.com</a>"); win.showCenter(); }); </script> </pre> Script blocks don''t need to be wrapped in hidden divs or anything like that since they are not visible elements anyway.<br> <br> Colin<br> <br> x-men wrote: <blockquote cite="mid:1175554655.196878.9140-SEPL7V/0I3SfAYmsQHFBWGB/v6IoIuQBVpNB7YpNyf8@public.gmane.org" type="cite"> <pre wrap="">hi i want show to user Prototype window when my page load completely? please show me where can i use Prototype code in the html tag. please help me step by step because i am new in javascript and Prototype. thanks. example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>> <html xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <!-- Prototype Window Class Part --> <script type="text/javascript" src="../javascripts/prototype.js"> </script> <script type="text/javascript" src="../javascripts/ effects.js"> </ script> <script type="text/javascript" src="../javascripts/ window.js"> </ script> <script type="text/javascript" src="../javascripts/ window_effects.js"> </script> <script type="text/javascript" src="../javascripts/debug.js"> </ script> <link href="../themes/default.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> <link href="../themes/spread.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> <link href="../themes/alert.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> <link href="../themes/alert_lite.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/alphacube.css" rel="stylesheet" type="text/ css" > </link> <link href="../themes/debug.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> <!-- Doc Part--> <script type="text/javascript" src="js/application.js"> </ script> <link href="stylesheets/login.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> <link href="stylesheets/style.css" rel="stylesheet" type="text/ css" </pre> <blockquote type="cite"> <pre wrap=""> </link> </pre> </blockquote> <pre wrap=""><!----> </head> <body onload=""> <--- i think i am write some code here for call Prototype window <script>Application.addTitle(''Open a simple window'', ''open_window1'')</ script> <div style="display:none" id="open_window1_codediv"> <xmp id="open_window1"> var win = new Window({className: "dialog", width:350, height:400, zIndex: 100, resizable: true, title: "Sample window", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true}) win.getContent().innerHTML= "test" win.setStatusBar("<a class="moz-txt-link-abbreviated" href="http://www.test.com">www.test.com</a>"); win.showCenter(); </xmp> </div> </body> </html> all user say i am must use Event.observe(window, ''load'', function(evt) { //Code here }); but i am not understand. please send one example or edit my example. </pre> </blockquote> <br> --~--~---------~--~----~------------~-------~--~----~<br> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. <br> To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en <br> -~----------~----~----~----~------~----~------~--~---<br> </body> </html> <br>