this.editfp = new Ext.Panel({ id:'tciPhotoFp', region:"east", width:300, height:240, html:'<div id="tcigrid"></div>' });
Showphoto: function (tableid) {Ext. Ajax. Request ({URL: appconfig. contpath + '/attachment! Listphoto. action ', // access path method: 'post', Params: {tableid: tableid}, disablecaching: True, callback: function (options, success, response) {// callback function var DATA = JSON. parse (response. responsetext); // convert string type to JSON type // alert (data); Galleria. run ('# tcigri', {datasource: data, width: 300, height: 210, imagecrop: True, thumbcrop: True, transition: 'slide', keepsource: True, AutoPlay: 3000, _ locale: {show_thumbnails: "show thumbnail", hide_thumbnails: "Hide thumbnail", play: "pause playback", pause: "start playback", enter_fullscreen: "Enter full screen", exit_fullscreen: "exit full screen", popout_image: "large image display", showing_image: "show image % S/% s" }}) ;}); Galleria. loadtheme ('/szcj/scripts/photography/JS/Galleria. twelve. min. js ');}
The page needs to be imported:
<script src="${ctx}/scripts/photography/js/jquery-1.5.1.min.js"></script><script src="${ctx}/scripts/photography/js/galleria-1.2.7.min.js"></script><script src="${ctx}/scripts/photography/js/galleria.twelve.min.js"></script>