hi jf.sal,
 
Strangly your code works without a glitch! I just copied and pasted your code in Flex and HTML and it works without any problem. The only modification i made was in you _javascript_ code. I'm not sure on what basis you have written your _javascript_ code but try this one:
 
<script language="_javascript_" type="text/_javascript_">
var newwin;
function launchwin(winurl,winname,winfeatures){
 newwin = window.open(winurl,winname,winfeatures);
}
</script>
(Tested in IE 7 Beta & Mozilla, works fine)

Your flex code remains the same.
 
Hope that works.
 
-P

 
On 10/6/06, jf.saldanha <[EMAIL PROTECTED]> wrote:

Hi all

I need some help on this:
Open a new java window in Flex like we do in Flash

I have a html page with this _javascript_ code

<SCRIPT LANGUAGE="_javascript_"> var _javascript__version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="_javascript_1.1"> _javascript__version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="_javascript_">

var newwin;
function launchwin(winurl,winname,winfeatures){

newwin = window.open(winurl,winname,winfeatures);
if(_javascript__version > 1.0){

setTimeout('newwin.focus();',250);
}
}

And have this code in Flex, azulej7.htm is the html page.

public function executEmail(event:MouseEvent):void{
var u:URLRequest = new URLRequest("_javascript_:launchwin
('azulej7.htm', 'newwindow', 'height=450, width=550')");
navigateToURL(u);
}

<mx:Button click="executEmail(event)">

Ok this open a new window but not the _javascript_ window with 550 by
the450 height.

If anyone can help me I say thanks and many thanks to all.

jf.sal


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to