Problem is, it's causing 1 second flicker during transition or opening of popup which is a basically another aspx page. It's happening only in firefox 3.6.3 and all the versions of firefox. I'm using nyromodal 1.6.1. Working fine in IE(All Versions) and Chrome.
Below is the local file js code calling helper.debug.js function:
function TwitterSucceeded(result)
{
count = result.length;
var m_BrowserName = navigator.appName;
var m_BrowserVersion = navigator.appVersion;
if (count==0)
{return }
if ((count == 1) || (m_BrowserName == "Microsoft Internet Explorer" && m_BrowserVersion.indexOf("MSIE 6.0") > 0)) {
window.location.href = result[0].Url
}
else {
var isSEOEnable = document.getElementById("<%=IsSEOEnable_FollwAdidas.ClientID%>").value;
if (isSEOEnable != null && isSEOEnable == "False") {
var url = '../ContentPage/FollowUsTwitter.aspx'
}
else {
var url = '/ContentPage/FollowUsTwitter.aspx'
}
openModalByUrlIFrameCount(url, count)
}
}
Below is the helper.debug.js code of nyromodal 1.6.1:
function openModalByUrlIFrameCount(url, count) {
// jQuery.fx.off = true; //To remove flashy open & close
var width = 0;
var height = 0;
if (count <= 3) {
width = 1005;
height = 366;
}
else if (count > 3 && count <= 6) {
width = 1005;
height = 666;
}
else {
width = 1005;
height = 966;
}
$.nyroModalManual({
url: url,
forceType: 'iframe',
autoSizable: false,
resizable: false,
windowResize: false,
width: width,
height: height,
cssOpt: { bg: { position: 'fixed'} },
endShowContent: function(elts, settings) {
$('#nyroModalFull').css("position", "absolute");
},
showTransition: noAnimationShowTransition,
showContent: noAnimationShowContent,
hideContent: noAnimationHideContent
});
// Try 2:
$('#nyroModalFull').css("position", "absolute");
var windowHeight = $(window).height();
var windowWidth = $(window).width();
var popupHeigth = height;
var popupWidth = width;
var positionTop = 300;
var positionLeft = 20;
if (windowHeight > popupHeigth) {
positionTop = 0;
}
else {
positionTop = 200;
}
$('#nyroModalFull').css("top", $(window).scrollTop() + positionTop);
}