0

Facebook share popup not showing (in IE)

I just finished writing the Zagat Survey Photo Contest, and the last thing I had to deal with was the facebook share button seemed to be broken, well no in real browsers just in IE, to make an annoying story short – I found out the share popup was actually working it was just hiding BEHIND the main flash component, which for performance reasons was set to wmode=”window”

So remember,  IE+FLASH+FB:SHARE = display:’popup’

The full share code:

var share = {
 
	method: 'stream.publish',
	display:'popup',
	message: 'Upload a photo for your chance to win a trip for two to Wynn Las Vegas!',
	attachment: {
		name: 'Zagat Survey',
		caption: 'Zagat Survey Photo Contest',
		description: (
			'Take a picture of a anything that says Zagat, easily upload it by visiting zagatphotos.com and you could win The Ultimate Getaway for two at Wynn Las Vegas!'
		),
		href: 'http://www.zagatphotos.com',
		media:[{type: 'image', src: 'http://www.zagatphotos.com/images/logo.jpg', href: "http://www.zagatphotos.com"}]
	},
	action_links: [
		{ text: 'Join contest', href: 'http://www.zagatphotos.com/' }
	],
	user_message_prompt: 'win a trip for two to Wynn Las Vegas!'
};
 
	FB.ui(share, function(response) {console.log(response)});
0

Nextgen gallery thickbox not working in IE

Can it be something is not working in IE8? oh my…

I wanted a fast gallery for some blog I’m putting up, I was like a little bunny from outer space, thinking only good thoughts and believing the world is a perfect place, until I checked my work in Internet Explorer (papapapaaaa.. - “scary sound“). The problem was when clicking a thumbnail in the gallery – a thickbox with the full image is suppose to come up, this works in browsers but not in IE.

I looked to the left, to the right and then in google, all I could find was some fix for chrome that mr. Alex Rabe has already implemented into his app. how annnnoying!

I’ve found out it has something to do with the way internet explorer is dealing with the “onload” event for images.
“somthing to do” in combination with IE is enough for me to look for a workaround and not a permanent fix,  so if you’re having this  problem (which is probably why you’re here)  goto:

plugins>nextgen-gallery>shutter>shutter-reloaded.js

change these lines (130-133):

D.innerHTML = '
 
<div id="shWrap"><img id="shTopImg" title="' + t.msgClose + '" onclick="shutterReloaded.hideShutter();" alt="" />' + NavBar +'</div>
 
 
';
 
//Google Chrome 4.0.249.78 bug for onload attribute
document.getElementById('shTopImg').src = shutterLinks[ln].link;

to this:

D.innerHTML = '
 
<div id="shWrap"><img id="shTopImg" title="' + t.msgClose + '" onclick="shutterReloaded.hideShutter();" src="'+shutterLinks[ln].link+'" alt="" />' + NavBar +'</div>
 
 
';
 
document.getElementById('shTopImg').onload = function(){
    shutterReloaded.showImg();
}
setTimeout(function(){document.getElementById('shTopImg').src = shutterLinks[ln].link},250);

if this doesn’t work – then you should probably do the usual  run-> format C:/