irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 ok, I Use CodeGear 2007, Chrome, Windows XP 1. Create New Application 2. Add On Main Form uniButton 3. uniButton.Onclick begin UniSession.AddJS ('var docElm = document.documentElement;' + ' if (docElm.requestFullscreen) {' + ' docElm.requestFullscreen();' + '}' + 'else if (docElm.mozRequestFullScreen) {' + ' docElm.mozRequestFullScreen();' + '}' + 'else if (docElm.webkitRequestFullScreen) {' + ' docElm.webkitRequestFullScreen();' + '}' + 'else if (docElm.msRequestFullscreen) {' + ' docElm.msRequestFullscreen();' + '}'); end; 4. Start WebServer Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 8, 2016 Share Posted December 8, 2016 Actually this should not work.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 8, 2016 Share Posted December 8, 2016 Once again please analyze this: http://forums.unigui.com/index.php?/topic/7595-start-fullscreen-on-chrome-and-windows/&do=findComment&comment=38795 Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 I already try Your proposal, but did not work. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 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(); } else if (docElm.msRequestFullscreen) { docElm.msRequestFullscreen(); }; } Please put above code in any Button's ClientEvents -> click event. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 I do this on Button with Name Farshad on my example server webonline but not work again ? (I copy Your code from page and direct paste to Button's extevents.click) Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 Let me check! Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 For test I add alert () for every button after fullscreen commands. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 Problem is that you have web page inside a frameset. If you call directly it will work. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 Works: http://-------:8077/ Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 Hm, not work AddJs, can tell me why ? Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted December 8, 2016 Share Posted December 8, 2016 Hm, not work AddJs, can tell me why ? See post #20 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 Hm, not work AddJs, can tell me why ? Note: Fullscreen requests need to be called from within an event handler or otherwise they will be denied. https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 Ok, security limitation. I read many instructions, and all of them are OK - "security limitation". END of this topic. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 Otherwise people could show Full Screen Ads on user screen easily without a need for an approval from the user! Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 My problem is that, I test unigui befor ~5 months. then I have problem with executing javascript (I learn javascript) with unigui server. Make different tests and then all start to work with Unisession.JSCode (Read javascript from text file and direct executing with JSCode). After that I organize my server with that logic executing directly javascript from text files. After some months I update to 99.1309 - 99.1364 and all of my working server stop working with javascript from JSCode. I test this: 1. Fullscreen 2. Play Sound 3. Speach 4. Get GPS Coordinates of this functions, now work only "4. Get GPS" I make test with my desktop , My tablet and My phone. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted December 8, 2016 Administrators Share Posted December 8, 2016 I can send you version 1309 Trial. In that case will you be able to confirm that your code works with 1309 and not with 1364? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted December 8, 2016 Author Share Posted December 8, 2016 I know that is not work on 1309 Befor 3 days I was with 1309. Problem is not that. I will make some test. Quote Link to comment Share on other sites More sharing options...
asapltda Posted April 20, 2020 Share Posted April 20, 2020 On 12/8/2016 at 8:21 AM, Farshad Mohajeri said: 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(); } else if (docElm.msRequestFullscreen) { docElm.msRequestFullscreen(); }; } Please put above code in any Button's ClientEvents -> click event. for movile device function tap(sender, e, eOpts) { var docElm = document.documentElement; if (docElm.requestFullscreen) { docElm.requestFullscreen(); } else if (docElm.mozRequestFullScreen) { docElm.mozRequestFullScreen(); } else if (docElm.webkitRequestFullScreen) { docElm.webkitRequestFullScreen(); } else if (docElm.msRequestFullscreen) { docElm.msRequestFullscreen(); }; } 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.