Opened 10 years ago

Closed 10 years ago

#9421 closed defect (invalid)

this._construct is not a function at line 2702 of http://o.aolcdn.com/dojo/1.3.0/dojo/dojo.xd.js.uncompressed.js

Reported by: Aaron P Lehmann Owned by: Eugene Lazutkin
Priority: high Milestone: tbd
Component: DnD Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description

I'm using Firefox 3.0.7 and dojo 1.3.0.

I create a dojo.dnd.Source declaratively:

<div dojotype="dojo.dnd.Source"

id="default_list" name="default_list" class="container" jsid="default_list" style="width: 25em;">

<script type="dojo/method" event="creator" args="data,hint">

var node = dojo.create('div'); var bc = new dijit.layout.BorderContainer?(

{style:'width: 20em; height: 2em; background: white;'}, node);

var cp = dijit.layout.ContentPane?({content: data, region:'center'}) bc.addChild(cp.domNode); return node;

</script>

</div>

Later I try to add a value to the list which I type into a dijit.form.TextBox? named "section_id", using the following function:

function add_button_pressed() {

var field = dijit.byId('section_id'); var value = [field.attr('displayedValue')]; default_list.insertNodes(false, value, false, false); field.attr('displayedValue', );

}

I get the following error:

this._construct is not a function http://o.aolcdn.com/dojo/1.3.0/dojo/dojo.xd.js.uncompressed.js (line 2702)

Change History (1)

comment:1 Changed 10 years ago by nic

Resolution: invalid
Status: newclosed

Missing the "new" keyword before dijit.layout.ContentPane?({content: data, region:'center'})

Note: See TracTickets for help on using tickets.