Select to view content in your preferred language

How to display external html page in a widget.

1353
7
06-11-2010 10:15 AM
RavinderGairola
Emerging Contributor
We have a java applet on a web page which is hosted on some external server.
We have to display this external webpage on a tab of a widget.

Can anyone come across same scenario or have some sample to share with me.

Any help will be really appreciated.
Tags (2)
0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Ravinder,

   This is not as easy as it may sound. There is not out of the box html component in flex. The best thing available is something called flex iFrame.

http://code.google.com/p/flex-iframe/
0 Kudos
RavinderGairola
Emerging Contributor
I have already tried it but there are lot of issues with it in genral.
In my case the page I am displaying in iFrame has an applet and google iframe in not working at all.

Is it possible to launch a new IE Popup window without any menu/address/status bar on top of FlexViewer IE window where it looks like part of it? Then I can display my external web page there and it would look like part of FlexViewer.

I really appriciate your help
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ravinder,

   Sure this is what I use when opening my Google StreetView window.

var url:String  = "http://gis.calhouncounty.org/FlexView/StreetView.html?lat=" + lat + "&lng=" + lng;
    var window:String = "StreetView";
    var features:String = "toolbar=no,location=no,resizable=no,directories=no,status=no,scrollbars=no,copyhistory=no,width=610,height=700";
    
    var WINDOW_OPEN_FUNCTION : String = "window.open";
    ExternalInterface.call( WINDOW_OPEN_FUNCTION, url, window, features );
0 Kudos
RavinderGairola
Emerging Contributor
Thanks Robert

Is it also possible to keep this popup window on top of FlexViewer window all the time but we would also able to interact with other widgets?
0 Kudos
RavinderGairola
Emerging Contributor
To show ModelessDialog I used window.showModelessDialog.
0 Kudos
Drew
by
Frequent Contributor
FYI:
window.showModelessDialog will only work in IE.
0 Kudos
RavinderGairola
Emerging Contributor
FYI:
window.showModelessDialog will only work in IE.


Can I find browser type like we do in javascript and then if its IE will should modeless otherwise window.open?

Another issue is when user clicks link to open in modeless box then a new instance of Modeless popup box open every time. Is it possible to open all links on one Modeless box like we do in window.open specifying target?
0 Kudos