Opened 12 years ago

Closed 12 years ago

#2336 closed defect (wontfix)

IE6 bug with TreeLinkExtension.

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

This is related to TreeV3 'specially with TreelinkExtension?. I do not understand why the following code does not work in IE6.

When one clicks on a treeview item link, onclick seems not to be fired. At least alert popup does not appear.

Example code :

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Dojo Tree Widget Test</title> <script type="text/javascript">

var djConfig = {isDebug: true, debugAtAllCosts: true };

</script> <script type="text/javascript" src="../../../dojo.js"></script> <script type="text/javascript">

dojo.require("dojo.widget.*"); dojo.require("dojo.widget.TreeV3"); dojo.require("dojo.widget.TreeNodeV3"); dojo.require("dojo.widget.TreeLinkExtension?"); dojo.require("dojo.widget.TreeBasicControllerV3"); dojo.hostenv.writeIncludes();

</script> <script type="text/javascript"> var dlg, dlgProg; function init() {

dojo.debug( dojo.widget.byId("mytree").domNode.innerHTML);

} dojo.addOnLoad(init); </script>

<style type="text/css"> form {

margin-bottom : 0;

} </style>

</head>

<body>

<div dojoType="TreeBasicControllerV3" widgetId="controller"></div>

<div dojoType="TreeLinkExtension?" widgetId="link" params="href:#"></div>

<div dojoType="TreeV3" listeners="link;controller" widgetId="mytree">

<div dojoType="TreeNodeV3" title="Item 1" object="onclick:alert('done 1 !');" widgetId="Item 1" expandLevel="1">

<div dojoType="TreeNodeV3" title="Item 1.1" object="onclick:alert('done 1.1 !');" widgetId="Item 1.1"></div>

<div dojoType="TreeNodeV3" title="Item 1.2" object="onclick:alert('done 1.2 !');" widgetId="Item 1.2"></div>

</div>

</div>

<br><A class=TreeLabel? onclick="alert('done link 1 !')" href="#">Stand Alone link 1</A><br><br>

</body>

</html>

Change History (2)

comment:1 Changed 12 years ago by guest

Arnaud Balandras / a dot balandras at fiducial dot fr

comment:2 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

TreeLinkExtension? is no longer part of the Tree widget in Dijit; need to write your own handler for handling clicks (or "execute" as it's called in the tree code).

Note: See TracTickets for help on using tickets.