Opened 11 years ago

Closed 11 years ago

#8586 closed defect (duplicate)

html can be loaded directly, but not by dialog with href

Reported by: helloworld Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.2.2
Keywords: dialog href Cc:
Blocked By: Blocking:

Description

A test case here:

dlg.html can be loaded directly without any problem.

but if you load it in a dialog by clicking the add button in home.html, then error msg is:


Error parsing in _ContentSetter#Setter_DIV_0 Error: Could not load class 'dijit.layout.AccordionContainer?'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?


then if you include: dojo.require("dijit.layout.AccordionContainer?"); in home.html instead of dlg.html,

then no error msg for this dijit, but the latter dijit: SimpleTextarea? coming. :-(

dojo ver is 1.2.2, also test for trunk dojo-2009-02-04.tar.gzip

browsers are FF3 & IE6.

Attachments (2)

home.html (1.0 KB) - added by helloworld 11 years ago.
dlg.html (1.2 KB) - added by helloworld 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by helloworld

Attachment: home.html added

Changed 11 years ago by helloworld

Attachment: dlg.html added

comment:1 Changed 11 years ago by bill

Resolution: duplicate
Status: newclosed

That's correct, you need to specify all the dojo.require() calls on the main page. This is working according to spec.

What you are talking about is having a Dialog widget that extends dojox.layout.ContentPane instead of dijit.layout.ContentPane, which is an enhancement covered in #4657.

Note: See TracTickets for help on using tickets.