I've been trying to figure out whats going on with this popup script...
http://bekdesigns.com/platinum/index_calendar.php
Click on "Disco Night"
The popup will open in a new window, but also will open in the frame as well...
Not a clue why its doing that. It should just be opening in the popup and nothing else. Below is the script for the popup:
HTML Code:
var newWindow
function openPic (url,name,wide,high) {
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
function closeWindow() {
if (window.newWindow && window.newWindow.open && !window.newWindow.closed)
window.newWindow.open();
}
function pickColor(color) {
if (ColorPicker_targetInput==null) {
alert("Target Input is null, which means you either didn't use the 'select' function or you have no defined your own 'pickColor' function to handle the picked color!");
return;
}
ColorPicker_targetInput.value = color;
document.cate.name.style.color = document.cate.color.value;
document.cate.name.style.background = document.cate.background.value;
}
var topcal = new CalendarPopup("testdiv2");
var cp = new ColorPicker();
Any help to fixing this would be greatful!
-Eric