Hi Nithaya,
 
You can also add target attribute to anchor tag. Like this:
 
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.macromedia.com/2003/mxml">
 
<mx:Script>
    <![CDATA[
            var linkText:String = "<a href='' target='_blank'>click here to view details</a>;
   ]]>
 <mx:Canvas id="top" width="100%" height="80%">
  <mx:Label htmlText="{linkText}"></mx:Label>
 </mx:Canvas>
 <mx:Canvas id="bottom" width="100%" height="20%">
  <mx:VBox height="100%" width="100%">
   <mx:Button label="Add to cart"/>
  </mx:VBox>
 </mx:Canvas>
</mx:Application>
 
 
This would open another browser window with html page. But what I understand is, you want to open html page within Flex application. I guess, that's kind of tricky, if you html page has simple html tags, it can be rendered in Flex TextArea component. But if your html page contains complex tags like Table, Div etc, then you need to look at Christophe's IFrame technique.
 
I already mentioned about Christophe's IFrame technique in response of your previous mail. Please look at it here:
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthik
Sent: Friday, June 10, 2005 3:55 PM
To: flexcoders
Subject: [flexcoders] Html page pop up

hai,
     I have an application with a top canvas and a botton canvas. the top canvas has a button which on click must make a corresponding html page to be displayed on the top canvas only. the bottom canvas should remain the same. how to do this? when i give the following code the whole application is getting replaced  by the html page. pls help......
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
 <mx:Canvas id="top" width="100%" height="80%">
  <mx:Label htmlText="&lt;a href="" &quot;  &gt; click here to view details>> &lt;a&gt;"></mx:Label>
 </mx:Canvas>
 <mx:Canvas id="bottom" width="100%" height="20%">
  <mx:VBox height="100%" width="100%">
   <mx:Button label="Add to cart"/>
  </mx:VBox>
 </mx:Canvas>
</mx:Application>

Send instant messages to your online friends http://uk.messenger.yahoo.com


Yahoo! Groups Links

Reply via email to