Click to See Complete Forum and Search --> : Expanding collapsed frame after frame refreshes


ladystar
03-08-2003, 07:21 PM
I am working on a page with frames where the left navigational frame can be collapsed/expanded. The only problem is that if the navigational frame is collapsed and refreshes while collapsed, it fails to expand after the navigation reloads. I have an img file visible in the collapsed frame after refresh, can a double click function be assigned to this img to return the frame back to the full expansion size of 230?

Main frame js:

<script language="JavaScript1.2">
defaultconf=''
function expandf(){
if (document.all){
if (document.body.cols!="30,*")
document.body.cols="30,*"
else
document.body.cols=defaultconf
}
}
</script>

Navigational frame js:

<SCRIPT language="JavaScript1.2">
if (document.all)
window.parent.defaultconf=window.parent.document.body.cols
function expando(){
window.parent.expandf()
}
document.ondblclick=expando
</SCRIPT>

Thanks!

Star

jdavia
03-08-2003, 10:26 PM
Originally posted by ladystar
I am working on a page with frames where the left navigational frame can be collapsed/expanded. The only problem is that if the navigational frame is collapsed and refreshes while collapsed, it fails to expand after the navigation reloads. I have an img file visible in the collapsed frame after refresh, can a double click function be assigned to this img to return the frame back to the full expansion size of 230?
Thanks!
Try adding a link in the right frame that would open the index.html page, if that is the name of the two frames. You would have to note (expand if collapsed), since it is a link to the same page