Opened 14 years ago
Closed 14 years ago
#2435 closed defect (wontfix)
Using dojo.widget.byId().show() twice, fires an error...
Reported by: | guest | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The following Code will work only once a time. After closing the floatingpane it will fire the error, you can see at the bottom.
<div id="window" widgetId="window" dojoType="FloatingPane" title="Add entry" style="width:300px; height:200px; left:300px; top:100px; display:none;" hasShadow="true" resizable="true" displayCloseAction="true" displayMaximizeAction="true"> Here comes the content </div> <div id="button" style="float:right;"> <button dojoType="Button" id="entrybutton" onclick="dojo.widget.byId(window).show()">New entry</button> </div>
I will get the following error: Fehler: [Exception... "'Error: dojo.widget.byId("options") has no properties' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I think Nicola is right, and also, we aren't supporting FloatingPane? in Dijit; use Dialog instead.
Note: See
TracTickets for help on using
tickets.
Invalid?
If you close the FloatingPane?, you destroy the widget.
Use displayMinimizeAction="true" instead of displayCloseAction="true".