Post by shawn » Thu Sep 03, 2009 10:18 am

Hey guys, I met another problem, the enlarge function of product picture does not work now, when I click the picture, the ajax "pop-up" window show the index page not the picture in cache directory.

Watch the requests of the page sent, found there is a variable named "random" follow the picture name:

aaa-500x500.jpg&random=1251943903622

I think this value cause the picture address unavailable, so thickbox redirected to index page. Does anyone have any idea about this random variable? Where did it come from? And how to remove it?

Thanks!!!

Newbie

Posts

Joined
Sat Aug 29, 2009 7:29 am

Post by shawn » Thu Sep 03, 2009 10:56 am

Problem Fixed!

In thinkbox.js line 234:

$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method

I don't know why it use "&", it does not work as a legal url when following a file, such as "abc.jpg&random=xxx", just change it into "?", it's all set!

Newbie

Posts

Joined
Sat Aug 29, 2009 7:29 am
Who is online

Users browsing this forum: No registered users and 11 guests