PDA

View Full Version : Loading Remote Window Within Frames


DarkCancerian
09-27-2002, 09:41 PM
I'm using angelfire, and my site is enframed by Dot TK to shorten the URL. The script on my main page is: <script><!--
function remote(){
win2=window.open("remote.htm","","width=150,height=350,scrollbars")
win2.creator=self
}
//-->
</script> and the flash button uses this on (release) { getURL("javascript:remote()") }

The remote loads fine on the normal angelfire URL, but when I bring up the shortened URL which enframes my site, it loads in the same page "page cannot be displayed". Is there any way to remedy or circumvent this?

joh6nn
09-27-2002, 09:59 PM
can we see a link to the page you have this on?

without having the page to look at, my guess is that you need to have it like this:

getURL("javascript:remote(); void 0;")

DarkCancerian
09-27-2002, 10:10 PM
That didn't work... The place it won't work at is "http://darkomnicity.tk" and the actual URL that it does work at (since it's not framed) is "http://angelfire.com/games3/omnicity/index.html"

joh6nn
09-28-2002, 01:08 AM
it works for me at both pages.

DarkCancerian
09-28-2002, 01:10 AM
It does???? Weird...

joh6nn
09-28-2002, 02:07 AM
let me amend that. it works for me, on both pages, in Moz 1.1 . In IE6, neither page worked.

i wasn't able to see anything that i think would actually cause a problem, so i proceeded to grasp at straws. that's what follows.

the code you have actually on your page is this:

function remote(){
win2=window.open("http://angelfire.com/games3/omnicity/remote.htm","remote.htm","width=150,height=350,scrollbars")
win2.creator=self
}

i would change it to this:

function remote(){
var win2 = window.open("http://angelfire.com/games3/omnicity/remote.htm","remote","width=150,height=350,scrollbars")
win2.creator=self
}

that line in bold, you can just get rid of it. windows are given an opener property, that has the same function.

also note that i removed the ".htm" from the part in red. this doesn't seem to cause problems in Mozilla, which i trust more than IE, but i'm not exactly sure that you're allowed to have punctuation in window names.

again, i don't think these things are why you're having a problem, but i didn't see anything else.

DarkCancerian
09-28-2002, 02:15 AM
I did that... it didn't help. Man this sucks.