Have a Js function that opens a window for a calendar, trying to incorporate into the menu system but if i add teh code to the target-url it prints it to the screen
function MenuItem_Adding($item) {
if($item->Id == 1672) {
$item->Url = "<script>openCalendarWin('$item->Url')</script>";
}
// Return FALSE if menu item not allowed
return TRUE;
}
anyway to launch into the separate window, the $item-Target = _blank works with the item-<Url string, but if we can open it with our Js function would be preferred.