Opened 12 years ago
Closed 12 years ago
#9135 closed defect (fixed)
Errors in FilteringSelect#id8 Example
Reported by: | burnsmicro | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Documentation | Version: | 1.3.0 |
Keywords: | FilteringSelect, FilteringSelect example error | Cc: | |
Blocked By: | Blocking: |
Description
There are errors in the http://docs.dojocampus.org/dijit/form/FilteringSelect#id8 example when using aolcdn x-domain files;
FB error: dojo.data is undefined on line:
var dojoStore=new dojo.data.ItemFileReadStore({data:richData});
On speculation that richData had not been fully loaded, I added a dojo.addOnLoad:
dojo.addOnLoad(function(){ var dojoStore=new dojo.data.ItemFileReadStore({data:richData});
I then got a "dojoStore is not defined" error, possibly because "dojoStore" is not ready.
Change History (3)
comment:1 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|
comment:2 Changed 12 years ago by
Owner: | set to bill |
---|
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Ah you are right... it should be in a dojo.addOnLoad() but then the complication is that the addOnLoad() is executing after the FilteringSelect initializes. Probably better to do everything programatically rather than mixing and matching programmatic and declarative. I'll fix.