EasyUI Forum
July 26, 2024, 09:46:17 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 5 ... 13
31  General Category / EasyUI for jQuery / Re: Row from variable name on: December 21, 2022, 03:29:00 PM
Hi Jarry

The row = rows was an type error, my code was rows

I did try row[colName] but it didn't work. But now it works.  Roll Eyes

Jesper


32  General Category / EasyUI for jQuery / [SOLVED]Row from variable name on: December 21, 2022, 02:32:34 AM
Hi

Can't find how to use colName with row

function (objID,colName) {
   var rows = $('#'+objID).datagrid('getSelections');
   for(var i=0; i<rows.length; i++){
      var row = rows;
      dconsole.log(row.[colName])
   }
}

Regards Jesper
33  General Category / EasyUI for jQuery / Re: How to solve this ? on: December 07, 2022, 10:26:40 AM
Please use a better subject.

Everyone has to open the post to see what it 's about

Jesper
34  General Category / EasyUI for jQuery / Re: Datagrid onDblClickRow focus text on: November 10, 2022, 03:48:02 AM
Thanks Jarry

Works fine

35  General Category / EasyUI for jQuery / [SOLVED] Datagrid onDblClickRow focus text on: November 09, 2022, 02:33:12 PM
Hi.

Can't find the solution.

When dblclick a row, on the text, the text is highlighted. How to get rid of this.


Regards Jesper
36  General Category / EasyUI for jQuery / Re: JeasyUI Form Submission Enable/Disable Button on: September 27, 2022, 10:12:24 AM
Look at the demo

https://www.jeasyui.com/demo/main/index.php?plugin=Form&theme=material-teal&dir=ltr&pitem=&sort=asc
37  General Category / EasyUI for jQuery / Re: Form check if anything is changed and reversed on: May 30, 2022, 07:08:37 AM
Hi Jarry.

In between i found a solution, and it is similar to yours.

<form id="fmEditProfile" method="post" class="easyui-form" novalidate data-options="
      onLoadSuccess: function() {
         $('#saveButton').linkbutton('disable');
         origForm = $('#fmEditProfile').serialize();
      },
      onChange: function(target){
         if ($(this).serialize() !== origForm) {
            $('#saveButton').linkbutton('enable');
         } else {
            $('#saveButton').linkbutton('disable');
         }
      }">


Thanks anyway
38  General Category / EasyUI for jQuery / Re: Form check if anything is changed and reversed on: May 30, 2022, 01:47:51 AM
Is there anyone that have an solution.



Jesper
39  General Category / EasyUI for jQuery / Re: Form onchange fire on: May 23, 2022, 11:24:16 PM
Thanks Jarry


Is there a reason it does not work that way from the start. Could it then be made so that it could be turned on and off in properties
40  General Category / EasyUI for jQuery / [SOLVED]Form check if anything is changed or not on: May 23, 2022, 12:53:41 AM
Hi.

The onChange event can be fired when an element is changed.

But how to "Unchange" when the user have written something in a textbox, and deleted it again.

What i want is, that when user change something the save button must be enabled, but also when user delete the change, the savebutton must disable again, as no change is done.

Jesper
41  General Category / EasyUI for jQuery / [SOLVED]Form onchange fire on: May 23, 2022, 12:47:48 AM
Hi.

Have looked all around, and can't see anything about this.

In a form i have a textbox. When i add some text, the onChange is only fired when the textbox loose focus.

I want to enable a save button as soon the user writes some text.


Jesper
42  General Category / EasyUI for jQuery / Re: Dynamic mesage in validator on: May 19, 2022, 12:02:16 AM
Hi Jarry.

Thanks for solution.

Works exactly as expected.


Jesper
43  General Category / EasyUI for jQuery / [SOLVED]Dynamic mesage in validator on: May 18, 2022, 03:04:57 PM
Hi.

Have this extended validType. It work fine, but i want having the message matching the 4 cases

Tried several things, but with no luck.  

validType: 'passwordCheck[4,8]',

$.extend($.fn.validatebox.defaults.rules, {
   passwordCheck: {
      validator: function(value,param){
         var checkType = parseInt(param[0]);
         var minChars = parseInt(param[1]);
         switch (checkType){
            case 1:
               //Minimum [minChars] characters, at least one letter, lower or upper case :
               var patt = new RegExp("^(?=.*?[a-zA-Z]).{"+minChars+",}$")
               var res = patt.test(value)
               return res;
               break
            case 2:
               //Minimum [minChars] characters, at least one letter (lower/upper) and one number:
               var patt = new RegExp("^(?=.*?[a-zA-Z])(?=.*?[0-9]).{"+minChars+",}$")
               var res = patt.test(value)
               return res;
               break
            case 3:
               //Minimum [minChars] characters, at least one letter and one Upper case:
               var patt = new RegExp("^(?=.*?[a-z])(?=.*?[A-Z]).{"+minChars+",}$")
               var res = patt.test(value)
               return res;
               break
            case 4:
               //Minimum [minChars] characters, at least one letter and one Upper case and one number:
               var patt = new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])(?=.*?[0-9]).{"+minChars+",}$")
               var res = patt.test(value)
               return res;
               break
         }
      },
      message: 'Minimum {1} characters, at least one letter, one Upper case and one number'
   }
})


Regards
Jesper
44  General Category / EasyUI for jQuery / Re: Datagrid dynamic column with formatter on: May 12, 2022, 01:04:29 AM
Hi Jarry

Thanks.

Now it works.
45  General Category / EasyUI for jQuery / Re: Datagrid dynamic column with formatter on: May 11, 2022, 01:23:14 PM
Hi Jarry.

I already have tried this, but it's not a valid json string. Try put it in jsonlint.com


I do an ajax request to my DB and create the json response like this.


jsonData = jsonData & chr(34) & "field" & chr(34) & ":" & chr(34) & rsData("COLUMN_NAME") & chr(34) & ","
jsonData = jsonData & chr(34) & "title" & chr(34) & ":" & chr(34) & rsData("COLUMN_TITLE") & chr(34) & ","
jsonData = jsonData & chr(34) & "sortable" & chr(34) & ":" & chr(34) & "true" & chr(34) & ","

and then, how to do the rest

jsonData = jsonData & chr(34) & "formatter" & chr(34) & ":" & Huh?


Jesper
Pages: 1 2 [3] 4 5 ... 13
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!