EasyUI Forum
December 19, 2025, 07:48:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / When the page had loaded the tabs, scrolling feature can't work right now on: July 31, 2014, 08:55:14 PM
When the page had loaded the tabs, scrolling feature can't work right now, wait a while it can work. This can let guests mistakenly think scroll bar can not be used.Please help me.
The page url is http://i3mf.com/
2  General Category / EasyUI for jQuery / How can I send selected row data as param to validator function? on: July 09, 2014, 08:27:51 PM
I  create a editable datagrid. When I add or edit a new zone, I need validate the zone code, How can I send selected row data as param to validator function?


<script type="text/javascript">
  $('#tt').edatagrid({
    url: '<?php echo FILENAME_SHIPPING_FEE_TEMPLATE; ?>.php?action=zone_list&shipping_id=<?php echo $shipping_id;?>',
    saveUrl: '<?php echo FILENAME_SHIPPING_FEE_TEMPLATE; ?>.php?action=save_zone&shipping_id=<?php echo $shipping_id;?>',
    updateUrl: '<?php echo FILENAME_SHIPPING_FEE_TEMPLATE; ?>.php?action=update_zone&shipping_id=<?php echo $shipping_id;?>',
    destroyUrl: '<?php echo FILENAME_SHIPPING_FEE_TEMPLATE; ?>.php?action=delete_zone&shipping_id=<?php echo $shipping_id;?>'
  });

$.extend($.fn.validatebox.defaults.rules, {

  check_zone_code: {
    validator: function(value, param){
     $.ajax({
       type: 'POST',
      async: false,
      url:  'shipping_fee_template.php?action=check_zone_code&shipping_id=<?php echo $shipping_id;?>',
      data: {'zone_code':value},
      success: function(result){
        alert(result);
      }
     })
    },
    message: 'The shipping zone already exists.'
  }

});


</script>

<table id="tt" style="height:auto;" title="<?php echo $shipping_info->fields['shipping_name'] . ' ' . TEXT_ZONE_LIST; ?>" url="<?php echo FILENAME_SHIPPING_FEE_TEMPLATE; ?>.php?action=zone_list&id=<?php echo $shipping_id; ?>" toolbar="#zone_toolbar" iconCls="icon-save" rownumbers="true" pagination="true">
<thead data-options="frozen:true">
  <tr>
    <th field="action_button" width="60" rowspan="2">Status</th>
    <th field="id" width="40" rowspan="2">zID</th>
   <th field="shipping_id" width="40" rowspan="2">sID</th>
    <th field="zone_name" width="120" rowspan="2" editor="text"><?php echo TEXT_ZONE_NAME; ?></th>
   <th field="zone_code" width="120" rowspan="2" editor="{type:'validatebox',options:{validType:'check_zone_code'}}"><?php echo TEXT_ZONE_CODE; ?></th>
  </tr>
</thead>
</table>
3  General Category / EasyUI for jQuery / How to validate dynamic input when submit the form? on: June 06, 2014, 02:24:15 AM
How to validate dynamic input when submit the form?
Select different payment method, payment info. display different details.
4  General Category / EasyUI for jQuery / Re: Multi-Row tabs on: March 19, 2014, 01:26:00 AM
I hope this feature should be open. When there is a lot of tabs, scroll would have some trouble.
5  General Category / General Discussion / Re: How to refresh layout in window on: February 25, 2014, 10:40:55 PM
I used another way to solve this problem. I set ID to the north, the ID is 'pop_address_list_box'

<div id="win_address_shipping" class="easyui-window" title="Address & Shipping Management" style="width:600px;height:430px" data-options="collapsible:false,maximizable:false,minimizable:false,closed:true" >
  <div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',split:true" style="height:230px;overflow:auto;" href="ajax_user_address.php" id="pop_address_list_box"></div>
    <div data-options="region:'center'" style="overflow:auto;"><div id="pop_address_box"></div></div>
  </div>
</div>

js code is
$('#pop_address_list_box').panel({
   href:'ajax_user_address.php?action=pop_address_shipping'
})
6  General Category / General Discussion / Re: How to refresh layout in window on: February 24, 2014, 07:57:30 PM
I used jQuery EasyUI 1.3.2
7  General Category / General Discussion / Re: How to refresh layout in window on: February 24, 2014, 07:46:20 PM
I also wirte like this, but it reported the following error

--------------------------------------------------------------------------------------
Uncaught TypeError: Cannot read property 'panels' of undefined jquery.easyui.min.js:4372
$.fn.layout.methods.panel jquery.easyui.min.js:4372
$.fn.layout jquery.easyui.min.js:4350
(anonymous function) wholesale.js:1062
p.event.dispatch jquery-1.8.0.min.js:2
g.handle.h
--------------------------------------------------------------------------------------
8  General Category / General Discussion / How to refresh layout in window on: February 24, 2014, 01:44:22 AM
I create a window includes 2 layout, north and center.When I open the window 'win_address_shipping', the layout of 'north' can get remote data.I still have a button in the window and bind 'click' event to refresh the 'north' layout, not the whole window 'win_address_shipping'.
Below is the window html code:
<div id="win_address_shipping" class="easyui-window" title="Address & Shipping Management" style="width:600px;height:430px" data-options="collapsible:false,maximizable:false,minimizable:false,closed:true" >
  <div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',split:true" style="height:230px;overflow:auto;" href="ajax_user_address.php"></div>
    <div data-options="region:'center'" style="overflow:auto;"><div id="pop_address_box"></div></div>
  </div>
</div>
9  General Category / EasyUI for jQuery / Re: How to get the west panel width of inner layout on: November 11, 2013, 02:23:41 AM
Thank you for your anwer.
Sorry, I didn't say clearly what I mean. I need to capture the width of the west panel when I drag the split bar every time.So, the key of the question is how to get the drag event of the the split bar.
10  General Category / EasyUI for jQuery / How to get the west panel width of inner layout on: November 10, 2013, 06:30:16 PM
How to get the west panel width of inner layout when I draged the split bar, or how can I get the drag event of the the split bar?

I used jQuery EasyUI 1.3.2
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!