Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-04 Thread Andreas Andreou
Well, looks like the widget sint available when you're trying to use it... you could delay the execution of your code for a bit... see the setTimeout javascript function for more On Feb 4, 2008 9:51 AM, learner <[EMAIL PROTECTED]> wrote: > i try out code like below and i get "undefined" > > > > >

Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread learner
i try out code like below and i get "undefined" dojo.addOnLoad( function() { alert(dojo.widget.byId('addGroupDialog')); }

Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread learner
this is the error that i get for --> dojo.addOnLoad( function() { dojo.widget.byId('addGroupDialog').show(); } ); //error dojo.widget.byId("addGroupDialog") has no properties (no name)()app (line 477) loaded()app (line 236) callLoaded()app (line 292) modulesLoaded()app (line 285) dj_lo

Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread Andreas Andreou
you still have the old - direct call in your code (last line), so, remove it... On Feb 4, 2008 7:47 AM, learner <[EMAIL PROTECTED]> wrote: > Andreas, >where should i put that? on top of the page ? below is what i did, but > still > fail. > > > > dojo.addOnLoad( >function() { > dojo

Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread learner
Andreas, where should i put that? on top of the page ? below is what i did, but still fail. dojo.addOnLoad( function() { dojo.widget.byId('addGroupDialog').show(); } ); dojo.widget.byId('addGroupDialog').show();

Re: call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread Andreas Andreou
wheni try to call dojo.widget.byId('addGroupDialog').show(); directly inside > , 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" con

call dojo.widget.byId('addGroupDialog').show() directly

2008-02-03 Thread learner
wheni try to call dojo.widget.byId('addGroupDialog').show(); directly inside , 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&