|
-
damn, im smooth
javascript pop-ups thru frames
the quick story:
i purchased a domain name from directnic, intending to redirect the domain to a specific folder on my server. to do that, directnic dynamically creates a frameset on their end, with the site i'm pointing to as the single frame, at 100% width and height.
i created the flash site on my end, uploaded it to a folder on my server, had directnic succesfully direct the domain and everything worked perfectly!
sorta.
it seems that, somewhere, my javascript pop up code got screwy in the mix, because of the frame.
the code works, the popup works, and the site works. i've tested it locally, and by entering the actual, longer URL (not the directnic domain redirect). all the tests work fine.
however, when i type in the directnic URL, then try to open the popup, the button clicks but nothing happens. no window, no error, nothing.
what'd i do?
i'm not new to action scripting. i'm just bad at it.
-
damn, im smooth
in case you're wondering (and who wouldn't be!), here's the necessary info fer ya:
the name of the directnic domain i purchased:
http://www.batmanandrob.com
its pointing to:
http://www.phausenentertainment.com/0000BATMAN/
the popup code i used:
Code:
<SCRIPT LANGUAGE="JavaScript">
function popmovie1() {
window.open('00movies/btas00.htm','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=375,height=275,left=5,top=5');
}
</script>
i also tried entering the full URL (the actual URL, not the redirect one) in the above code, but that didn't work, either.
in the actual flash movie, this is the code you put on the link:
Code:
on (release) {
getURL("JavaScript:popmovie1();");
gotoAndPlay(500);
}
(the "gotoandplay" portion is irrelevant here, its necessary for some other part of the animation, and does not interfere with the popup code)
i'm not new to action scripting. i'm just bad at it.
-
damn, im smooth
heya glenn, thanks for the response!
ok, i tried the "display note about every script error" in IE, but didn't get any error. simply put, nothing happens.
then, i tried loading www.batmanandrob.com in ns6 to check out that error info. and here's the kicker -- the popups work in ns6!
...
what the heck is goin on here??
i'm not new to action scripting. i'm just bad at it.
-
Hi,
there are 1001 reasons why people say that IE is the better browser ... you just found one of them 
It is somewhat on the lines of cross site scripting: javascripts from one site (phauseentertainment.com) should not be able to mess with content from another domain, in that case the frameset from batmanandrob.com. This is very legitimate - you would not want a frame from an ad server to be able to record what you type into a different website's password field. For some reason IE seems to have decided that opening a popup from a frame is illegal messing with the foreign toplevel frameset.
Here is a similar one: suppose your site changes content in one frame via framename.location='xyz.html' - if it hits a 404 this way, the familiar error page from some res:// url will display, and from that point any attempt to load a different page into that frame will fail because res:// also triggers a cross site scripting violation
Musicman
-
damn, im smooth
heya musicman -- thanks for the response.
so, basically, the solution is ... there is no solution? is this just one of those cases where i'm plum outta luck and gotta find an alternate solution?
let me make this ordeal a little more confusing, if i could 
i have another domain name purchased through directnic, www.americatriumphant.com -- and its pointing to a locale on another server of mine, www.robkamphausen.com/misc/america
that site also features a popup link, tho an html text-based one, not thru flash. its the link for the movie credits. however, that popup works, despite it being in a similar set up (a pop script breaking thru the frame)
how come that one works, but not the flash based one?
i'm not new to action scripting. i'm just bad at it.
-
Hi,
I just tried to understand what is happening, and to explain it. I really did not say it is logical 
Musicman
-
damn, im smooth
"the wonder that is computers" 
so, whatcha think is my best plan of attack now? just forget about the domain name and let the real URL show?
i'm not new to action scripting. i'm just bad at it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|