EasyUI Forum

General Category => General Discussion => Topic started by: john17 on July 27, 2014, 07:19:29 PM



Title: no data on dialog box when user update data
Post by: john17 on July 27, 2014, 07:19:29 PM
hi guys,

I'm getting frustrated about my work, on my local computer it's working fine but when I decided to put it in the live server this what happens

Quote
when I click update button a dialog box opens but no value is selected all input fields is empty here is my dialog and js code



Code:
                

function editUser(){
            
            var row = $('#dg').datagrid('getSelected');
            if (row){
                
                //mdid = row.system_md_id;
                
                
                /*$('#dg2').datagrid({
                  url:'get-clinic.html?clinid='+row.system_md_id
                });
                
                $('#dg2').datagrid('reload', {
                  clinid:row.system_md_id
                });*/
                
                $('#dlg').dialog('open').dialog({
                    title: 'Edit Vet',
                    width: 1344,
                    height: 635,
                    closed: false,
                    cache: false,
                    modal: true,
                    resizable: true
                });
                
                $('#fm').form('load',row);
                
                url = 'update-vet.html?id='+row.system_md_id;
}


Title: Re: no data on dialog box when user update data
Post by: stworthy on July 27, 2014, 10:29:44 PM
What is the definition of the form '#fm'? What is the selected row? Please use firebug to see if some errors occur when running your page.