webtekie
01-05-2004, 01:28 PM
Hi guys,
I have a page with three layers. One layer (passwordLayer) is called when a form for search is submitted. Another layer (whatsnew) is called when an item from a floatFrame is clicked on. The problem is that when I search for something passwordLayer becomes visibles and everyrthing works fine. However, once I click on an item in floatFrame whatsnew layer should become visible, but it does not. In JavaScript console I get error for my showHide method:
<script>
function showHide(id,vis) {
-->> window.parent.document.getElementById(id).style.visibility=vis;
}
</script>
Error: Object expected
The weird thing is that if I delete passwordLayer, whatsnew layer shows up. Can anyone suggest what might be the problem?
<div id="passwordLayer"
style="position:absolute;
width:531px;
height:300px;
left: 260px;
top: 125;
background-color: #ffffff;
z-index: 1;
padding: 2px 2px 2px 2px;
border-style: solid;
border-color: #000000;
border-width: 3px;
text-align: right;
visibility:hidden"
class="pswd">
<a href="#" onClick="toggleLayers()" class="close">close window</a>
<iframe name="helpiframe"
frameborder="0"
src=""
width="531"
height="91%"
style="scrollbar-base-color: #663366;
scrollbar-face-color: #99CCCC;
scrollbar-track-color: #996699;
scrollbar-arrow-color: #330033;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #CCCCCC;
scrollbar-shadow-color: #663366;
scrollbar-darkshadow-color: #000000;"
align="center">
</div>
<div id="whatsnew"
style="position:absolute;
width:531px;
height:300px;
left: 260px;
top: 125;
background-color: #ffffff;
z-index: 1;
padding: 2px 2px 2px 2px;
border-style: solid;
border-color: #000000;
border-width: 3px;
text-align: right;
visibility:hidden"
class="pswd">
<a href="#" onClick="toggleLayers2()" class="close">close window</a>
</div>
thanks,
webtekie
I have a page with three layers. One layer (passwordLayer) is called when a form for search is submitted. Another layer (whatsnew) is called when an item from a floatFrame is clicked on. The problem is that when I search for something passwordLayer becomes visibles and everyrthing works fine. However, once I click on an item in floatFrame whatsnew layer should become visible, but it does not. In JavaScript console I get error for my showHide method:
<script>
function showHide(id,vis) {
-->> window.parent.document.getElementById(id).style.visibility=vis;
}
</script>
Error: Object expected
The weird thing is that if I delete passwordLayer, whatsnew layer shows up. Can anyone suggest what might be the problem?
<div id="passwordLayer"
style="position:absolute;
width:531px;
height:300px;
left: 260px;
top: 125;
background-color: #ffffff;
z-index: 1;
padding: 2px 2px 2px 2px;
border-style: solid;
border-color: #000000;
border-width: 3px;
text-align: right;
visibility:hidden"
class="pswd">
<a href="#" onClick="toggleLayers()" class="close">close window</a>
<iframe name="helpiframe"
frameborder="0"
src=""
width="531"
height="91%"
style="scrollbar-base-color: #663366;
scrollbar-face-color: #99CCCC;
scrollbar-track-color: #996699;
scrollbar-arrow-color: #330033;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #CCCCCC;
scrollbar-shadow-color: #663366;
scrollbar-darkshadow-color: #000000;"
align="center">
</div>
<div id="whatsnew"
style="position:absolute;
width:531px;
height:300px;
left: 260px;
top: 125;
background-color: #ffffff;
z-index: 1;
padding: 2px 2px 2px 2px;
border-style: solid;
border-color: #000000;
border-width: 3px;
text-align: right;
visibility:hidden"
class="pswd">
<a href="#" onClick="toggleLayers2()" class="close">close window</a>
</div>
thanks,
webtekie