www.middlesexccl.com
If you visit the above link and click on one of the buttons, e.g.
League Administration, a the requested page should open in a new
window. On my test set-up and when I view the live site this happend
without error. However for some people when they click on the same
button they also get a new Team window, with an ASP error because no
team has been selected.
If a team is selected from the drop down that team's page should open
in a new window, it does for me without issue, and I have not heard of
anyone having any problems.
The javascript I use to open new centerd windows is:
function OpenWin(WinName,width,height)
{
var left = 0
var top = 0;
if (window.innerWidth != undefined)
{
left = (window.innerWidth/2) - width/2;
top = (window.innerHeight/2) - (height+15)/2;
}
else if (window.screen)
{
left = (window.screen.availWidth/2) - width/2;
top = (window.screen.availHeight/2) - (height+15)/2;
}
var options = ",width=" + width + ",height=" + (height+15) + ",left="
+ left + ",top=" + top;
window.open("", WinName ,"toolbar=0,scrollbars=0" + options);
var a = window.setTimeout("document.SelectTeam.submit();", 500);
}
Can anyone look at the saource code for the above page and tell me why
the team window is sometimes opening when a button is clicked?