开发者

How to load my flex application in child window of browser?

We have a Flex web application. I want to load the swf file in a child browser window without any status bars or开发者_如何学C history button but only the application. How do i do that.

I tried window.open in the html which embeds our swf but with no luck. It keeps on creating window every time i call the url in the child window since the html is loaded every time when i call the url in javascript.

This is the code which i tried in my html code during body load.

function openWindow() {

var url = "https://"+window.location.hostname+":9000/foo/";

w=open(url,'windowname','width=1024,height=768,scrollbars,status'); }

Any help is greatly appreciated.Thanks.


You can't. What you're trying to do is against many security policies of browsers. You used to be able to back in the days of old IE but not anymore.

If you want a 'chromeless' window to popup, you can always install an Air application on the user's computer to display your information. It can be launched from a website if you set <allowBrowserInvocation>true</allowBrowserInvocation> in the Air config file.


@J_A_X is right, but you can use below line to popup window

window.open(herf, windowname, ',type=fullWindow,fullscreen,scrollbars=yes');

details can be found at Popup Windows: The Basics

hopes that helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜