EasyUI Forum
September 14, 2025, 11:11:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: no data on dialog box when user update data  (Read 8278 times)
john17
Newbie
*
Posts: 17


View Profile Email
« 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;
}
« Last Edit: July 27, 2014, 07:21:09 PM by john17 » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!