Note that there are some explanatory texts on larger screens.

plurals
  1. POdijit.Fieldset is undefined
    text
    copied!<p>I'm trying to use a dijit.Fieldset but it's not working. In my required array I've included "dijit/Fieldset" and in the function definition I've mapped it to Fieldset. Other things I've included such as "dijit/form/Button" and "dojo/on" are working fine. However, when I then try and create a Fieldset with this:</p> <pre><code>var temp = new Fieldset({ title: "Locations", content: "Blah" }); </code></pre> <p>I get the message:</p> <blockquote> <p>Object doesn't support this action.</p> </blockquote> <p>I enter dubug mode and can see the value of Fieldset is simply an int value of 3 (which I really don't understand). If I instead try to access is using dijit.Fieldset I get the same error. Then when I debug and mouse over Fieldset I get the value of undefined. dijit is defined and gives me what you would expect when moused over. So, I don't seem to be loading dijit.Fieldset. Can anyone advise? I'm using 1.9.</p> <p>Thanks</p> <p><strong>Update</strong></p> <p>Thanks both for you help so far. I confess I omited the full code as its a bit long winded and didn't want to put people off answering! Here is the code - another confession, I'm not sure if this is refered to as a class or a module in dojo nomenclature.</p> <pre><code>define([ "dojo/_base/declare", "dojo/_base/lang", "dojo/dom-construct", "dojo/on", "dojo/html", "dijit/registry", "dijit/Fieldset", "dijit/Tooltip", "dijit/TooltipDialog", "dijit/form/DropDownButton", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/extensions/DijitRegistry", "esri/map", "esri/tasks/route", "esri/toolbars/edit", "dijit/Menu", "dijit/MenuItem", "dijit/form/Button", "my/app/RouteSymbols" ], function (declare, lang, domConstruct, on, html, registry, Fieldset, Tooltip) { return declare("my.app.RouteUtils", null, { } </code></pre> <p>I also thought it looked like an error in the definition. The odd thing is that the modules required either site (dijit/registry and dijit/Tooltip) are both loaded correctly and working properly on the page.</p> <p>Regarding version, I'm using IE9.</p> <p>Again, thanks. Simon</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload