I'm using Jquery tools overlay that allows me to load external pages - http://flowplayer.org/tools/demos/overlay/external.html
I've run into an issue in IE7 (works fine on IE8/chrome etc.)
When I click the that calls the overlay I'm sent to the actual external file rather than stay on the page and have an overlay that includes the external file.
Here's the jquery:
<script>
$(function() {
// if the function argument is given to overlay,
// it is assumed to be the onBeforeLoad event listener
$("a[rel]").overlay({
mask: {
color: '#000',
loadSpeed: 200,
opacity: 0.8,
},
onBeforeLoad: function() {
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
// load the page specified in the trigger
wrap.load(this.getTrigger().attr("href"));
}
});
});
$('.close').live('click', function() {
$("#overlay").fadeOut('slow', function() {
});
$("#exposeMask").fadeOut('slow', function() {
});
});
</script>
And here's the HTML:
<!-- overlayed element -->
<div id="overlay" class="apple_overlay">
<!-- the external content is loaded inside this tag -->
<div class="contentWrap"></div>
</div>
<a href="Overlay_Login.php" rel="#overlay" class='button button_small_grey'>Login</a>
If you hadn't already guessed my knowledge with jquery isn't great. So if anyone could shed some light on the problem it'd be much appreciated.