PDA

View Full Version : Menu Tree is not displaying at all in IFRAME



0581241
12-11-2004, 04:31 AM
We have an existing Page, with this Cascading Menu, using a Menu Tree PHP script. I've included it below (removed 'menu4 array' lines due to length). When this page renders on its own, all is fine, but we need to IFRAME this for insertion into a portal. Once we reference the page within the IFRAME, the page renders but without the menu tree. Is this not supported in IFRAME? Is there some coding that could accommodate the rendering? HELP!!!!

<script type='text/javascript'>
/***********************************************************************************
* (c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
* For info write to menus@burmees.nl *
* You may remove all comments for faster loading *
***********************************************************************************/

var NoOffFirstLineMenus = 4;
var LowBgColor = '#286db6';
var LowSubBgColor = '#286db6';
var HighBgColor = '#a7b3de';
var HighSubBgColor = '#a7b3de';
var FontLowColor = 'white';
var FontSubLowColor = 'white';
var FontHighColor = '#000000';
var FontSubHighColor = '#000000';
var BorderColor = '#003f76';
var BorderSubColor = '#003f76';
var BorderWidth = 1;
var BorderBtwnElmnts = 1;
var FontFamily = 'arial,comic sans ms,technical'
var FontSize = 9;
var FontBold = 1;
var FontItalic = 0;
var MenuTextCentered = 'left';
var MenuCentered = 'left';
var MenuVerticalCentered = 'top';
var ChildOverlap = 0.2;
var ChildVerticalOverlap = 0.2;
var StartTop = 100;
var StartLeft = 0;
var VerCorrect = 0;
var HorCorrect = 0;
var LeftPaddng = 3;
var TopPaddng = 7;
var FirstLineHorizontal = 0;
var MenuFramesVertical = 1;
var DissapearDelay = 1000;
var TakeOverBgColor = 1;
var FirstLineFrame = 'navig';
var SecLineFrame = 'space';
var DocTargetFrame = 'space';
var TargetLoc = '';
var HideTop = 0;
var MenuWrap = 1;
var RightToLeft = 0;
var UnfoldsOnClick = 0;
var WebMasterCheck = 0;
var ShowArrow = 1;
var KeepHilite = 1;
var Arrws=['graphics/tri.gif',5,10,'graphics/tridown.gif',10,5,'graphics/trileft.gif',5,10]; // Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){
if(ScLoc.HideArray){
var H_A,H_Al,H_El,i;
H_A=ScLoc.HideArray;
H_Al=H_A.length;
for (i=0;i<H_Al;i++){
H_El=(Nav4)?ScLoc.document.layers[H_A[i]]:(DomYes)?ScLoc.document.getElementById(H_A[i]).style:ScLoc.document.all[H_A[i]].style;
H_El.visibility=M_Hide
}
}
}

function AfterCloseAll(){
if(ScLoc.HideArray){
var H_A,H_Al,H_El,i;
H_A=ScLoc.HideArray;
H_Al=H_A.length;
for (i=0;i<H_Al;i++){
H_El=(Nav4)?ScLoc.document.layers[H_A[i]]:(DomYes)?ScLoc.document.getElementById(H_A[i]).style:ScLoc.document.all[H_A[i]].style;
H_El.visibility=M_Show
}
}
}


// Menu tree
// MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
// For rollover images set 'Text to show' to: 'rollover:Image1.jpg:Image2.jpg'
Menu1=new Array("Freq. Reported Issues", "","",9,30,150);
Menu1_7=new Array("Store Support Website", "menu_search.php?catNumber=115","",0,30,175);
Menu2_1_8=new Array("Traffic", "menu_search.php?catNumber=112","",0,30,175);
Menu2_1_7=new Array("Timeclock", "menu_search.php?catNumber=111","",0,30,175);
Menu2_1_1_2=new Array("APC - Backup Battery", "menu_search.php?catNumber=110","",0,30,175);
Menu2_1_3=new Array("Networking Equipment", "menu_search.php?catNumber=109","",0,30,175);
Menu2_1_5=new Array("Reticketers", "menu_search.php?catNumber=108","",0,30,175);
Menu2_1_2=new Array("LRT / LDT & Equipment", "menu_search.php?catNumber=107","",0,30,175);
Menu1_6_2=new Array("Staffworks - ISS", "menu_search.php?catNumber=106","",0,30,200);
Menu1_6_1=new Array("Staffworks - 4690 Controller", "menu_search.php?catNumber=105","",0,30,200);
Menu2_1_1_7=new Array("Traffic Equipment", "menu_search.php?catNumber=104","",0,30,175);
Menu2_1_1_6=new Array("MCCI Box / Debit Canada", "menu_search.php?catNumber=103","",0,30,175);
Menu2_1_1_5=new Array("Switch Box", "menu_search.php?catNumber=102","",0,30,175);
Menu2_1_1_3=new Array("Artic Brick", "menu_search.php?catNumber=101","",0,30,175);
Menu1_2=new Array("Controller (4690)", "menu_search.php?catNumber=96","",0,30,175);
Menu1_3=new Array("ISS", "menu_search.php?catNumber=95","",0,30,175);
Menu1_8=new Array("Touch Screen Registers", "","",2,30,175);
Menu1_1=new Array("Back Office Printer", "menu_search.php?catNumber=93","",0,30,175);
Menu1_5=new Array("Outlook Web Access", "menu_search.php?catNumber=92","",0,30,175);
Menu1_9=new Array("Traffic", "menu_search.php?catNumber=91","",0,30,175);
Menu1_6=new Array("StaffWorks", "","",2,30,175);
Menu1_4=new Array("LRT", "menu_search.php?catNumber=89","",0,30,175);
Menu2_1_4_2=new Array("Scanners", "menu_search.php?catNumber=88","",0,30,150);
Menu2_1=new Array("Equipment Pictures", "","",8,30,150);
Menu2_2=new Array("Scanner Barcodes", "menu_search.php?catNumber=83","",0,30,150);
Menu2=new Array("Reference Material", "","",2,30,150);
Menu2_1_1=new Array("Back Office", "","",7,30,175);
Menu2_1_4=new Array("Registers", "","",2,30,175);
Menu2_1_6=new Array("Telephones", "menu_search.php?catNumber=87","",0,30,175);
Menu3=new Array("Links", "","",1,30,150);
Menu3_1=new Array("Feedback", "feedback_form.php","",0,30,175);
Menu2_1_4_1=new Array("Register Hardware", "menu_search.php?catNumber=125","",0,30,150);
Menu1_8_1_2=new Array("Returns", "menu_search.php?catNumber=128","",0,30,150);
Menu1_8_1_3=new Array("Miscellaneous", "menu_search.php?catNumber=129","",0,30,150);
Menu1_8_1_1=new Array("Tenders", "menu_search.php?catNumber=127","",0,30,150);
Menu1_8_1=new Array("Cashier", "","",3,30,150);
Menu2_1_1_1=new Array("4690 / ISS", "menu_search.php?catNumber=123","",0,30,175);
Menu1_8_2=new Array("Manager", "","",3,30,150);
Menu1_8_2_1=new Array("Closing", "menu_search.php?catNumber=131","",0,30,150);
Menu1_8_2_2=new Array("Administration", "menu_search.php?catNumber=132","",0,30,150);
Menu1_8_2_3=new Array("Miscellaneous", "menu_search.php?catNumber=133","",0,30,150);
Menu2_1_1_4=new Array("Printer", "menu_search.php?catNumber=134","",0,30,175);
Menu4=new Array("SSRG", "","",8,30,150);
Menu4_3=new Array("4690 Controller", "","",4,30,225);
Menu4_3_1=new Array("Daily Operations", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-4690_Controller_Daily_Operations.pdf/$file/it-4690_Controller_Daily_Operations.pdf','NWin');window['NewWin'].focus()","",0,30,150);
Menu4_3_2=new Array("Inventory Management", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-4690_Controller_Inventory_Management.pdf/$file/it-4690_Controller_Inventory_Management.pdf','NWin');window['NewWin'].focus()","",0,30,150);
Menu4_3_3=new Array("Personnel Management", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-4690_Controller_Personnel_Management.pdf/$file/it-4690_Controller_Personnel_Management.pdf','NWin');window['NewWin'].focus()","",0,30,150);
Menu4_3_4=new Array("Procedures and Reports", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-4690_Controller_Procedures_and_Reports.pdf/$file/it-4690_Controller_Procedures_and_Reports.pdf','NWin');window['NewWin'].focus()","",0,30,150);
Menu4_4=new Array("StoreNet Overview", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-StoreNet.pdf/$file/it-StoreNet.pdf','NWin');window['NewWin'].focus()","",0,30,225);
Menu4_5=new Array("StaffWorks", "","",2,30,225);
Menu4_5_1=new Array("StaffWorks Reference Guide-Windows", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-Staffworks_Windows_Reference_Guide.pdf/$file/it-Staffworks_Windows_Reference_Guide.pdf','NWin');window['NewWin'].focus()","",0,30,250);
Menu4_5_2=new Array("StaffWorks Reference Guide-DOS", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-StaffWorks_DOS_Reference_Guide.pdf/$file/it-StaffWorks_DOS_Reference_Guide.pdf','NWin');window['NewWin'].focus()","",0,30,150);
Menu4_6=new Array("Peripherals and Hardware", "","",8,30,225);
Menu4_6_1=new Array("Store Hardware", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-Peripherals_Hardware_Overview.pdf/$file/it-Peripherals_Hardware_Overview.pdf','NWin');window['NewWin'].focus()","",0,30,200);
Menu4_6_2=new Array("Laser Printers", "javascript:NewWin=window.open('http://websb.gap.com/gapweb/miscfiles.nsf/pdf/it-Peripherals_Hardware_Laser_Printers.pdf/$file/it-Peripherals_Hardware_Laser_Printers.pdf','NWin');window['NewWin'].focus()","",0,30,200);

</script>