02-11-2009 08:18 AM
<import resource="classpath:scripts/extension/jquery-1.2.6.pack.js">
<import resource="classpath:scripts/extension/jquery.imgareaselect-0.6.2.min.js">
<%–
<script type="text/javascript" src="scripts/extension/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="scripts/extension/jquery.imgareaselect-0.6.2.min.js"></script>
–%>
<script type="text/javascript">
var $x1, $y1, $x2, $y2, $w, $h;
function selectChange(img, selection)
{
$x1.text(selection.x1);
$y1.text(selection.y1);
$x2.text(selection.x2);
$y2.text(selection.y2);
$w.text(selection.width);
$h.text(selection.height);
}
$(document).ready(function () {
$x1 = $('#x1');
$y1 = $('#y1');
$x2 = $('#x2');
$y2 = $('#y2');
$w = $('#w');
$h = $('#h');
});
$(window).load(function () {
$('img#:recorte').imgAreaSelect({ selectionOpacity: 0, onSelectChange: selectChange });
});
</script>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ page import="org.alfresco.web.ui.common.PanelGenerator" %>
<f:verbatim>
<table cellpadding="2" cellspacing="2" border="0" width="100%">
<tr>
<td class="mainSubTitle">
</f:verbatim><h:outputText value="#{msg.edit_file_title}" /><f:verbatim>
</td>
</tr>
<tr>
<td style="padding:10px" valign="middle">
</f:verbatim>
<h:graphicImage id="recorte" url="#{WizardManager.bean.browserUrl}"/>
<f:verbatim>
</td>
</tr>
<tr>
<td>
</f:verbatim><h:outputText value="#{msg.edit_download_complete}" /><f:verbatim>
</td>
</tr>
</table>
</f:verbatim>
02-13-2009 04:47 AM
02-13-2009 05:29 AM
02-13-2009 07:17 AM
02-13-2009 07:21 AM
02-13-2009 07:33 AM
02-20-2009 06:30 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.