Fórum
Problem in IE with aui-image-viewer
David Arroyo, modificado 12 Anos atrás.
Problem in IE with aui-image-viewer
New Member Postagens: 5 Data de Entrada: 07/02/12 Postagens Recentes
Hi
I have a problem like this post:
http://www.liferay.com/es/community/forums/-/message_boards/message/10445517/maximized
and i haven't found a solution. I can open the ImageViewer in Google Chrome and in Mozilla Firefox but i can't open in Internet Explorer.
I just want to open one image so i don't need the ImageGallery aui. With the ImageViewer aui is enough.
I'm using Lilferay 6.0.12
Anybody have a solution?
This is my code:
I hope your answers
Thanks
I have a problem like this post:
http://www.liferay.com/es/community/forums/-/message_boards/message/10445517/maximized
and i haven't found a solution. I can open the ImageViewer in Google Chrome and in Mozilla Firefox but i can't open in Internet Explorer.
I just want to open one image so i don't need the ImageGallery aui. With the ImageViewer aui is enough.
I'm using Lilferay 6.0.12
Anybody have a solution?
This is my code:
<script type="text/javascript">
AUI().ready(['aui-overlay-context', 'aui-overlay-manager'], function()
{
AUI().ready('aui-image-viewer-gallery', function(A) {
var imageGallery1 = new A.ImageViewer({
links: '#gallery1 .image-thumbnail',
caption: 'gallery',
maxHeight: 300,
maxWidth: 300,
showPlayer: false,
}).render();
A.one('#log').html('Ready!');
});
});
</script>
#set ($ImageLocalService = $serviceLocator.findService("com.liferay.portal.service.ImageLocalService"))
#set ($IGImageLocalService = $serviceLocator.findService("com.liferay.portlet.imagegallery.service.IGImageLocalService"))
<img src="/html/imagenes/picture.gif" width="16" height="16" alt="" class="imagenDocs">
<div id="gallery1" class="gallery">
#set ($url = $getterUtil.getString($Imagen.data))
#set ($uuid = $getterUtil.getString($httpUtil.getParameter($url, "uuid", false)))
#set ($groupId = $getterUtil.getLong($httpUtil.getParameter($url, "groupId", false)))
#set ($imageObj = $IGImageLocalService.getImageByUuidAndGroupId($uuid, $groupId))
#set ($smallImageId = $imageObj.getSmallImageId())
#set ($thumbObj = $ImageLocalService.getImage($smallImageId))
<a class="image-thumbnail" href="$url" title="$imageObj.getName()">Foto</a>
</div>
I hope your answers
Thanks