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"
>
>
>
>
>
i try out code like below and i get "undefined"
dojo.addOnLoad( function() {
alert(dojo.widget.byId('addGroupDialog'));
}
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
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
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();
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
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&