donlego Posted April 8, 2021 Share Posted April 8, 2021 Firefox result same, like chrome Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 http://localhost/cc - Is this also on UniGUI? Quote Link to comment Share on other sites More sharing options...
donlego Posted April 8, 2021 Share Posted April 8, 2021 no the localhost cc is create with php , apache web server Quote Link to comment Share on other sites More sharing options...
donlego Posted April 8, 2021 Share Posted April 8, 2021 even with local source the right clisk is still appear on firefox and chrome FUniUrlFrame.URL:='/files/akun.html'; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 9 minutes ago, donlego said: even with local source the right clisk is still appear on firefox and chrome FUniUrlFrame.URL:='/files/akun.html'; I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 21 minutes ago, donlego said: even with local source the right clisk is still appear on firefox and chrome FUniUrlFrame.URL:='/files/akun.html'; Also try this: //FUniUrlFrame.ClientEvents.ExtEvents.Add('frameload = function frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}'); FUniUrlFrame.ClientEvents.ExtEvents.Values['frameload'] := 'function frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}'; Quote Link to comment Share on other sites More sharing options...
donlego Posted April 8, 2021 Share Posted April 8, 2021 FUniUrlFrame.ClientEvents.ExtEvents.Values['frameload'] := 'function frameload(sender, frame, eOpts){ sender.iframe.contentWindow.window.oncontextmenu = function(){return false}}'; the code work well on ff and chrome , if the url is html , but if the url pdf file it appears again how to work well both on html files and pdf file pdf on chrome work , but not on ff Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 1 hour ago, donlego said: but if the url pdf file it appears again How do you load the pdf? Quote Link to comment Share on other sites More sharing options...
donlego Posted April 8, 2021 Share Posted April 8, 2021 14 minutes ago, Sherzod said: How do you load the pdf? FUniUrlFrame.URL:='/files/akun.pdf'; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 56 minutes ago, donlego said: FUniUrlFrame.URL:='/files/akun.pdf'; The document is being shown by the PDF viewer installed on the client machine and you have no idea what that viewer is and there is no universal way to disable right click... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 You can use UniPDFFrame in parallel and catch the contextmenu there. There were solutions on the forum, if I'm not mistaken. Quote Link to comment Share on other sites More sharing options...
donlego Posted April 8, 2021 Share Posted April 8, 2021 37 minutes ago, Sherzod said: You can use UniPDFFrame in parallel and catch the contextmenu there. There were solutions on the forum, if I'm not mistaken. O, i think for now it enough, thanks very much @Sherzod, sory make u busy with my question Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2021 Share Posted April 8, 2021 7 minutes ago, donlego said: sory make u busy with my question No problem. 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.