adddeveloper
Programmer
I'm trying to set the top and left properties of my popup calendar depening on which button I click, but can't get it to work with anything I try.
Here's what's in my function:
function PopupPicker(ctl, l, t)
{
var PopupWindow = null;
//settings='width'+ w + ', height='+ h ', location=no, directories=no, menubar=no, toolbar=no, status=no, scrollbars=no, resizable=no, dependant=no';
PopupWindow=window.open('DatePicker.aspx?Ctl=' + ctl, 'DatePicker', 'left='+l,top='+t');
PopupWindow.focus();
}
Here's my image code:
<img src="images/Calendar.gif" onclick="PopupPicker('StartDate', 250, 250);
Here's what's in my function:
function PopupPicker(ctl, l, t)
{
var PopupWindow = null;
//settings='width'+ w + ', height='+ h ', location=no, directories=no, menubar=no, toolbar=no, status=no, scrollbars=no, resizable=no, dependant=no';
PopupWindow=window.open('DatePicker.aspx?Ctl=' + ctl, 'DatePicker', 'left='+l,top='+t');
PopupWindow.focus();
}
Here's my image code:
<img src="images/Calendar.gif" onclick="PopupPicker('StartDate', 250, 250);