Hey, For security reasons, full screen request will only work in direct response to a button click, i.e. without a server round trip.
So you need to attach the JavaScript code directly to a clicked() handler: button->clicked().connect("function() { ... }"); See http://stackoverflow.com/questions/9454125/javascript-request-fullscreen-is-unreliable Regards, koen 2014-03-30 9:56 GMT+02:00 Muhammad Nasser Al-Noimi <mnno...@gmail.com>: > Hi, > > I'm trying to run in Fullscreen mode for my application. I tried to use > the following JQuery script, but it didn't work. I don't know what I missed? > > string func = "var elem = document.getElementById(\"" + > root()->id() + "\");\n" > "req = elem.requestFullScreen || > elem.webkitRequestFullScreen || elem.mozRequestFullScreen;\n" > "req.call(elem);\n"; > doJavaScript(func); > > I also tried to mimic clicking F11 using Java script but it also didn't > work. > > Thanks > > > ------------------------------------------------------------------------------ > > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > >
------------------------------------------------------------------------------
_______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest