an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > DotShoppingCart Suite > Bug on Enlarge the product image
Last Post 6/23/2008 3:08:39 PM By lukezy. 8 replies.
6/23/2008 2:02:56 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Bug on Enlarge the product image

Hi, Luke,

When I clicked "enlarge" product image, I got this javascript error message as follow: And, I can not see the enlarged image page.

"Object Expected".

The page is /Product/[my product].aspx . [my product] is my product on my store.

Thanks,

Louis

6/23/2008 2:13:48 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Bug on Enlarge the product image

Do you have a link? Or can you debug the javascript? The out of box software doesn't seem to have this issue.

DotShoppingCart Staff
6/23/2008 2:21:25 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Bug on Enlarge the product image

please try this link:

www.myinnergie.com/Store/Product/mCube90.aspx

Click "enlarge" or click the image.

Louis

6/23/2008 2:39:19 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Bug on Enlarge the product image

Actually it is a bug.

Add the following lines to the JS\DSCCommon.js file.

function OpenResizablePopupWindow(url, width, height) {

    window.open(url, '_blank', 'toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=yes, scrollbars=yes, resizable=yes, width=' + width + ', height=' + height);
}
DotShoppingCart Staff
6/23/2008 2:47:40 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Bug on Enlarge the product image

but in the product page, OpenResizablePopupWindow is not called at all. It did not solve this problem.

6/23/2008 2:55:09 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Bug on Enlarge the product image

Open the source of the product page and you will see where it gets called.

DotShoppingCart Staff
6/23/2008 2:59:16 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Bug on Enlarge the product image

yes, I just found it, but it still did not work. The error message is same.

6/23/2008 3:01:39 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Bug on Enlarge the product image

do you think this is correct or not? it in the Javascript function.

<font color="#0000ff" size="2">

var

currentProductImageId = <%=Product.DefaultImageId ?? 0 %>;

6/23/2008 3:08:39 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Bug on Enlarge the product image

Did you change http://www.myinnergie.com/JS/DSCCommon.js? It still looks old to me. 

DotShoppingCart Staff