donlego
-
Posts
231 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by donlego
-
-
actually a local url, just make a test if it's an external domain for tes the funcion
FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');
-
15 hours ago, Sherzod said:
If you don't have access to the iframe's contents, in your case I suppose that's what it is, then it is not possible.
try the new rar
-
36 minutes ago, Sherzod said:
If you don't have access to the iframe's contents, in your case I suppose that's what it is, then it is not possible.
please try url without https or if u have a local web server
-
-
2 minutes ago, Sherzod said:
FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){...
FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');
the code is work but right click on frame is show/active
-
20 minutes ago, Sherzod said:
For example using ClientEvents.
Can you make a simple testcase to check?
FUniUrlFrame := TUniURLFrame.Create(TabSheetNew);
FUniUrlFrame.Name := Name + '_frame';FUniUrlFrame.Parent := TabSheetNew;
FUniUrlFrame.Align := alClient;FUniUrlFrame.OnFrameLoaded := UNIFRAME_LOADED;
FUniUrlFrame.ScreenMask.Target := FUniUrlFrame;
FUniUrlFrame.ScreenMask.Enabled := true;
FUniUrlFrame.URL := report_url;FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}');
up raise error on runtime
-
On 6/1/2016 at 3:11 AM, Sherzod said:
Hi,
Can you try this ?!:
function frameload(sender, frame, eOpts) { sender.hideMask(); sender.iframe.contentWindow.window.oncontextmenu = function(){ return false } }
Best regards.
work on chrome , firefox fail
and how did put the event if the uniurlframe is runtime create
-
hello
any solution for disable right click on unihtmlframe ?
unigui ver 1506
-
15 hours ago, Sherzod said:
Hello,
thanks , it work
-
-
-
-
how to focus on a specific date when form oncreate
example
color become green on 2nd date
the code is alway focus on first date
-
how to add uniclient event on runtime ?
Quoteclass procedure PlayWIthform.SET_ICON_COMPONENT(aform:tuniform);
var i:integer;
var after_render_Event:string ;begin
//PlayWIthMessage.Run('aa','xx');
after_render_Event:= 'afterrender=function afterrender(sender, eOpts) { '+
'var me=sender; '+
' me.inputEl.setStyle("background", "none");'+
' me.triggerCell.setStyle("background", "none");'+
' me.inputWrap.setStyle("border-right-width", "0");'+
' me.triggerCell.setStyle("border-right-width", "1px");'+
' me.triggerCell.setStyle("border-top-width", "1px"); '+
' me.trigger.elements[0].setHtml("<i class=''fa fa-angle-down'' style=''font-size:1.8em; padding-right:5px''></i>"); '+
'}';
for i:= 0 to aform.ComponentCount -1 do
begin
if aform.Components is TUniDBLookupComboBox then
(aform.Components as TUniDBLookupComboBox).ClientEvents.ExtEvents.Add(after_render_Event);
end;i use this always error on the line
' me.trigger.elements[0].setHtml("<i class=''fa fa-angle-down'' style=''font-size:1.8em; padding-right:5px''></i>"); '+
-
On 6/6/2020 at 3:54 PM, Sherzod said:
Need to check.
any solution for unicombox/datepicker icon with css
-
anybody have experience with htacces on xampp apache ?
-
hello ,
i have app with every cust have diffrent cust id
current :
1.mydomain.com/?custid=abc
2.mydomain.com/?custid=def
now i have was create wildcard subdomain for my server
so my question is can i use htacces to make like this
1.abc.mydomain.com
2.def.mydomain.com
and get the result like curent behaviour
UniApplication.Parameters.Values['custid']
-
On 8/8/2020 at 9:49 PM, Hayri ASLAN said:
Hi,
You can use ServerModule -> onServerStartup event.
i use 1506
from build ?
this event available ?
-
is there any event in unigui hyper server that could indicate the server is reboot.
i wanto clear my log every time server or web server is restarted
-
19 hours ago, Sherzod said:
One possible solution I think.
UniComboBox.ClientEvents.ExtEvents ->
function afterrender(sender, eOpts) { var me=sender; me.inputEl.setStyle('background', 'none'); me.triggerCell.setStyle('background', 'none'); me.inputWrap.setStyle('border-right-width', '0'); me.triggerCell.setStyle('border-right-width', '1px'); me.triggerCell.setStyle('border-top-width', '1px'); me.triggerEl.elements[0].setHtml('<i class="fa fa-angle-down" style="font-size:1.8em; padding-right:5px"></i>'); }
it,s work, but @Sherzod
can it just use css / or copy file ?
coz i have about more than 100 + form need the style
-
thanks before @sherzod,
btw , i was try copy the image from triton to classic theme but nothing change
-
anyone have a solution ?
-
change the hyperserver config
app1
[http_transport]
start_port=16384app2
[http_transport]
start_port=36384- 2
-
Disabling context menu in UniURLFrame
in General
Posted
on chrome right click the menu still apears