Opened 12 years ago

Closed 12 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 12 years ago by nicola.rizzo+dojo@…

Invalid?
If you close the FloatingPane?, you destroy the widget.
Use displayMinimizeAction="true" instead of displayCloseAction="true".

Nicola

comment:2 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

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.