joehankin
Posts: 2
Joined: Wed Nov 18, 2009 10:57 am

Help with individual expanders

Hi,

Firstly, just want to congratulate the developers on this amazing plugin...

I am trying to impliment various types of expanders in my site but having one small issue.

1. A picture viewer which has a unique overlay.
2. Basic iFrame with external content such as contact form, and product size info.
3. The same iFrame, but i would like to add: window.location.reload(); in to the hs.close tag, because people can add something from here to the shopping cart, which won't show unless the parent window is reloaded.

I can't find a way to specify that only this particualar expander has this option.

Can anyone help?
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Help with individual expanders

Thanks,

1) See http://highslide.com/ref/hs.registerOverlay => thumbnailId.

2) You can put any HTML file, internal or external, in a Highslide iframe.

3)
a) Add an id to the opener anchor. <a href="iframe.html" id="reloaderiframe".....
b) Use highslide-full.js to allow Highslide events.
c) Add this code to a script tag in the head section, or to a separate .js file.

Code: Select all

hs.Expander.prototype.onAfterClose = function() {
	if (this.a.id == 'reloaderiframe') window.location.reload();
}
Torstein Hønsi
CTO, Founder
Highsoft
joehankin
Posts: 2
Joined: Wed Nov 18, 2009 10:57 am

Re: Help with individual expanders

Thank you so much...

that works perfectly!!

I have been trying for hours to get the reloader to work on just the one expander.
Whats more when I did get it working it would reload before the expander could shrink back, but this reloads afterwards now.

What a super star

thank you


Joe
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Help with individual expanders

You're welcome Joe!
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highslide Editor”