Click to See Complete Forum and Search --> : javascrip pop-up window with frames... HELP!


shishkabobs
03-12-2003, 11:45 PM
I've use the javascript pop-up code for all sorts of pop-up windows before, but had never tried to pop-up a window that had frames. Now I'm trying, and it's not working... any ideas???

Jona
03-12-2003, 11:46 PM
Can we see the code you're using?
You should just be able to window.open("frameIndex.html") and in frameIndex.html have your frames. That should all work out fine.

shishkabobs
03-12-2003, 11:53 PM
hmm... the code I'm using is a heck of a lot more than "window.open" First of all, this is the script in the header:

-----------------
function winopen(urllinkn,windowname,width,height) {
window.open(urllinkn,windowname,'width='+width+',height='+height+',toolbar=no,location=no,directorie s=no,status=no,scrollbars=auto,resizeable=no,copyhistory=no');
-------------------

and then this is the actual link:

-------------------------------
"javascript:winopen('home_main.html','DP01',750,500)"
-------------------------------

Jona
03-12-2003, 11:56 PM
Your "window. open()" shouldn't have a space after the period. It should be window.open()

shishkabobs
03-13-2003, 12:23 AM
nope, that's not it. For some reason everything works, but the window just pops up plain white. I don't get it. It's weird, cause where there are supposed to be buttons up on the top, the mouse goes over them like there are buttons there, but they just don't show up. Maybe I'm doing something really dumb, but I think I've got everything right. Any other suggestions?

Jona
03-13-2003, 04:52 PM
Odd, this doesn't work:

<script>
function winopen(urllinkn,windowname,Width,Height) {
config = ",toolbar=no,location=no,directories=no,st
atus=no,scrollbars=auto,resizeable=no,copyhistory=
no"
win = window.open(urllinkn,windowname,"width="+Width+",height="
+Height+config+"");
}
</script>
<a href="javascript:winopen('file.html', 'new_win', 750, 500)">blah</a>

But this does:

<script>
function winopen(urllinkn,windowname,Width,Height){
window.open(urllinkn,windowname,"width="+Width+",height="+Height);
}
</script>
<a href="javascript:winopen('file.html', 'new_win', 750, 500)">blah</a>

Very strange indeed.