menuitem_adding launch form in JS function

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
sticcino
User
Posts: 1043

menuitem_adding launch form in JS function

Post by sticcino »

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.


arbei
User
Posts: 9384

Post by arbei »


Post Reply