Show Posts
|
Pages: [1] 2
|
2
|
General Category / EasyUI for jQuery / Masked Input - Paste Broken
|
on: February 08, 2021, 10:22:30 AM
|
The Masked Input doesn't update the value when text is pasted into the input:
<input id="myPhone" name="myPhone" type="text" class="easyui-maskedbox" mask="999-999-9999" value="" data-options="">
Paste 123-456-7890 into the box and the underlying control value doesn't update.
|
|
|
4
|
General Category / EasyUI for jQuery / Override ValidateBox error
|
on: December 30, 2016, 01:21:11 PM
|
Hello,
Is it possible to override all validatebox error functionality. I am currently trying:
$.extend($.fn.validatebox.defaults, {err:function(target, message){ var t = $(target); if (t.hasClass('textbox-text')){ t = t.parent(); } var m = t.next('.text-danger'); if (!m.length){ m = $('<div class="text-danger small"></div>').insertAfter(t); } m.html(message); }});
|
|
|
8
|
General Category / EasyUI for jQuery / Re: Datalist radiobutton
|
on: December 14, 2015, 07:06:23 PM
|
From JeasyUI Support:
To get a radio button on the left of item, please use the 'formatter' function to define a radio element.
$('#dl').datalist({ textFormatter: function(value,row){ return '<input type="radio" name="name1">' + value; }, onSelect: function(index,row){ var tr = $(this).datalist('options').finder.getTr(this, index); tr.find('input[type=radio]')._propAttr('checked', true); } })
|
|
|
13
|
General Category / EasyUI for jQuery / Re: Remote Combobox pass Q param after form load
|
on: March 27, 2013, 10:50:52 AM
|
Hello, That works great! Thanks for your help. The example looks like this: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="keywords" content="jquery,ui,easy,easyui,web"> <meta name="description" content="easyui help you build your web page easily!"> <title>Form - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script> </head> <body> <form id="myForm"> <select id="patient_id" name="patient_id" class="easyui-combobox" data-options=" url:'test.php', valueField:'id', textField:'name', mode:'remote', disabled:true, hasDownArrow:false, onBeforeLoad:function(param){param.q = $(this).combobox('getValue')}" style=" width:200px;" /> </form> <script> $(function(){ $('#myForm').form({ onLoadSuccess:function(){ $('#patient_id').combobox('reload'); } }).form('load',{ patient_id: 6 }); }); </script> </body> </html>
|
|
|
14
|
General Category / EasyUI for jQuery / Re: Remote Combobox pass Q param after form load
|
on: March 27, 2013, 08:46:51 AM
|
Hello,
I appreciate the example that you provided. It replicates, almost exactly, the functionality I have created above. Is there anyway to automate this functionality so that 'q' is passed to the webservice when the reload method is called?
$('#patient_id').combobox('reload'); //can q be set to getValue and passed to the webservice when this method is called
Best
|
|
|
15
|
General Category / EasyUI for jQuery / Re: Remote Combobox pass Q param after form load
|
on: March 26, 2013, 09:04:47 PM
|
Hello,
The HTML code marked in blue is wrapped in a form with the id "myForm". Please excuse the class attribute that is set to the same value.
The $('#myForm') selector for the form is correct and the is successfully being populated with a JSON response from the server that triggers the "onLoadSuccess" function in the green code.
Best
|
|
|
|