Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10085 closed defect (fixed)

widget creation fails with iframes

Reported by: Douglas Hays Owned by: bill
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Douglas Hays)

Run the attached templatecache.html.
1a) Click the button to create a TextBox? in the main window, this works
2a) Click the button to create a TextBox? in the iframe, this works too
Now reload the main window and do things in reversed order:
1b) Click the button to create a TextBox? in the iframe, this fails on all browsers but should work. You should not have to create a widget in the main window before an iframe widget can be created.
2b) Click the button to create a TextBox? in the main window, this fails on IE6.

Attachments (1)

templatecache.html (900 bytes) - added by Douglas Hays 10 years ago.
test file

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Douglas Hays

Attachment: templatecache.html added

test file

comment:1 Changed 10 years ago by Douglas Hays

Description: modified (diff)

comment:2 Changed 10 years ago by bill

Milestone: tbd1.4
Status: newassigned

We don't officially support widget creation in iframes, but anyway I found a way to avoid this issue that arguably makes the code better, so I'll check it in.

comment:3 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [20579]) Since we already have a reference to a widget instance, no reason to call getObject(). Fixes #10085, refs #7244 ([14904]) !strict.

comment:4 Changed 10 years ago by bill

(In [20580]) Fix comments, refs #10085, #7244 ([14904]) !strict.

Note: See TracTickets for help on using tickets.