Jump to content

Button Click and ExtEvents


marquesrb

Recommended Posts

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

Link to comment
Share on other sites

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.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...