Index: lams_common/src/flash/org/lamsfoundation/lams/common/util/JsPopup.as =================================================================== diff -u -rdadb445267338738405db9f7cdf6c42617ba2940 -rea5d7f03166f4e4b4b8dc60ff70b3d9c1948aac4 --- lams_common/src/flash/org/lamsfoundation/lams/common/util/JsPopup.as (.../JsPopup.as) (revision dadb445267338738405db9f7cdf6c42617ba2940) +++ lams_common/src/flash/org/lamsfoundation/lams/common/util/JsPopup.as (.../JsPopup.as) (revision ea5d7f03166f4e4b4b8dc60ff70b3d9c1948aac4) @@ -77,12 +77,23 @@ * @param scrollbar true or false, treu for having a scroll bar and false for not having onw. * @return returns nothing. */ - public function launchPopupWindow(url:String, windowTitle:String, height:Number, width:Number, resize:Boolean, status:Boolean, scrollbar:Boolean, menubar:Boolean):Void{ + public function launchPopupWindow(url:String, windowTitle:String, height:Number, width:Number, resize:Boolean, status:Boolean, scrollbar:Boolean, menubar:Boolean, toolbar:Boolean):Void{ //(args, title, h, w, resize, status, scrollbar) //getURL(url,"_blank"); - //getURL("javascript:openPopUp('"+url+"', Learner Preview, 600, 800, true, true, false, false);"); - getURL("javascript:openPreview('"+url+"', '"+windowTitle+"');"); + + // open popup window using javascript method in hosting jsp + getURL("javascript:openPopUp('"+url+"', '" + windowTitle + "', '" + height + "', '" + width + "', '" + getValue(resize) + "', '" + getValue(status) + "', '" + getValue(scrollbar) + "', '" + getValue(menubar) + "', '" + getValue(toolbar) + "');"); + + //getURL("javascript:openPreview('"+url+"', '"+windowTitle+"');"); //openPreview } + private function getValue(option:Boolean):String{ + if(option){ + return "yes"; + } else { + return "no"; + } + } + } \ No newline at end of file