Opened 13 years ago

Closed 13 years ago

#9421 closed defect (invalid)

this._construct is not a function at line 2702 of

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


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;



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 (line 2702)

Change History (1)

comment:1 Changed 13 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.