Hello All, I am using Prototype component for client side validations. I am forming a table of data in javascript with all error messages and displaying in prototype window (mac_os_x style window).
Now my main problem is when ever I get any error, form should load this window but on some of the machines, it is taking hell lot of time and finally browser getting freezed up. Can any one help me in getting the solution for this problem? Regards, Srini -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 9:30 PM To: [email protected] Subject: Javawin Digest, Vol 13, Issue 3 Send Javawin mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Javawin digest..." Today's Topics: 1. Close all Windows (Patrick Klein) 2. Re: Close all Windows (Abel Braaksma) 3. Re: Close all Windows (Patrick Klein) 4. Re: Close all Windows (Abel Braaksma) 5. Re: Close all Windows (Alexander Deruwe) ---------------------------------------------------------------------- Message: 1 Date: Tue, 03 Apr 2007 15:08:02 +0200 From: Patrick Klein <[EMAIL PROTECTED]> Subject: [Javawin] Close all Windows To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Hi Folks, I?m new here. I`m Patrick from germany. Hi ;-) Now, I?ve got my first question: This is my source: <html> <head> <link href="./gui/style/blue/default.css" rel="stylesheet" type="text/css"/> <link href="./gui/style/blue/alphacube.css" rel="stylesheet" type="text/css"/> <link href="./gui/style/blue/spread.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="./includes/js/prototype.js"> </script> <script type="text/javascript" src="./includes/js/window.js"> </script> <script type="text/javascript" src="./includes/js/effects.js"> </script> <script type="text/javascript" src="./includes/js/window_effects.js"> </script> <script type="text/javascript" src="./includes/js/debug.js"> </script> <script type="text/javascript"> function win2() { var win = new Window({className: "spread", title: "Sample", width:200, height:150}); win.getContent().innerHTML = "<h1>Constraint inside page !!</h1>constraint: {top: 30, bottom:10}"; win.setDestroyOnClose(); win.showCenter(); win.setConstraint(true, {left:10, right:10, top: 10, bottom:10}) win.toFront(); } function win3() { var win = new Window({className: "alphacube", title: "Sample", width:250, height:150, wiredDrag: true}); win.getContent().innerHTML = "<h1>No Constraint</h1>Wired mode"; win.setDestroyOnClose(); win.setLocation(10, 500); win.show(); win.toFront(); } </script> </head> <body> <script> win2(); win3(); </script> </body></html> Now, the question. Is it possible, to close all the open windows with on click? Thank you Patrick ------------------------------ Message: 2 Date: Tue, 03 Apr 2007 15:19:36 +0200 From: Abel Braaksma <[EMAIL PROTECTED]> Subject: Re: [Javawin] Close all Windows To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Patrick Klein wrote: > Hi Folks, > > I?m new here. > Welcome ;) > > Now, the question. Is it possible, to close all the open windows with on > click? > On the documentation page you can see the function closeAll(), which does what you want: http://prototype-window.xilinus.com/documentation.html#closeAll -- Abel ------------------------------ Message: 3 Date: Tue, 03 Apr 2007 15:49:21 +0200 From: Patrick Klein <[EMAIL PROTECTED]> Subject: Re: [Javawin] Close all Windows To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Hi Abel, thank you. BUT! I know this function. Sorry. I mean, that I can close all windows, not only closeable. Sorry for this mistake. Bye Patrick Abel Braaksma schrieb: > Patrick Klein wrote: > >> Hi Folks, >> >> I?m new here. >> >> > > Welcome ;) > > >> Now, the question. Is it possible, to close all the open windows with on >> click? >> >> > > On the documentation page you can see the function closeAll(), which > does what you want: > http://prototype-window.xilinus.com/documentation.html#closeAll > > -- Abel > > _______________________________________________ > Javawin mailing list > [email protected] > http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.xilinus.com/pipermail/javawin_xilinus.com/attachments/20070403/3 ee26bfb/attachment-0001.html ------------------------------ Message: 4 Date: Tue, 03 Apr 2007 15:57:21 +0200 From: Abel Braaksma <[EMAIL PROTECTED]> Subject: Re: [Javawin] Close all Windows To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Patrick Klein wrote: > > I know this function. Sorry. > I mean, that I can close all windows, not only closeable. > Sorry for this mistake. > Well, then you either make them closeable, or if that is not an option, destroy them. You'll have to loop through them yourself though. Note that in your example, all windows are closeable. -- Abel ------------------------------ Message: 5 Date: Tue, 3 Apr 2007 16:10:24 +0200 From: Alexander Deruwe <[EMAIL PROTECTED]> Subject: Re: [Javawin] Close all Windows To: [email protected] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 03 Apr 2007, at 15:57, Abel Braaksma wrote: > Patrick Klein wrote: >> >> I know this function. Sorry. >> I mean, that I can close all windows, not only closeable. >> Sorry for this mistake. >> > > Well, then you either make them closeable, or if that is not an > option, > destroy them. You'll have to loop through them yourself though. > > Note that in your example, all windows are closeable. Hey there, I, too, am new here. :) Looping through open windows, or getting at a previously opened window, how can one do that exactly? Having a similar problem, in the sense that I open a new window as such: var destinationEditWindow = new Window({url: 'script.php', ...); destinationEditWindow.showCenter(true); Then from within the form in 'script.php' I want to add a button to close the current window. Is this possible? Thanks! Alexander ------------------------------ _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com End of Javawin Digest, Vol 13, Issue 3 ************************************** _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
