thank you so much for the quick reply! Ive had bad experience with support forums that offer no help, makes for a crappy experience, lol
DIV QUESTION
unfortunately, i actually was not able to get any of your help to work, but i'm sure i was probably doing something dumb.
Of course. I suspect you're using the same variable name when calling dhtmlwindow.open(), causing one to overwrite the next. Make sure the variable names are unique:
Code:
var divwin=dhtmlwindow.open('divbox', 'div', 'som....)
var divwin2=dhtmlwindow.open('divbox', 'div', 'som....)
Yes, one was overwriting the next. Here's my example i was trying to do to get multiple windows from divs
Code:
<!-- DIV1 -->
<a href="#" onClick="divwin=dhtmlwindow.open('divbox', 'div', 'div1', 'Div 1 Title', 'width=220px,height=475px,left=200px,top=150px,resize=1,scrolling=1'); return false"><b>click here for div1</b></a>
<div id="div1" style="display:none">
div 1 text content
</div>
<!-- DIV2 -->
<a href="#" onClick="divwin2=dhtmlwindow.open('divbox', 'div', 'div2', 'Div 2 Title', 'width=600px,height=475px,left=200px,top=150px,resize=1,scrolling=1'); return false"><b>click here for div2</b></a>
<div id="div2" style="display:none">
hello all
</div>
and using that example they are still overwriting each other
IFRAME QUESTION
Are you saying the entire DHTML window hidden to start out, or just the IFRAME content area within it? For the later, you can try something like:
Yes, i wanted the DHTML window hidden, similar to how the div windows were hidden where i can display them using a link.
So far i have this for my code for the iframe link and it obviously is not working, lol
Code:
<!-- IFRAME TEST -->
<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://www.google.com", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1")
googlewin.contentarea.style.visibility="hidden"
}
</script>
<a href="#" onClick="googlewin.contentarea.style.visibility="visible"(); return false">Show Window 1</a>
Here's my test site if you want to take a loko at it
http://awesomedotcom.org/GW.html
thanks again for the help
Bookmarks