Opened 10 years ago
Closed 9 years ago
#12743 closed defect (worksforme)
The problem about dynamically inject the widget
Reported by: | tbbt | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Parser | Version: | 1.6.0 |
Keywords: | parser | Cc: | |
Blocked By: | Blocking: |
Description
When I dynamically inject the widget into the page. The console will print error like below:
====================================== [object Error]
Error parsing in _ContentSetter#Setter_dijit_TitlePane_0_pane_0[object Error] Error undefined running custom onLoad code: This deferred has already been resolved
==========================================
I test it with IE8, Chrome(10.0.648.205) , FireFox? 3.6.16 with dojo1.6, this bug only happens in the IE8.
please refer to the attached source code
Attachments (2)
Change History (5)
Changed 10 years ago by
comment:1 Changed 10 years ago by
Could somebody tells me what's the milestone of the fix or is there a workaround for this bug
comment:2 Changed 10 years ago by
I found a workaround. just declare the report div as "dojox.layout.ContentPane?". Once xhrget returns, set the returned html to the content of contentPane. like the following:
dijit.byId('report').set('content', response.htmloutput );
It works in three browsers
Changed 9 years ago by
Attachment: | test3.html added |
---|
change test to plain html, remove "var" for declaring global variable
comment:3 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
OK, glad you found a workaround, I fixed a "var" in your test case that shouldn't be there and it works for me on IE8 against 1.6, and trunk.
source code for dynamically inject the widget