gpaulino Posted September 10, 2013 Posted September 10, 2013 hello all UniXPopupMenu1 component of XCOMPONENT not work, I tried to put to us e in the pull down onclick of any menu option that I believe in this component and does absolutely nothing, I do not take any kind of image to Unless I insert by html tag. please help with this .. Quote
erich.wanker Posted September 23, 2013 Posted September 23, 2013 WebMode? .. i dont know how to use Apache XCOMPONENT with UniGui - but if it helps, i show how i use "selfmade Popups" i use normal "TUniForm" - forms i show it with "showmodal" i set top,left what i want ..and in TUniForm / Script i have: function setMaskeventClosewindow(target) { var elements = document.body.getElementsByTagName('div'); for (var i = 0; i < elements.length; i++) { if (elements[i].className.indexOf('mask') != -1) { elements[i].onclick = function() {target.close();}; } } } OnShow i have: procedure Tmodul001_detail1_popup01.UniFormShow(Sender: TObject); begin UniSession.AddJS('setMaskeventClosewindow(' + self.WebForm.ExtWindow.JSName + ');'); end; i have 2 benefits: ... i can make my popup like i want ... i can use a lot of "popups" and lose no performance .. (if you use a lot of uniPopup - the loading-prosecc is slowing down..) hope that helps Quote
Alexandrovf Posted January 27, 2015 Posted January 27, 2015 I got error 'TUniJSForm' doest not contain a member named 'ExtWindow' 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.