Using V8 Image Upload with more than one domain causes problems as the upload popup page
may be loaded from a different domain than the product page.
The upload will work but the popup won't close and the updated image will not be
displayed on the product page.
This is due to browser security preventing cross-site scripting.
To fix this look in your Overall Layout used for products (should be just above the </head> tag) for:
Code: Select all
<!-- START Image Upload Support -->
<SCRIPT LANGUAGE="JavaScript" SRC="imageuploadsupport.js" TYPE="text/javascript"></SCRIPT>
<script type="text/javascript">
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e">
var basehref = '<actinic:variable encoding="perl" name="CatalogURL" selectable="false" />';
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e">
var basehref = '<actinic:variable encoding="perl" name="SSLCatalogURL" selectable="false" />';
</actinic:block>
</script>
<!-- END Image Upload Support -->
Code: Select all
<!-- START Image Upload Support -->
<SCRIPT LANGUAGE="JavaScript" SRC="imageuploadsupport.js" TYPE="text/javascript"></SCRIPT>
<script type="text/javascript">
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e">
var basehref = '<actinic:variable encoding="perl" name="CatalogURL" selectable="false" />';
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e">
var basehref = '<actinic:variable encoding="perl" name="SSLCatalogURL" selectable="false" />';
</actinic:block>
basehref = basehref.replace(/(\w+):\/\/([\w.]+)\//, "$1://" + location.hostname + "/");
</script>
<!-- END Image Upload Support -->