marquesrb Posted January 11, 2016 Posted January 11, 2016 Hi. I have some code on a button "ClientEvents -> ExtEvents -> Click" that enable/disable browser full screen. If I click the button the code works fine but if I run some code like "Button.Click" the code doesn't work. I also tried to use "UniSession.AddJS(btnEnterFullScreen.JSName + '.btnEl.dom.click();');" but I didn't work either. Is there a way to do that? Renato FullScreen.rar Quote
Sherzod Posted January 11, 2016 Posted January 11, 2016 Hi, Can you attach a test case ?! Best regards. Quote
marquesrb Posted January 11, 2016 Author Posted January 11, 2016 Hi Delphi Developer, I attached a demo on my first post. Thanks. Quote
Sherzod Posted January 11, 2016 Posted January 11, 2016 Thanks, I will try analyze.. Best regards. Quote
Sherzod Posted January 11, 2016 Posted January 11, 2016 Hi, Hmm, " You have probably asked the browser to go on fullscreen directly from the code. It can only happen in an eventHandler called from an user action (like a click or keypress).This is what the user message is telling. As you can see, the eventHandler must run fast too. It must be under 1s.It is for security reasons, so you cannot go fullscreen without requiring the user for confirmation. " https://fullscreen.spec.whatwg.org/#security-and-privacy-considerations http://stackoverflow.com/questions/24493355/fullscreen-not-working-on-firefox-30 Best regards. 1 Quote
marquesrb Posted January 12, 2016 Author Posted January 12, 2016 Hummmm got it, thanks for the explanation. Renato 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.