From: <no...@so...> - 2001-02-14 23:08:14
|
Bug #132422, was updated on 2001-Feb-14 15:08 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: wessto Assigned to : nobody Summary: Layers not showing up in netscape 6 Details: this works in ie and ns4, but layers and content don't show up in netscape 6. The following is the code I'm using... ##############BEGIN CODE####################### <html> <head> <title>title</title> <LINK href="style.css" rel="STYLESHEET" type="text/css"> <script language="Javascript" src="/javascript/dynapi/src/dynapi.js"></script> <script language="Javascript" src="/javascript/dynLayerHelper.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('/javascript/dynapi/src/lib'); DynAPI.include('dynapi.api.browser.js'); DynAPI.include('dynapi.api.dynlayer.js'); DynAPI.include('dynapi.api.dyndocument.js'); var mainColor = '#333333'; var titleColor = '#333333'; var borderColor = '#ffffff'; var navColor = '#330000'; var borderWidth = 1; var baseX = 5; var baseY = 5; var titleWidth = 750; var titleHeight = 52; var contentWidth = titleWidth - 200; var contentHeight = 580; var dbResult = 'text here'; var hNavHeight = 30; var vNavWidth = titleWidth - contentWidth; var vNavHeight = contentHeight - hNavHeight; var hNavFillerX = contentWidth + baseX; var vNavX = hNavFillerX; var contentY = baseY + hNavHeight + titleHeight - borderWidth; var hNavY = baseY + titleHeight - borderWidth; var vNavFillerX = vNavX - borderWidth; var vNavFillerY = contentY + vNavHeight; DynAPI.onLoad=function() { //border order = top,right,bottom,left makeLayerWithBorders('title',baseX,baseY,titleWidth,titleHeight,titleColor,borderWidth,borderColor,true,true,false,true); makeLayerWithBorders('hNav',baseX,hNavY,contentWidth,hNavHeight,navColor,borderWidth,borderColor,true,false,true,true); makeLayerWithBorders('hNavFiller',hNavFillerX,hNavY,vNavWidth,hNavHeight,navColor,borderWidth,borderColor,true,true,false,false); makeLayerWithBorders('vNav',vNavX,contentY,vNavWidth,vNavHeight,navColor,borderWidth,borderColor,false,true,true,false); makeLayerWithBorders('mainContent',baseX,contentY,contentWidth,contentHeight,mainColor,borderWidth,borderColor,false,true,true,true); makeLayerWithBorders('lastEdited',vNavFillerX,vNavFillerY,vNavWidth + borderWidth,contentHeight - vNavHeight,mainColor,borderWidth,borderColor,false,true,true,false); content = '<span class=title><b>title</b></span>'; title.setHTML(content); content = '<span class=hnav><a href="somesite">home</a> | <a href="?page=resume">resume</a> | <a href="?page=services">services</a> | <a href="?page=about">about</a></span>'; hNav.setHTML(content); //PAGE SELECTION mainContent.setHTML(dbResult); content = '<span class=last><b>rev:</b>02.14.01 22:58:06</span>'; lastEdited.setHTML(content); } </script> </head> <body> <!--- REQUIRED FOR NETSCAPE ---> <SCRIPT language="JavaScript"> height = contentHeight + hNavHeight + titleHeight; document.write('<img src="images/pixel.gif" width=1 height=' + height + ' border=0>'); </script> </body> </html> #############END CODE################# For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=132422&group_id=5757 |
From: <no...@so...> - 2001-02-15 17:58:49
|
Bug #132422, was updated on 2001-Feb-14 15:08 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: wessto Assigned to : nobody Summary: Layers not showing up in netscape 6 Details: this works in ie and ns4, but layers and content don't show up in netscape 6. The following is the code I'm using... ##############BEGIN CODE####################### <html> <head> <title>title</title> <LINK href="style.css" rel="STYLESHEET" type="text/css"> <script language="Javascript" src="/javascript/dynapi/src/dynapi.js"></script> <script language="Javascript" src="/javascript/dynLayerHelper.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('/javascript/dynapi/src/lib'); DynAPI.include('dynapi.api.browser.js'); DynAPI.include('dynapi.api.dynlayer.js'); DynAPI.include('dynapi.api.dyndocument.js'); var mainColor = '#333333'; var titleColor = '#333333'; var borderColor = '#ffffff'; var navColor = '#330000'; var borderWidth = 1; var baseX = 5; var baseY = 5; var titleWidth = 750; var titleHeight = 52; var contentWidth = titleWidth - 200; var contentHeight = 580; var dbResult = 'text here'; var hNavHeight = 30; var vNavWidth = titleWidth - contentWidth; var vNavHeight = contentHeight - hNavHeight; var hNavFillerX = contentWidth + baseX; var vNavX = hNavFillerX; var contentY = baseY + hNavHeight + titleHeight - borderWidth; var hNavY = baseY + titleHeight - borderWidth; var vNavFillerX = vNavX - borderWidth; var vNavFillerY = contentY + vNavHeight; DynAPI.onLoad=function() { //border order = top,right,bottom,left makeLayerWithBorders('title',baseX,baseY,titleWidth,titleHeight,titleColor,borderWidth,borderColor,true,true,false,true); makeLayerWithBorders('hNav',baseX,hNavY,contentWidth,hNavHeight,navColor,borderWidth,borderColor,true,false,true,true); makeLayerWithBorders('hNavFiller',hNavFillerX,hNavY,vNavWidth,hNavHeight,navColor,borderWidth,borderColor,true,true,false,false); makeLayerWithBorders('vNav',vNavX,contentY,vNavWidth,vNavHeight,navColor,borderWidth,borderColor,false,true,true,false); makeLayerWithBorders('mainContent',baseX,contentY,contentWidth,contentHeight,mainColor,borderWidth,borderColor,false,true,true,true); makeLayerWithBorders('lastEdited',vNavFillerX,vNavFillerY,vNavWidth + borderWidth,contentHeight - vNavHeight,mainColor,borderWidth,borderColor,false,true,true,false); content = '<span class=title><b>title</b></span>'; title.setHTML(content); content = '<span class=hnav><a href="somesite">home</a> | <a href="?page=resume">resume</a> | <a href="?page=services">services</a> | <a href="?page=about">about</a></span>'; hNav.setHTML(content); //PAGE SELECTION mainContent.setHTML(dbResult); content = '<span class=last><b>rev:</b>02.14.01 22:58:06</span>'; lastEdited.setHTML(content); } </script> </head> <body> <!--- REQUIRED FOR NETSCAPE ---> <SCRIPT language="JavaScript"> height = contentHeight + hNavHeight + titleHeight; document.write('<img src="images/pixel.gif" width=1 height=' + height + ' border=0>'); </script> </body> </html> #############END CODE################# Follow-Ups: Date: 2001-Feb-15 09:59 By: dcpascal Comment: Do you have an easier piece of code (without the extra stuff in your dynlayerhelper file etc) that also goes wrong. Code including personal add-ons can be hard to recreate. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=132422&group_id=5757 |
From: <no...@so...> - 2001-02-15 21:40:27
|
Bug #132422, was updated on 2001-Feb-14 15:08 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: wessto Assigned to : nobody Summary: Layers not showing up in netscape 6 Details: this works in ie and ns4, but layers and content don't show up in netscape 6. The following is the code I'm using... ##############BEGIN CODE####################### <html> <head> <title>title</title> <LINK href="style.css" rel="STYLESHEET" type="text/css"> <script language="Javascript" src="/javascript/dynapi/src/dynapi.js"></script> <script language="Javascript" src="/javascript/dynLayerHelper.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('/javascript/dynapi/src/lib'); DynAPI.include('dynapi.api.browser.js'); DynAPI.include('dynapi.api.dynlayer.js'); DynAPI.include('dynapi.api.dyndocument.js'); var mainColor = '#333333'; var titleColor = '#333333'; var borderColor = '#ffffff'; var navColor = '#330000'; var borderWidth = 1; var baseX = 5; var baseY = 5; var titleWidth = 750; var titleHeight = 52; var contentWidth = titleWidth - 200; var contentHeight = 580; var dbResult = 'text here'; var hNavHeight = 30; var vNavWidth = titleWidth - contentWidth; var vNavHeight = contentHeight - hNavHeight; var hNavFillerX = contentWidth + baseX; var vNavX = hNavFillerX; var contentY = baseY + hNavHeight + titleHeight - borderWidth; var hNavY = baseY + titleHeight - borderWidth; var vNavFillerX = vNavX - borderWidth; var vNavFillerY = contentY + vNavHeight; DynAPI.onLoad=function() { //border order = top,right,bottom,left makeLayerWithBorders('title',baseX,baseY,titleWidth,titleHeight,titleColor,borderWidth,borderColor,true,true,false,true); makeLayerWithBorders('hNav',baseX,hNavY,contentWidth,hNavHeight,navColor,borderWidth,borderColor,true,false,true,true); makeLayerWithBorders('hNavFiller',hNavFillerX,hNavY,vNavWidth,hNavHeight,navColor,borderWidth,borderColor,true,true,false,false); makeLayerWithBorders('vNav',vNavX,contentY,vNavWidth,vNavHeight,navColor,borderWidth,borderColor,false,true,true,false); makeLayerWithBorders('mainContent',baseX,contentY,contentWidth,contentHeight,mainColor,borderWidth,borderColor,false,true,true,true); makeLayerWithBorders('lastEdited',vNavFillerX,vNavFillerY,vNavWidth + borderWidth,contentHeight - vNavHeight,mainColor,borderWidth,borderColor,false,true,true,false); content = '<span class=title><b>title</b></span>'; title.setHTML(content); content = '<span class=hnav><a href="somesite">home</a> | <a href="?page=resume">resume</a> | <a href="?page=services">services</a> | <a href="?page=about">about</a></span>'; hNav.setHTML(content); //PAGE SELECTION mainContent.setHTML(dbResult); content = '<span class=last><b>rev:</b>02.14.01 22:58:06</span>'; lastEdited.setHTML(content); } </script> </head> <body> <!--- REQUIRED FOR NETSCAPE ---> <SCRIPT language="JavaScript"> height = contentHeight + hNavHeight + titleHeight; document.write('<img src="images/pixel.gif" width=1 height=' + height + ' border=0>'); </script> </body> </html> #############END CODE################# Follow-Ups: Date: 2001-Feb-15 13:41 By: wessto Comment: I use dynlayerhelper.js to add borders to my layers. Nothing special is done. Here is the complete code for dynlayerhelper.js: #######BEGIN############# function makeLayerWithBorders(name,xpos,ypos,width,height,color,borderWidth,borderColor,tBorder,rBorder,bBorder,lBorder) { eval( name + " = new DynLayer(null," + xpos + "," + ypos + "," + width + "," + height + ",'" + color + "');"); eval( "DynAPI.document.addChild(" + name + ");"); if(tBorder) { eval( name + "_tBorder = new DynLayer(null," + xpos + "," + ypos + "," + width + "," + borderWidth + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_tBorder);"); } if(rBorder) { var newX = xpos + width - borderWidth; eval( name + "_rBorder = new DynLayer(null," + newX + "," + ypos + "," + borderWidth + "," + height + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_rBorder);"); } if(bBorder) { var newY = ypos + height - borderWidth; eval( name + "_bBorder = new DynLayer(null," + xpos + "," + newY + "," + width + "," + borderWidth + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_bBorder);"); } if(lBorder) { eval( name + "_lBorder = new DynLayer(null," + xpos + "," + ypos + "," + borderWidth + "," + height + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_lBorder);"); } } #######END#######3 ------------------------------------------------------- Date: 2001-Feb-15 09:59 By: dcpascal Comment: Do you have an easier piece of code (without the extra stuff in your dynlayerhelper file etc) that also goes wrong. Code including personal add-ons can be hard to recreate. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=132422&group_id=5757 |
From: <no...@so...> - 2001-02-17 14:08:21
|
Bug #132422, was updated on 2001-Feb-14 15:08 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Browser-Specific Issue Status: Closed Resolution: Invalid Bug Group: None Priority: 5 Submitted by: wessto Assigned to : nobody Summary: Layers not showing up in netscape 6 Details: this works in ie and ns4, but layers and content don't show up in netscape 6. The following is the code I'm using... ##############BEGIN CODE####################### <html> <head> <title>title</title> <LINK href="style.css" rel="STYLESHEET" type="text/css"> <script language="Javascript" src="/javascript/dynapi/src/dynapi.js"></script> <script language="Javascript" src="/javascript/dynLayerHelper.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('/javascript/dynapi/src/lib'); DynAPI.include('dynapi.api.browser.js'); DynAPI.include('dynapi.api.dynlayer.js'); DynAPI.include('dynapi.api.dyndocument.js'); var mainColor = '#333333'; var titleColor = '#333333'; var borderColor = '#ffffff'; var navColor = '#330000'; var borderWidth = 1; var baseX = 5; var baseY = 5; var titleWidth = 750; var titleHeight = 52; var contentWidth = titleWidth - 200; var contentHeight = 580; var dbResult = 'text here'; var hNavHeight = 30; var vNavWidth = titleWidth - contentWidth; var vNavHeight = contentHeight - hNavHeight; var hNavFillerX = contentWidth + baseX; var vNavX = hNavFillerX; var contentY = baseY + hNavHeight + titleHeight - borderWidth; var hNavY = baseY + titleHeight - borderWidth; var vNavFillerX = vNavX - borderWidth; var vNavFillerY = contentY + vNavHeight; DynAPI.onLoad=function() { //border order = top,right,bottom,left makeLayerWithBorders('title',baseX,baseY,titleWidth,titleHeight,titleColor,borderWidth,borderColor,true,true,false,true); makeLayerWithBorders('hNav',baseX,hNavY,contentWidth,hNavHeight,navColor,borderWidth,borderColor,true,false,true,true); makeLayerWithBorders('hNavFiller',hNavFillerX,hNavY,vNavWidth,hNavHeight,navColor,borderWidth,borderColor,true,true,false,false); makeLayerWithBorders('vNav',vNavX,contentY,vNavWidth,vNavHeight,navColor,borderWidth,borderColor,false,true,true,false); makeLayerWithBorders('mainContent',baseX,contentY,contentWidth,contentHeight,mainColor,borderWidth,borderColor,false,true,true,true); makeLayerWithBorders('lastEdited',vNavFillerX,vNavFillerY,vNavWidth + borderWidth,contentHeight - vNavHeight,mainColor,borderWidth,borderColor,false,true,true,false); content = '<span class=title><b>title</b></span>'; title.setHTML(content); content = '<span class=hnav><a href="somesite">home</a> | <a href="?page=resume">resume</a> | <a href="?page=services">services</a> | <a href="?page=about">about</a></span>'; hNav.setHTML(content); //PAGE SELECTION mainContent.setHTML(dbResult); content = '<span class=last><b>rev:</b>02.14.01 22:58:06</span>'; lastEdited.setHTML(content); } </script> </head> <body> <!--- REQUIRED FOR NETSCAPE ---> <SCRIPT language="JavaScript"> height = contentHeight + hNavHeight + titleHeight; document.write('<img src="images/pixel.gif" width=1 height=' + height + ' border=0>'); </script> </body> </html> #############END CODE################# Follow-Ups: Date: 2001-Feb-17 06:09 By: dcpascal Comment: seems to be a browser bug NS6 is tripping over the eval() calls in your code. The variables are not created because NS the parameter is also called NAME... change those lines to something like this: eval( 'l'+name + ...... ); eval( "DynAPI.document.addChild(l" + name + ");"); And again, next time make the easiest example code you can, because again this bug was not in DynAPI, but in your own code which could have been figured out if you took a few seconds to remove as much code as not needed to produce the error.. something I have now been doing just to fix your code (not dynapi code).. rant is ment for everyone and not personal. ------------------------------------------------------- Date: 2001-Feb-15 13:41 By: wessto Comment: I use dynlayerhelper.js to add borders to my layers. Nothing special is done. Here is the complete code for dynlayerhelper.js: #######BEGIN############# function makeLayerWithBorders(name,xpos,ypos,width,height,color,borderWidth,borderColor,tBorder,rBorder,bBorder,lBorder) { eval( name + " = new DynLayer(null," + xpos + "," + ypos + "," + width + "," + height + ",'" + color + "');"); eval( "DynAPI.document.addChild(" + name + ");"); if(tBorder) { eval( name + "_tBorder = new DynLayer(null," + xpos + "," + ypos + "," + width + "," + borderWidth + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_tBorder);"); } if(rBorder) { var newX = xpos + width - borderWidth; eval( name + "_rBorder = new DynLayer(null," + newX + "," + ypos + "," + borderWidth + "," + height + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_rBorder);"); } if(bBorder) { var newY = ypos + height - borderWidth; eval( name + "_bBorder = new DynLayer(null," + xpos + "," + newY + "," + width + "," + borderWidth + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_bBorder);"); } if(lBorder) { eval( name + "_lBorder = new DynLayer(null," + xpos + "," + ypos + "," + borderWidth + "," + height + ",'" + borderColor + "');"); eval( "DynAPI.document.addChild(" + name + "_lBorder);"); } } #######END#######3 ------------------------------------------------------- Date: 2001-Feb-15 09:59 By: dcpascal Comment: Do you have an easier piece of code (without the extra stuff in your dynlayerhelper file etc) that also goes wrong. Code including personal add-ons can be hard to recreate. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=132422&group_id=5757 |