Galleria
JavaScript のプラグインを使用しています。画像を表示する必要があります。full Screen mode
チェックAPI
済みで、メソッドがあります。
.enterFullscreen( [callback] )
returns Galleria
This will set the gallery in fullscreen mode. It will temporary manipulate some document styles and blow up the gallery to cover the browser screen. Note that it will only fill the browser window, not the client screen (javascript can’t do that).
このコードを使用ZK Framework
してボタンのクリックに応答しています。
public void imageZoomer()
{
Clients.evalJavaScript("$('#galleria').data('galleria').enterFullscreen(function() {alert('full screen mode');})");
}
しかし、何も起こりません
Clients.evalJavaScript("imageZoomer()");
そして、javascript
このような機能
function imageZoomer()
{
alert('before');
$('#galleria').data('galleria').enterFullscreen(function(){alert('full screen mode');})
alert('after');
}
上記の関数が呼び出されますが、何も起こりませんが、firebug コンソールでこのコードを試してみると
$('#galleria').data('galleria').enterFullscreen(function(){alert('full screen mode');})
私が間違っていることはスムーズに機能します。ありがとうございます。