EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Opan Mustopah on November 23, 2014, 10:05:04 PM



Title: load checkbox in form easyui not working on chrome
Post by: Opan Mustopah on November 23, 2014, 10:05:04 PM
hello again,

i have a problem with load input checkbox type, here is my code :
Code:
function show_form(target, dg, frm_dlg, frm, rep_obj){
if ( state.op == 'edit'){
$.messager.alert('Warning', 'There are current record being edited. Finish editing process before open a new form.');
return false;
}
state.op = "show_form";
var index = getRowIndex(target);
dg.datagrid('selectRow', index);
var row = getRow(dg);
if (row){
for(var i in row){
obj[rep_obj+"["+i+"]"] = row[i];
}
frm_dlg.dialog('open').dialog('setTitle', "Show Form");
frm.form('load', obj);
console.log(obj);
console.log(frm);

}
}

this code work well in firefox, but in chrome this code didn't work at all, actually what's the matter with this? do am i wrong?
thanks in advance


Title: Re: load checkbox in form easyui not working on chrome
Post by: aswzen on November 24, 2014, 01:13:10 AM
coba taruh di jsfiddle mas..klu ngelihat ginian susah tracking nya


Title: Re: load checkbox in form easyui not working on chrome
Post by: Opan Mustopah on November 24, 2014, 08:01:31 AM
hmm gimana ya mas, kalau ditaruh di fiddle kayaknya terlalu banyak, script yang saya tunjukkan itu saya contek dari web demo easyui mas. untuk code nya sepertinya ga bermasalah. saya cuma bingung, kenapa pakai script diatas untuk meload value checkbox di form, di firefox oke, tetapi di chrome ga work.

mohon penjelasannya mas

terima kasih banyak