I have an error in Dojo dialog

Hi,

I have an error in my program by doing Dojo Dialog. It is like that.

‘dijit.byID(…)’ is null or not an object.

The program flow is like that.

I code like that in Cutom control.

xp:this.resources

<xp:dojoModule name=“dojo.cookie” />

<xp:dojoModule name=“dijit.Dialog” />

</xp:this.resources>

<xp:button value=“Yes” id=“button1”></xp:button>

<xp:button value=“No” id=“button2”></xp:button>

In the Xpage, there is one button to prompt this dialog.

Save Button, when i click “Save Button”, it will be prompt and ask for Yes or No like that.

In this Xpage, on “Save Button” event, i code like that.

dijit.byId(“ConfirmDialog”).show();

Thanks and Regds,

JC

Subject: Something similar has come up recently on this in ths forum?

Subject: Sorry I am new in Lotus

Hi sorry paul,

Actually i am new in Lotus Domino Designer.

Sometime i don’t know how to code.

I am still learning and doing well.

Subject: Sorry JC, I should have posted this link…

http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllThreadedWeb/329038fa3cdff84d8525759400447353?OpenDocument

Have a look over this and it’s response from Phil Riand, and if that doesn’t resolve things give us a shout at paul_hannan@ie.ibm.com

Subject: Yeah i will try first

Hi Paul,

Yeah, I will try first. :slight_smile:

Thanks.

JC