it's because the addGroupDialog widget isn't available (initialized) when you're calling the first... try
<script> dojo.addOnLoad( function() { dojo.widget.byId('addGroupDialog').show(); } ); </script> On Feb 3, 2008 6:14 PM, learner <[EMAIL PROTECTED]> wrote: > wheni try to call dojo.widget.byId('addGroupDialog').show(); directly inside > <script>, i cannot call the dialog and display it. but the latter, <input ... > onclick... has no problem displaying the dialog. may i know what i miss out? > > > > <span jwcid="@If" condition="ognl:id"> > > <script> > dojo.widget.byId('addGroupDialog').show(); //cannot call > directly??? > > </script> > > <input type="button" class="formbutton" > onclick="dojo.widget.byId('addGroupDialog').show()" jwcid="[EMAIL PROTECTED]" > label="sfsdf"/> // this no problem > > > </span> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]