I added something called Varal Image Switcher to a client's web site several weeks ago. Clicking on the main image displays the next image. Here is the page:


Last week, I added this script from Add This:

    <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a href="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4c92ede4480832db" class="addthis_button_compact">Share</a>
<span class="addthis_separator">|</span>
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4c92ede4480832db"></script>
<!-- AddThis Button END -->

Now, when I refresh the Old Man Mountain page, the images are shown in order down the page and clicking on one of them does not switch to the next. In other words, they do not appear to be stacked one above the other. On my machine, the page displays correctly when the page first loads, and only shows all of the images when the page is refreshed. I don't know if this is because the page is cached, or it that is just the behavior, no matter what.

This behavior occurs on a Mac running Safari 5.0.2. It does not occur on this machine in Firefox. The bad behavior only seems to happen with the AddThis code is on the page.

Here is the image switcher web site if you are unfamiliar with it:


I'm just a lowly graphic designer turning web designer. Any idea what is going on?

3 answers

danwellman 5600

It's not working on Safari 4 on OSX either.

I had the same problem the first time I viewed the page, not on refresh.

However, when I did refresh the page I immediately get a JS error stating:

Unsafe JavaScript attempt to access frame with URL https://www.oldmanmountain.com from frame with URL https://s7.addthis.com/static/[rest of excessive URL here]. Domains, protocols and ports must match

So it appears to be because your page is using HTTPS.

All you need to do to fix is to change the URL for the addThis code so that it also starts with https, as directed on this page

Answered almost 9 years ago by danwellman


I think it is more than the https, though. I should have posted this link, instead:


That's the main page, without the "s" in the address. Same problem there...

Answered almost 9 years ago by Bob Faulkner
danwellman 5600

Weird. This SO post details a similar problem, but with different sites.

There is also this post on the addThis forum discussing the same error, which wasn't resolved as of June of this year...

Could be a bug in addThis...or someone on the discussion mentioned a bug in Safari.

The last post on the addThis discussion links to a different API that doesn't exhibit this behaviour...

Answered almost 9 years ago by danwellman