EasyUI Forum
May 03, 2024, 11:16:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2] 3 4 ... 6
16  General Category / EasyUI for jQuery / Re: Combobox not select value while reading text from barcode on: March 06, 2020, 07:27:29 AM
Could you paste your code?
17  General Category / EasyUI for jQuery / Re: Is possible to load form with method 'post' like a load panel on: March 05, 2020, 06:36:32 PM
Wonderful!!  Grin
18  General Category / EasyUI for jQuery / Is possible to load form with method 'post' like a load panel on: March 01, 2020, 05:36:33 AM
eg.

Code:
$('#fm').form({method: 'post', onBeforeLoad: function(param){ param.itemId = itemId}});
$('#fm').form('load', 'getItem.ashx');

Thank you for advice.

19  General Category / EasyUI for jQuery / Re: Form load from URL, Is possible to load with queryParams? on: February 29, 2020, 02:18:07 AM
Thank you, work great.  Cheesy
20  General Category / EasyUI for jQuery / Form load from URL, Is possible to load with queryParams? on: February 23, 2020, 12:11:03 AM
Dear Sir,

Code:
$('#ff').form('load','get_data.aspx?item=12345'); // load from URL with queryString


Is possible to load from URL and send parameters via queryParams.
Could your please show the example.

Thank you.
21  General Category / EasyUI for jQuery / Re: Changing tab icon after AJAX page load on: February 14, 2020, 08:47:04 PM
Got It! Thank you.

Code:
onLoad:function(){$('#TabpanelBib').find('li:eq(1)').find('span:eq(1)').removeClass('icon-loading').addClass('icon-attributes');}
22  General Category / EasyUI for jQuery / Changing tab icon after AJAX page load on: February 14, 2020, 08:06:50 PM
Hello,

From this topic
https://www.jeasyui.com/forum/index.php?topic=8206


Which a panel I called from AJAX. Sometime wait to long.
So, I tried to changed icon to icon-loading and add event onLoad
for change to real icon that I want to display.

But the icon not change.  Huh

Code:
<div id="TabpanelBib" class="easyui-tabs" data-options="fit:true,plain:true,tabPosition:'right',headerWidth:40,tabHeight:40,border:false">
                        <div iconCls="icon-bricks" data-options="tip:'Items'">
                            <div id="TabBibItems" class="easyui-panel" style="width:100%;height:100%;border:none;overflow:hidden;border-left:solid 1px #d3d3d3;padding: 5px 5px 5px 6px;"></div>
                        </div>
                        <div id="tbBibCard" iconCls="icon-loading" data-options="tip:'Bibliographic Card'" >
                            <div id="TabBibCard" class="easyui-panel" data-options="onLoad:function(){$('#tbBibCard').attr('iconCls', 'icon-attributes');}" style="width:100%;height:100%;border:none;border-left:solid 1px #d3d3d3;padding: 5px 5px 5px 6px;"></div>
                        </div>
                        <div iconCls="icon-form" data-options="tip:'MARC Form'">
                            <div id="TabBibForm" class="easyui-panel" style="width:100%;height:100%;border:none;overflow:hidden;border-left:solid 1px #d3d3d3;padding: 5px 5px 2px 6px;"></div>
                        </div>
                        <div iconCls="icon-cog1" data-options="tip:'Record Config'">
                            <div id="TabBibConfig" class="easyui-panel" style="width:100%;height:100%;border:none;overflow:hidden;border-left:solid 1px #d3d3d3;padding: 5px 5px 5px 6px;"></div>
                        </div>
                    </div>

Could you please advice. Thank you very much.
23  General Category / EasyUI for jQuery / Re: How to change tooltip background color on: February 01, 2020, 07:14:25 PM
OK. I got it.  Grin

Just clear browser cache.
24  General Category / EasyUI for jQuery / How to change tooltip background color on: February 01, 2020, 06:59:24 PM
I tried to change in file easyui.css & tooltip.css But it does not work.

Code:
.tooltip {
  background-color: #ffffcc;
  border-color: #ffffcc;
  color: #000000;
}
25  General Category / EasyUI for jQuery / Re: Loading Message for Dialog/Panel on: January 29, 2020, 05:54:56 PM
I tried code above not show mask.

Code from topic show mask correctly.

https://www.jeasyui.com/forum/index.php?topic=4692.0

Thank you.

Code:
$.extend($.fn.panel.methods, {
showMask: function(jq, msg){
return jq.each(function(){
var pal = $(this).panel('panel');
if (pal.css('position').toLowerCase() != 'absolute'){
pal.css('position','relative');
}
var borderSize = parseInt(pal.css('padding')||0)+1;
var m = pal.children('div.panel-mask');
if (!m.length){
m = $('<div class="panel-mask"></div>').appendTo(pal);
}
m.css({
position:'absolute',
background:'red',
opacity:0.6,
filter:'alpha(opacity=60)',
left:borderSize,
top:(borderSize+pal.children('.panel-header')._outerHeight()),
right:borderSize,
bottom:borderSize
});
m.children('div.panel-mask-msg').remove();
var mm = $('<div class="panel-mask-msg"></div>').appendTo(m);
mm.html(msg).css({position:'absolute'}).css({
position:'absolute',
top: '50%',
left: '50%',
marginTop: -mm._outerHeight()/2,
marginLeft: -mm._outerWidth()/2
})
});
},
hideMask: function(jq){
return jq.each(function(){
$(this).panel('panel').children('div.panel-mask').remove();
})
}
});
26  General Category / EasyUI for jQuery / Re: How to change Easyui elements ID, Name on: January 28, 2020, 06:45:35 PM
Thank you, Sir.

I check from console and see some attribute was generate by Easyui eg. textboxname, comboname
So I was change attribute value to new_id too. It does work.

Code:
// for textboox
$('#old_id').attr('id', 'new_id').attr('name', 'new_id').attr('textboxname', 'new_id');
// and change hidden input to
$('.textbox-value[name="old_id"]').attr("name", new_id);

27  General Category / EasyUI for jQuery / How to change Easyui elements ID, Name on: January 26, 2020, 05:58:01 AM
I tried code

Code:
$('#old_id').attr("id", 'new_id').attr("name", 'new_name');

but it does not work.

Some hidden input that  generated by Easyui don't change to new id, name.

Could you please advice.

Thank you.

28  General Category / EasyUI for jQuery / Re: How to add tooltip over icon on: January 15, 2020, 06:39:05 AM
Perfect!!!  Grin

I love EasyUI.
29  General Category / EasyUI for jQuery / How to add tooltip over icon on: January 14, 2020, 06:21:42 PM
Dear Sir,

I create tab panel and use icon instead of title of each tab. (please see attached image)
I try to use easyui-tooltip class for show tooltip over icon but it doesn't work.
Could you please advice to to solve this issue.

Thank you.

Code:
<div id="TabpanelBib" class="easyui-tabs" data-options="fit:true,plain:true,selected:0,tabPosition:'right',headerWidth:40,tabHeight:40,border:false">
<div iconCls="icon-attributes" class="easyui-tooltip" title="Card" >
<div id="TabBibCard" class="easyui-panel" style="width:100%;height:100%;"></div>
</div>
<div iconCls="icon-bricks" class="easyui-tooltip" title="Items">
<div id="TabBibItems" class="easyui-panel" style="width:100%;height:100%;"></div>
</div>
<div iconCls="icon-form" >
<div id="TabBibForm" class="easyui-panel" style="width:100%;height:100%;"></div>
</div>
<div iconCls="icon-cog1" >
<div id="TabBibConfig" class="easyui-panel" style="width:100%;height:100%;"></div>
</div>
</div>
30  General Category / EasyUI for jQuery / Re: Getting field value from form on: December 20, 2019, 07:22:58 PM
$.messager.alert('Message','Site is:<br /><br />' . item,'error');

to

$.messager.alert('Message','Site is:<br /><br />' + item.name,'error');
Pages: 1 [2] 3 4 ... 6
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!