AJAX modal popup IE7

22 11 2013

There is a known issue with Lightboxes on IE& when using Master Pages
http://forums.asp.net/t/1848367.aspx?AJAX%20modal%20popup%20IE7

In this case, the copyright block shows through.
The solution is to call a javaScript function from the LinkButton that opens the Lightbox:

Limitations & Exclusions (L&E) for Critical Illness

then call the same function from the control that closes the Lightbox:

Here is the javaScript function:

<script type=”text/javascript”>

function hideCopywright(show) {

var copyfoot = document.getElementById(“copyright”);

if (copyfoot != null) {

if (show) {

                        copyfoot.style.display = “none”;  }

else

                   { copyfoot.style.display = “block”; }

//alert(copyfoot.style.display);

return true;

}

else {

//  alert(“Not Found”);

             return false;  }

}

</script>