EasyUI Forum
November 02, 2025, 12:22:19 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 / Re: Implement restricted date on: November 10, 2022, 01:43:07 AM
Its Works,
thx
2  General Category / EasyUI for jQuery / Implement restricted date on: November 05, 2022, 07:31:06 AM
I'm already success implement restricted date..
but my problem is, when i create restricted january only and now is already november,
the datebox view is showing november or current month,
my question in how can i set the datebox base on restricted date i choose , so when user click on datebox it will show january not november or current month ?

Thx for ur answer
3  General Category / EasyUI for jQuery / Re: setting updateUrl in edatagrid plugin on: January 30, 2022, 11:41:38 PM
It work,
thx
4  General Category / EasyUI for jQuery / setting updateUrl in edatagrid plugin on: January 25, 2022, 08:24:42 AM
hai everybody,
I am use edatagrid for inline editing than send the data to database,
it work well if i declare the updateUrl in document ready
ex :
Code:
<script>
   $(function(){
        $('#dgSubTujuan').edatagrid({
            updateUrl: '{% url 'saveSubTujuan' %}',
        });
   })
   function saveInline(){
      $('#dgSubTujuan').edatagrid('saveRow');
   }
</script>
but it not working when i try to change the update url in function
ex
Code:
  function saveInline(){
        $('#dgSubTujuan').edatagrid({
            updateUrl: '{% url 'saveSubTujuan' %}'+id,
        });
        $('#dgSubTujuan').edatagrid('saveRow');
  }
sorry for my bad english,
hope you understand
5  General Category / EasyUI for jQuery / Re: Selection js in jeasyui on: November 01, 2019, 09:46:41 PM
it works,
thx jarry
6  General Category / EasyUI for jQuery / Re: Selection js in jeasyui on: October 30, 2019, 12:35:08 AM
Please look at this example http://code.reloado.com/uqatas3/edit#preview. It works fine.

my bad jarry,you might misunderstanding.

i edited my code below
https://jsfiddle.net/guruhyes/hy34j1b6/4/
reff from :http://help.dottoro.com/ljtfkhio.php

so i want to select words inside the text box using click button

when i try your code the console output only
Code:
{start: 2, end: 4}
but i want the words inside the text box
7  General Category / EasyUI for jQuery / Re: Selection js in jeasyui on: October 29, 2019, 03:19:10 AM
Please call 'setSelectionRange' method to select text on the textbox component.
Code:
$('#t').textbox('setSelectionRange', {start:2,end:4});
var range = $('#t').textbox('getSelectionRange');
console.log(range);

hai Jarry,
thx for your reply,

i did what you suggested, but still not working
Code:
<input name="t" id="t" style="width:300px" type="text" class="easyui-textbox">
<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="dbu()">test</a>
<script>
function dbu(){
        $('#t').textbox('setSelectionRange', {start:2,end:4});
           var range = $('#t').textbox('getSelectionRange');
           console.log(range);
        }
</script>

console output
Code:
{start: 0, end: 0}
and i read the documentation, and the method setSelectionRange and getSelectionRange didnt exist
8  General Category / EasyUI for jQuery / [SOLVED]Selection js in jeasyui on: October 28, 2019, 05:46:51 PM
Code:
<head>
    <script type="text/javascript">
        function Select (st,en) {
            var input = document.getElementById ("myText");
            if ('selectionStart' in input) {
                input.selectionStart = st;
                input.selectionEnd = en;
                input.focus ();
            }
            else {  // Internet Explorer before version 9
                var inputRange = input.createTextRange ();
                inputRange.moveStart ("character", 1);
                inputRange.collapse ();
                inputRange.moveEnd ("character", 1);
                inputRange.select ();
            }
        }
    </script>
</head>
<body>
    <input type="text" id="myText" value="Some text for testing"/>
    <button onclick="Select (2,4)">click me</button>
</body>
hai,
the code above is working when i use only javascript,
but when i change the text box to jeasyui the selection not working
Code:
<input type="text" id="myText" class="easyui-textbox" value="Some text for testing"/>
any solution?

sorry for bad english
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!