fabricio1970 Posted February 27, 2015 Share Posted February 27, 2015 tested the example and work do not have to include the js folder at some explicit location ? Quote Link to comment Share on other sites More sharing options...
DEV_THS Posted April 1, 2019 Share Posted April 1, 2019 On 4/4/2013 at 11:32 AM, liugang73 said: 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; Hello, Can anyone tell me how do I set a value for a UniEdit at runtime? I have been trying: UniEdit1.JSInterface.JSCode ('$ ("#" +' # 1'.inputEl.id) .text ("'NewText'"); '); but nothing happens! can you help me? Quote Link to comment Share on other sites More sharing options...
DEV_THS Posted April 1, 2019 Share Posted April 1, 2019 9 minutes ago, DEV_THS said: Hello, Can anyone tell me how do I set a value for a UniEdit at runtime? I have been trying: UniEdit1.JSInterface.JSCode ('$ ("#" +' # 1'.inputEl.id) .text ("'NewText'"); '); but nothing happens! can you help me? [R E S O L V E D] UniEdit1.JSInterface.JSCode ('$ ("#" +' # 1'.inputEl.id) .val("'NewText'"); '); Quote Link to comment Share on other sites More sharing options...
emin Posted December 9, 2020 Share Posted December 9, 2020 It is OK when you place edit on mainform. But doesn't work on a frame. Quote Link to comment Share on other sites More sharing options...
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.