Welcome to the IBM Collaboration Solutions Community IQJam.
UsernamePassword
Reset Password | Register
   
Home | Leader Board | Tags | Help
What can be causing Reference error: 'dijit' not found? 
I've been trying to get a call to a dialog working based on various code samples found here and in various blogs as well as OpenNTF and I cannot get past this error getting thrown when I activate a line of code such as: dijit.byId('Dialog3').show();
 
I've got the <xp:dojoModule name="dijit.Dialog"></xp:dojoModule> line in the <xp:this.resources> spot, I have the dojoParseOnLoad="true" and  dojoTheme="true" in the XPages All Properties as well.

Anyone have any ideas?  I've had to go with some fairly low-tech solutions for "pickers" rather than the nice dialog calls that I want to make.
 
Thanks in advance!
Domino Development / XPages
Tagged
Phil Randolph - about 1 year ago |  |  | Viewed 272 times

There are 2 answers

0votes
Do you have an example you can point to?  Do you have firebug installed so you can look for client side errors?  My guess is that something is happening that causes an error preventing dijit from loading. 
 
There are a couple of dijit.Dialog examples @ http://www.xpagecontrols.com/ that may help...


Jeremy Hodge - about 1 year ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community


0votes
When I had this problem, it wasn't dojo nor XPages, it was my Kaspersky anti-virus that was blocking Popup.js.  When I disabled it, or added a rule to trust */dijit/_base/popup.js then it started working.
 
Not sure this is your problem, but it's worth trying it out by disabling your anti-virus and popup blockers.


John Smart - about 1 year ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community