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

api

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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -