[
https://issues.apache.org/jira/browse/OFBIZ-2805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740434#action_12740434
]
chris snow edited comment on OFBIZ-2805 at 8/7/09 1:18 AM:
-----------------------------------------------------------
The problem appears to be with the javascript function popUp:
{code}
function popUp(url, name, height, width) {
popupWindow = window.open(url, name, 'location=no,scrollbars,width=' + width
+ ',height=' + height);
}
{code}
Using firefox debugger, I can see the value of url in popUp function is:
{code}
/ecommerce/control/detailImage?detail=/images/products/detail/volvo1.jpeg
{code}
If I modify webapp/ecommerce/catalog/detailImage.ftl to dump the
requestParameters (as below), the following is displayed in the page:
{code}
[detail=]
{code>
{code}
<html>
<body>
<center>
${requestParameters}
<#if requestParameters.detail?has_content>
<#assign detailImage =
Static["org.ofbiz.base.util.Base64"].base64Decode(requestParameters.detail)>
<img src="${detailImage}" border="0" width='500'>
<#else>
<script language="JavaScript" type="text/javascript">
<!-- //
//window.close();
// -->
</script>
</#if>
</center>
</body>
</html>
{code}
I though the encoding for a forward slash is {code}%2F{code}
was (Author: snowch):
The problem appears to be with the javascript function popUp:
{code}
function popUp(url, name, height, width) {
popupWindow = window.open(url, name, 'location=no,scrollbars,width=' + width
+ ',height=' + height);
}
{code}
Using firefox debugger, I can see the value of url in popUp function is:
{code}
/ecommerce/control/detailImage?detail=/images/products/detail/volvo1.jpeg
{code}
> popup window for image opens then closes immediately
> ----------------------------------------------------
>
> Key: OFBIZ-2805
> URL: https://issues.apache.org/jira/browse/OFBIZ-2805
> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/ecommerce
> Affects Versions: Release Branch 9.04
> Environment: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.13)
> Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13
> Reporter: chris snow
>
> In the product detail view, when I click on the image, a pop up window
> appears then immediately closes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.