Java ZK+Javascript JQuery Galleria IO FullScreenMode -
i using galleria plugin javascript need show image in full screen modei have checked apiand have method.
.enterfullscreen( [callback] ) returns galleria set gallery in fullscreen mode. temporary manipulate document styles , blow gallery cover browser screen. note fill browser window, not client screen (javascript can’t that). i using zk framework responding button click using code.
public void imagezoomer() { clients.evaljavascript("$('#galleria').data('galleria').enterfullscreen(function() {alert('full screen mode');})"); } but nothing happens have try using
clients.evaljavascript("imagezoomer()"); and javascript function this
function imagezoomer() { alert('before'); $('#galleria').data('galleria').enterfullscreen(function(){alert('full screen mode');}) alert('after'); } the above function called nothing happens if try code on firebug console
$('#galleria').data('galleria').enterfullscreen(function(){alert('full screen mode');}) it works smoothly doing wrong lot.
finally solved issue using xmhtml button in zk , responding onclick event using jquery couldn't solve issue using zk button here code hope helps somebody.
<div xmlns:h="xhtml"> <h:button onclick="$('#galleria').data('galleria').togglefullscreen();">full screen. </h:button> </div> best regards..
Comments
Post a Comment