Dojo and iWidgets by IBM:
so my iWidget code is as follows:
onEdit : function() {
dojo.require(["dijit/Dialog", "dojo/dom"], function(Dialog, dom){
var node = dom.byId("makeADialog");
var myDialog = new Dialog({ title:"From Source Node" }, node);
myDialog.show();
});
},
when i run this - chrome browser console shows:
com.ibm.mm.iwidget.widget.IWidgetWrapperExtendedImpl IWidgetWrapper._handleEventInternal: widget: testWidget, eventName: onedit, HandleEventException: TypeError: Object [object Array] has no method 'split'
whats wrong?