Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 60208 invoked from network); 9 Mar 2007 11:54:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 11:54:18 -0000 Received: (qmail 34655 invoked by uid 500); 9 Mar 2007 11:54:22 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 34612 invoked by uid 500); 9 Mar 2007 11:54:22 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 34601 invoked by uid 99); 9 Mar 2007 11:54:22 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcjmu-myfaces-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 03:54:19 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HPdcG-0002Gu-28 for users@myfaces.apache.org; Fri, 09 Mar 2007 12:50:32 +0100 Received: from 195.78.47.10 ([195.78.47.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 12:50:32 +0100 Received: from werner.punz by 195.78.47.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 12:50:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@myfaces.apache.org From: Werner Punz Subject: Re: automatically open modalDialog Date: Fri, 09 Mar 2007 12:49:49 +0100 Lines: 19 Message-ID: References: <9391689.post@talk.nabble.com> Reply-To: werner.punz@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 195.78.47.10 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <9391689.post@talk.nabble.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org simon.s schrieb: > Hello! > > I have a s:moadalDialog, that I want to be opened when the page is loaded. > OnLoad does not function. > alternatively to the timed notifier, you can gain access to the generated javascript var, set a simple javascript which uses a timeout to initialize the dialog after 500 miliseconds or so. you can then display the dialog viar dialogVar.show();.... Onload is inherently problematic, most javascript related browsercrashes and rendering lockups I have seen so far were (and all of them in ie) related to onloads. Alternatively you can use dojos onload function, but I assume internally dojo pushes critical code as well just into timeouts.