Saved webpage image won't popup
When clicking on the image within the description, it will popup and display a larger image. When the page is saved with either firefox 14.0.1 or chrome 21.0.1180.79 m, both the saved page image won't popup with firefox but works fine on chrome.
Note: You have to open one of the images first before saving the webpage so that the html code will be saved.
Any windows phone app webpage will do.
http://www.windowsphone.com/en-US/apps/2cb7cda1%2D17d8%2Ddf11%2Da844%2D00237de2db9e
Edited by cor-el (moderator) to fix link broken by forum software glitch.
Edited again to copy fixed link to "URL of affected site" field (in More system details...). aw
Modified
All Replies (7)
The "lightbox"-style slideshow script is loaded from ajax.aspnetcdn.com instead of directly off of www.windowsphone.com. Maybe that's the problem? Maybe Firefox didn't save the script? Or maybe it's related to extra security restrictions Firefox places on local html and script files compared with sites on web servers.
The scripts are saved properly and the same as the original. That is why it can open in chrome. Both chrome and firefox saved version opens in chrome so it is probably firefox related. Narrowed it down to this script: http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js Maybe it has something to do with how firefox renders scripts?
I think it could be related to the mixture of servers used by the Microsoft site. When I save a page from my travel blog (http://www.jeffersonscher.com/ttw/201.../first-snorkel-2/) which uses a similar script (jQuery 1.7.2 + Slimbox), the slideshow works as expected. Both of those script files are on the same server as the page and the images. Doesn't help you immediately, but might help someone track down what's going on.
Modified
Yes, it is definitely a problem with the script.
If I save that page in Google Chrome and I open it in Firefox the it still doesn't work, but as least the images open in a new tab with JavaScript disabled.
The saved page also misses the scroll buttons in GC, but the pop-up works.
The Net log in the Web Console shows that Firefox is trying to retrieve the images via the internet and not a local file path although the images are saved, but is using a completely messed up URL that fails and thus nothing happens.
@jscher2000 Definitely not server related. Chrome can open them fine. Yup, hopefully someone can find out what's going on.
@cor-el Both saved page from Firefox and chrome yields the same results, won't open in Firefox, opens in chrome. That's why I suspect it has to do with how firefox renders these scripts and not with the html or other things. The scroll and close buttons are unrelated to the popup, they are actually part of marketplace.png, if you save it and point marketplace.css to the right place they will show up fine :)
The popup used these scripts:
- http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js
- http://www.windowsphone.com/Scripts/marketplace.js
- http://www.windowsphone.com/scripts/s_code.js
- http://www.windowsphone.com/Scripts/appdetails.js
If any of them are removed from the saved webpage folder, the clicking results in the opening of the image in the current window.
On another matter, I noticed that IE and chrome saves the url in the saved webpage. It would be nice if someone send a request that Firefox do the same. The html: < !-- saved from url=http://www.windowsphone.com/ -->
Modified
Yes, but if I load the page as saved by GC then Firefox can show the images in another tab if JavaScript is disabled, so GC does a better job to modify the source of the images to a local link and Firefox keeps a web based (hover) link although the images are saved.
That script definitely make the links not work in Firefox.
The status pop-up on hover shows a correct link, but clicking the image gives a completely different link that fails.
GC may be disabling that onclick event or modifies it in such a way that it works more or less.
Yup, the web console shows the url that seems to include even the add-ons installed in firefox. Looks like firefox adds everything that the script generates into the url.
Chrome renders scripts well, as shown in various browser tests. It probably did not disable the scripts as the mouse over link points to the image originally in the html while the popup image is loaded from another link, which is at the end of the saved page. That link is the one that the script brings up, and since it displays even when I point to other images, the script probably runs fine in Chrome. Hopefully someone can find a fix.