Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Why so many browser windows in LAMS 2?


 
Search: 

6: Re: Re: Re: Re: Why so many browser windows in LAMS 2?
In response to 4 09/20/06 06:40 AM
[ Reply | Forward ]
In 1.5.0.7 (I'm sure the version difference doesn't matter) I don't get a new window when I use the following.

By the way, it would be nice if somehow when you control-click you get a new tab (like FireFox and IE7) and otherwise you re-use the current window/tab. (Assuming the learning designer wants this.)

Best,

-ken

function openLearner( lessonId )
{
if(isMac)
{
learnWin = window.open('home.do?method=learner&lessonID='+lessonId,'lWindow','width=796,height=570,resizable,status=yes');
}
else
{
// updated by Ken Kahn on 180906
// if(learnWin && learnWin.open && !learnWin.closed )
// {
// learnWin.location = 'home.do?method=learner&lessonID='+lessonId;
// learnWin.focus();
document.location = 'home.do?method=learner&lessonID='+lessonId;
// }
// else
// {
// learnWin = window.open('home.do?method=learner&lessonID='+lessonId,'lWindow','width=796,height=570,resizable,status=yes');
// }
}
}

Posted by Ken Kahn

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum