#15312 closed defect (fixed)
Error when require dojox.grid.EnhancedGrid.plugins.Filter with CDN
Reported by: | Jovanovic | Owned by: | Evan |
---|---|---|---|
Priority: | high | Milestone: | 1.7.4 |
Component: | DojoX Grid | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hello,
When require dojox.grid.EnhancedGrid?.plugins.Filter with a CDN, error 404 appear :
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js :: <TOP_LEVEL> :: line 15" data: no] Error: Unable to load null status:404
and when html templates are loaded :
405 Method Not Allowed
test code :
<script> dojoConfig= { has: { "dojo-firebug": true }, parseOnLoad: true, isDebug: true, async:true }; </script> <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script> <script> require(["dojox/grid/EnhancedGrid","dojox/grid/enhanced/plugins/Filter"]); </script>
Attachments (3)
Change History (14)
comment:1 Changed 9 years ago by
Milestone: | tbd → 1.8 |
---|---|
Priority: | undecided → high |
comment:4 Changed 9 years ago by
comment:6 Changed 8 years ago by
Milestone: | 1.8 → 2.0 |
---|
1.8 has been tagged; moving all outstanding tickets to next major release milestone.
comment:7 follow-up: 8 Changed 8 years ago by
I thought this might have been fixed, but I tried against the 1.8 release (see attachment) and it still gets errors about loading the templates, as though the build tool didn't inline them for some reason, probably you aren't using dojo/text! to load them?
Either that, or I was running against a src tree where templates weren't inlined.
comment:8 Changed 8 years ago by
Milestone: | 2.0 → 1.8.1 |
---|
Replying to bill:
I thought this might have been fixed, but I tried against the 1.8 release (see attachment) and it still gets errors about loading the templates, as though the build tool didn't inline them for some reason, probably you aren't using dojo/text! to load them?
Either that, or I was running against a src tree where templates weren't inlined.
The issue still exists in CDN, templates needs to be inlined in src build as well, caused by several places missed being updated to dojo.text!
Changed 8 years ago by
Attachment: | 15312.patch added |
---|
Patch to be applied to 1.7.x + 1.8.x after 1.8 GA
comment:11 Changed 8 years ago by
Milestone: | 1.8.1 → 1.7.4 |
---|
Unrelated, but I'd also consider removing the try/catch in Filter's destroy() method