Opened 13 years ago

Closed 12 years ago

#1302 closed defect (fixed)

ContentPane setUrl() sets content to '[object Object]' when target file is empty

Reported by: Stickman Owned by: mumme
Priority: high Milestone: 0.9
Component: Dijit Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

The following is based on SVN checkout today -- 17 Aug 06.

It appears that if you use setUrl to load an external file into a ContentPane?, and the file is empty, it sets the content to '[object Object]'.

The problem appears to be line 439 of ContentPane?.js (in the setContent() method):

if(!data.xml){

...which is fired if the xml is empty. I think it should be:

if( typeof data.xml == 'undefined' ){

...which appears to fix the problem.

Change History (4)

comment:1 Changed 13 years ago by dylan

Milestone: 0.5

comment:2 Changed 12 years ago by bill

Owner: changed from bill to mumme

comment:3 Changed 12 years ago by bill

Component: WidgetsDijit

comment:4 Changed 12 years ago by mumme

Resolution: fixed
Status: newclosed

Hum. I think this was addressed ages ago, pre 0.4 And it seems to work on todays dijit.layout.ContentPane?

closing..

Note: See TracTickets for help on using tickets.