zilav Posted February 10, 2012 Posted February 10, 2012 A simple demo of using jquery plugins to format UniEdit control. Masked Input for fixed length input Include jquery.min.js and jquery.maskedinput-1.3.min.js in ServerModule.CustomFiles maskInput for variable length input and regexp pattern matching Include jquery.min.js and jquery.numberMask.js in ServerModule.CustomFiles When UniEdit is on UniForm use Form.OnActivate event When UniEdit is on UniFrame use UniTimer with RunOnce=true Have fun! UniEditFormatDemo.zip 3 Quote
AlbertoVesx Posted March 20, 2012 Posted March 20, 2012 Thank you. Its very useful and exactly what I need Quote
ysv Posted July 6, 2012 Posted July 6, 2012 Thanks... but demo doesn't work, probably I do something wrong? I can put anything in this fields. Quote
zilav Posted July 20, 2012 Author Posted July 20, 2012 Notification - this should be compatible with ExtJS4 Quote
IRWANTO82 Posted August 25, 2012 Posted August 25, 2012 why this not implement in next unigui release, this is good for input Quote
fabricio1970 Posted October 14, 2012 Posted October 14, 2012 to use the example in version 0.90 is not working with would work? fabricio Quote
amrihuang Posted November 26, 2012 Posted November 26, 2012 It is not work in above unigui 0.9! Hope can update... Many thanks! Quote
amrihuang Posted November 30, 2012 Posted November 30, 2012 Hope zilav or unigui team can check "mask input for date" for using Masked Input Through by HTML + JQuery + Plugin is work, but in unigui framework not. Quote
NelsonFS Posted November 30, 2012 Posted November 30, 2012 I really need this too !!! Please .. Zilav .. fix to 0.9 version!! Will be better if compatible with UniDBEdit Quote
maher Posted December 1, 2012 Posted December 1, 2012 Great work... This what I search for.... Many thanx to you... Quote
NelsonFS Posted December 3, 2012 Posted December 3, 2012 Simple way to use Formatted Input Mask in 0.9x and 0.8x Open the attached project, read instructions in example.Long live to UniGui.. I love it!!! 2013-04-01 => Link's on!!! PrjMaskEdit.rar 1 Quote
AlbertoVesx Posted December 3, 2012 Posted December 3, 2012 Simple way to use Formatted Input Mask in 0.9x and 0.8x Open the attached project, read instructions in example. Long live to UniGui.. I love it!!! Thank you. Quote
belo Posted February 5, 2013 Posted February 5, 2013 Simple way to use Formatted Input Mask in 0.9x and 0.8x Open the attached project, read instructions in example. Long live to UniGui.. I love it!!! PrjMaskEdit.rar Nelz By using a mask with a date field in the database of type date, how to handle the error: "__ / __ / ____" is not a valid date in OnExit if the field is empty? Quote
liugang73 Posted April 4, 2013 Posted April 4, 2013 correct original project(ok for 9x version of unigui) correct procedure TMaskedInput.Format(UniEditControl: TUniEdit);var i: integer; js: string;begin js := ''; for i := 0 to definitions.Count-1 do js := js + SysUtils.Format('$.mask.definitions[''%s'']=''[%s]'';', [definitions.Names, definitions.ValueFromIndex]); js := js + SysUtils.Format('$("#%s_id-inputEl").mask("%s");', [uniEditControl.JSName, mask]); // js := js + SysUtils.Format('jQuery(function(){jQuery("#%s_id-inputEl").mask("%s");});', [uniEditControl.JSName, mask]); UniSession.AddJS(js); // UniSession.AddJS(Format('jQuery(function(){jQuery("#%s_id-inputEl").mask("%s");});', [Ed.JSName, MaskStr]));end; Quote
Mauricio Posted December 24, 2014 Posted December 24, 2014 Simple way to use Formatted Input Mask in 0.9x and 0.8x Open the attached project, read instructions in example. Long live to UniGui.. I love it!!! 2013-04-01 => Link's on!!! Thank you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.