Thanks it worked just fine. I didn't know that javascript can be passed directly to connect. I called doJavaScript and it didn't work for security reasons as what you explained.
On Mon, Mar 31, 2014 at 10:14 AM, Koen Deforche <k...@emweb.be> wrote: > 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 > >
------------------------------------------------------------------------------
_______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest