Opened 11 years ago

Closed 11 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 11 years ago by bill

Milestone: tbd1.4

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.

comment:2 Changed 11 years ago by bill

Owner: set to bill

comment:3 Changed 11 years ago by bill

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.