Bug Data
ID: |
#0136 |
Status: |
New |
Severity: |
Major |
Reporter: |
Raise Solutions |
Submitted: |
26-08-09 13:11 |
|
Product Data
Product: |
|
Ample SDK |
Component: |
|
XUL 1.0 |
Version: |
|
0.8.x |
OS: |
|
Any |
Browser: |
|
Any |
|
|
Description
Can not create xul:cell and add it to xul:tree |
|
If we try to create a xul:treecell and set attribute "label" . the program crashes with following error:
Error: this.$getContainer("gateway") is null File:
http://127.0.0.1:8002/managers/lib/ample/languages/xul/xul.js Line:
6561 Column: 0
code snippet:
<script type="text/javascript">
function fun()
{
var sXulNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
var ti = ample.getElementById('add-item'),
tc = ample.createElementNS(sXulNS, "xul:treerow"),
oItem = ample.createElementNS(sXulNS, "xul:treecell");
tc.appendChild(oItem);
oItem.setAttribute("label", "New item");
ti.appendChild(tc);
}
</script>
|
|
|
Messages written for this bug
Reporter: |
Raise Solutions |
Submitted: |
28-08-09 13:00 |
Message: |
Problem lies with CreateElementNS itself. |
|
Add a message
|
BugTracker
© 2009 Clientside OY. All Rights Reserved.