hello frnd,
i'm actually taking data from server side in xml and showing it in
flex,
Flex code is
<mx:VBox width="{main_box.width/2}" height="100%"
verticalScrollPolicy="auto" >
<mx:TextArea height="100%" backgroundAlpha="0" editable="false"
width="100%" htmlText="{String(httpGroup.lastResult.Table.bios)}"
styleName="textDetail"
/>
</mx:VBox>
in that xml the text comes :
<img border="0" alt="" style="width:
76px; height: 91px;" src="http://serverpath/files/i1.jpg" /><span
style="font-weight: bold;">KB <br />Hi how are you<br /><img
border="0" alt="" style="width: 78px; height: 78px;" src="http://
serverpath/files/i2.jpg" /> Nimo <br />pls feel free to join us<br /
></
span>
how can i show it in a proper format ?
On Sep 27, 8:39 am, "Varun Shetty" <[EMAIL PROTECTED]> wrote:
> You cannot write the code in that structure
> Since you are using html tags '<' and '>' it is suppose to be under CDATA.
>
> appropriate code would be
> <mx:VBox id="v1" width="600" height="800">
> <mx:TextArea >
> <mx:htmlText>
> <![CDATA[
> <img border="0" alt="" style="width:
> 76px; height: 91px;"
> src="http://serverpath/files/i1.jpg"/><span
> style="font-weight: bold;">KB <br />Hi how are you<br
> /><img
> border="0" alt="" style="width: 78px; height: 78px;"
> src="http://
> serverpath/files/i2.jpg" /> Nimo <br />pls feel free to
> join us<br /></
> span>
> ]]>
> </mx:htmlText>
> </mx:TextArea>
> </mx:VBox>
>
> and you can pass the html text as String through action script, even that is
> fine.
>
> Well, there is another problem with your code. Flex supports only HTML 1.0,
> and not all the stuff you have right now. HTML 1.0 is very limited, so make
> sure u comply to html 1.0 before u add the code to flex.
>
> regards,
> Varun Shetty
>
> On Thu, Sep 25, 2008 at 10:31 AM, abhishekchess1
> <[EMAIL PROTECTED]>wrote:
>
>
>
> > hello frnds,
> > i'm using html in flex , in my html code i'm showing first 1 image
> > then its details then at next line
> > anather image and its details , but when i'm doing this , it shows
> > first image then text of its beside it and next line but beside first
> > img 2nd image's details also and then it showing 2nd image.
> > so could u tell how can i show it in proper format like in html.
>
> > my code is
> > <mx:VBox id="v1" width="600" height="800">
>
> > <mx:TextArea htmlText="<img border="0" alt="" style="width:
> > 76px; height: 91px;" src="http://serverpath/files/i1.jpg" /><span
> > style="font-weight: bold;">KB <br />Hi how are you<br /><img
> > border="0" alt="" style="width: 78px; height: 78px;" src="http://
> > serverpath/files/i2.jpg" /> Nimo <br />pls feel free to join us<br /></
> > span>">
>
> > </mx:VBox>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---