View Full Version : _blank being read as a popup?
sophistikat
07-23-2007, 04:26 PM
hello children of planet earth,
can't figure out why a simply getURL('www.somesite.com/page.jsp', '_blank'); is being treated as a popup by the browser? has anyone run into this before?
CyanBlue
07-23-2007, 04:44 PM
Um... That is the line that you use to open up a new browser, so in that sense it is a popup... Why do you ask??? Does the popup blocker close the window??? You 'could' try LoadVars.send() to see if that works in that case...
sophistikat
07-23-2007, 04:56 PM
its simply giving us the 'X has blocked...'
we are in domainA and trying to link to domainB...
basically its a bio page that links to their facebook profile.
we are going to do some test outside of flash now.
CyanBlue
07-23-2007, 06:17 PM
Hm... Don't forget to keep me posted... ;)
sophistikat
07-23-2007, 09:24 PM
no luck. i think its due to cross-domain linking. you can take a look at the page here: http://www.mywhitecloud.com/leibers.csp
click on 'Meet The Family'
rollover the mom's bio panel
click on the button.
at the moment, its set to open in the same window but we want it to open as a new window / tab.
i tried using javacript within flash and outside of flash.
i tried LoadVars
i got it to work once but the getURL(javascript... replace the main page with a blank page
i'll continue to look for tricks.
CyanBlue
07-23-2007, 09:32 PM
Um... Maybe you have fixed it already... FF opens up the page into the new tab but IE opens up into the same page...
Worst case, you can call up the PHP script in the same domain that forwards you to the facebook domain???
sophistikat
07-23-2007, 09:48 PM
the current action isgetURL("javascript:location.href='http://www.facebook.com/profile.php?id=598898974'");by default, location.href should open a new window... thanks for that info. i will do some research to see how I can get IE to respond the same way.
CyanBlue
07-23-2007, 10:02 PM
Um... I am definitely confused... If you do that, it should refresh the current page with the given URL if I understand that line correctly... If that is the case, IE is behaving as it should be, but FF is not... Why would that be??? Hm...
sophistikat
07-24-2007, 07:18 PM
I don't know. I'm going to try another thing... i'll keep you posted
CyanBlue
07-24-2007, 07:23 PM
Fun, fun, fun... :)
sophistikat
07-24-2007, 07:33 PM
the life of a developer ;)
here's the current codegetURL("javascript:window.location.assign('http://www.facebook.com/profile.php?id=598898974'", "_blank");
i am going to try calling a javascript function; in my first attempt, it opened a new window without the popup blocker but it replaced the current window with a blank page.
sophistikat
07-24-2007, 08:50 PM
..and the winner is! the browser.
my last attempt was<script language="JavaScript1.2">
<!--
function openwindow(url, wname)
{
window.open(url, wname);
}
// -->
</script>withgetURL("javascript:openwindow('http://www.facebook.com/profile.php?id=598898974', 'facebook'); void(0);");
getURL("javascript:openwindow('http://www.facebook.com', 'facebook2'); void(0);");
getURL("javascript:openwindow('http://www.whitecloud.com/', 'wc'); void(0);");
getURL("javascript:openwindow('arcade.csp', 'wc2'); void(0);");and without void(0); produce the same popup-blockers.
i tried ExternalInterface but to no avail.
+
i did notice that it is no longer a domain to domain issue because it can't even open URl's from the same domain?! its just an issue.
sophistikat
07-24-2007, 09:03 PM
i created a seperate test just to see what happens and you guessed it... same results
http://www.pomegranate.ca/whitecloud/leibers/url_test.html
sophistikat
07-24-2007, 09:10 PM
i created one more sample using a simple getURL() and the same results
http://www.pomegranate.ca/whitecloud/leibers/url_test2.html
i think i've come to the conclusion that with FP8, '_blank' or '_new', is being treated, by the browsers, as a windows popup instead of opening a new window.
EDIT:
same goes for FP7
http://www.pomegranate.ca/whitecloud/leibers/url_test3.html
same goes for FP6
http://www.pomegranate.ca/whitecloud/leibers/url_test4.html
:confused:
now i am lost? maybe it has to do with Flash Player 9? i will investigate and get back to everyone
CyanBlue
07-24-2007, 09:12 PM
Um... FF2 zaps the page with its own popup blocker, but IE6 opens up the page into the new browser when I have Google Bar installed...
I honestly do not think there is a way to bypass all the different browser/bar that are out there... You probably will lose your hair faster than anybody else unless you ara already bold... ;)
sophistikat
07-24-2007, 09:16 PM
I honestly do not think there is a way to bypass all the different browser/bar that are out there... You probably will lose your hair faster than anybody else unless you ara already bold... ;):) maybe by tomorrow morning... one more test and then i am done
sophistikat
07-24-2007, 09:39 PM
...aannndddd i'm done. i couldn't succesfully install flash player 8 on my mac for my final test... thanks for listening... Homer and I now share the same hair style :o
CyanBlue
07-24-2007, 09:56 PM
Haha... You can finally save some $$$ for the shampoo... ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.