Jump to content

fullscreen modu


sinanaydin

Recommended Posts

Merhaba;

 

projemiz için fullscreen modunda çalışmamız gerekiyor.

Forumdan araştırarak butonun extevent kısmına yazarak sorunumu çözdüm butona tıklanıldığında fullscreen çalışıyor. 

 

Fakat açılışta otomatik full screen yaptıramıyorum.

 

btnfullscreen.click;

veya

UniSession.Addjs('ajaxRequest('+ btnfullscreen.JSName +', "click")');

 

yaparak butona click yapsamda gene de çalışmıyor.

 

unibitbtn a yazdığım javascrip kodunu formun show ' unda nasıl çalıştırabilirim.

Link to comment
Share on other sites

  • 4 weeks later...
merhaba formacılısının ext eventene bu kodu eklerseniz ful screen yapabilirsiniz.

 

function click(sender, e, eOpts)

{

              var docElm = document.documentElement;

            if (docElm.requestFullscreen) {

                docElm.requestFullscreen();

            }

            else if (docElm.mozRequestFullScreen) {

                docElm.mozRequestFullScreen();

            }

            else if (docElm.webkitRequestFullScreen) {

                docElm.webkitRequestFullScreen();

            }

}

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...