Hi all,
I have attached a form with an upload item to a layout cell, and I am trying to set the upload events. For some reason the events do not fire.
var formStructure = [
{type:"settings",position:"label-top" },
{type:"fieldset", label: "Photo",name: "passenger_photo_box", inputWidth:300, offsetLeft:"7",offsetTop:"15", list:[
{type:"container", name:"passenger_photo", label:"",inputWidth:110,inputHeight:110},
{type:"upload", name:"passenger_photo_upload", label:"",inputWidth:250,inputHeight:80,mode:"html5",offsetLeft:"7",offsetTop:"10",url: "dhtmlxform_item_upload.php"}
]}]
gdata.passenger_form = gdata.passenger_layout.cells('a').attachForm(formStructure);
gdata.passenger_form.attachEvent("onUploadComplete ",function(count){
alert("in");
});
the form is displayed properly, the file is uploaded properly but none of the events regarding the upload are fired.
Am I doing something wrong here ?
S.