[flexcoders] Atom feeds

2007-12-03 Thread willfould
I have a simple Atom feed reader application using the grid control.  

When you click and item on the grid, a text area is populated with the
contents of one of the feed elements (content)

It works great unless the content element contains HTML:


A sample content Atom element with HTML looks like this:


  content type=xhtmlThis is a link a
href=http://www.example.com;click here/a/content

This results in [object Object] appearing in the TextArea.

Any ideas for what's wrong?




Here is relevent application code code:


mx:DataGrid id=titleList
dataProvider={atomUrl.lastResult.feed.entry} width=100% height=100%
mx:columns
mx:DataGridColumn dataField=title headerText=Title 
/
mx:DataGridColumn dataField=id headerText=ID /
/mx:columns
/mx:DataGrid

mx:TextArea id=content width=100% height=100%
htmlText={titleList.selectedItem.content}
/mx:TextArea





RE: [flexcoders] Atom feeds

2007-12-03 Thread Gordon Smith
 It works great unless the content element contains HTML
 
You don't say what you want the TextArea to actually display in this
case.
 
The HTML code that you show?
Just This is a link click here as plain text?
This is a link click here with click here being a working hyperlink?
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of willfould
Sent: Monday, December 03, 2007 5:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Atom feeds



I have a simple Atom feed reader application using the grid control. 

When you click and item on the grid, a text area is populated with the
contents of one of the feed elements (content)

It works great unless the content element contains HTML:

A sample content Atom element with HTML looks like this:

content type=xhtmlThis is a link a
href=http://www.example.com http://www.example.com click
here/a/content

This results in [object Object] appearing in the TextArea.

Any ideas for what's wrong?

Here is relevent application code code:

mx:DataGrid id=titleList
dataProvider={atomUrl.lastResult.feed.entry} width=100%
height=100%
mx:columns
mx:DataGridColumn dataField=title headerText=Title /
mx:DataGridColumn dataField=id headerText=ID /
/mx:columns
/mx:DataGrid

mx:TextArea id=content width=100% height=100%
htmlText={titleList.selectedItem.content}
/mx:TextArea