Opened 8 years ago

Closed 8 years ago

#13519 closed defect (invalid)

Firefox not fetching HtmlStore by 'id'

Reported by: adros Owned by:
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.6.1
Keywords: HtmlStore, fetch, DataGrid Cc:
Blocked By: Blocking:

Description (last modified by bill)

When I'm trying to use dojox.grid.DataGrid with dojox.data.HtmlStore in Firefox(4) it ends up with error: "ReferenceError: dataSample is not defined in data-dojo-props='dataId:dataSample'".

My code is:

<span data-dojo-type="dojox.data.HtmlStore" data-dojo-props="dataId:dataSample" data-dojo-id="store1"></span>
<table id="dataSample" data-dojo-type="dojox.grid.DataGrid" data-dojo-props="store:store1">
...

What I have to do, to make this work is setting HtmlStore? props to:

data-dojo-props="dataId:'intervData', fetchOnCreate:true"

I don't think this is the best way, and it should work without this fix as it works in other browsers.

Change History (1)

comment:1 Changed 8 years ago by bill

Component: GeneralDojoX Data
Description: modified (diff)
Resolution: invalid
Status: newclosed

This ticket looks invalid. The code

<span data-dojo-type="dojox.data.HtmlStore" data-dojo-props="dataId:dataSample" data-dojo-id="store1">

expects there to be a global javascript variable called "dataSample" yet you aren't creating one. IIRC, HtmlStore takes the (string) id of a <table> to pull it's data from.

Note: See TracTickets for help on using tickets.