Professional Web Applications Themes

HTML Returned in Data provider as XML - Macromedia Flex General Discussion

I have an HTTPservice returning xml, one of the xml elements contains html "<A href='example.com'>test</a>", when i am returning plain text the flex component i built can p the information just fine, when i add html tags to the returned data then flex sees my xml as having more collections or something, rather then getting the text value i can "Object object", thats with just one <A></A> tag in there, i imagine it will get worse the more tags i add... leo...

  1. #1

    Default HTML Returned in Data provider as XML

    I have an HTTPservice returning xml, one of the xml elements contains html "<A
    href='example.com'>test</a>", when i am returning plain text the flex component
    i built can p the information just fine, when i add html tags to the
    returned data then flex sees my xml as having more collections or something,
    rather then getting the text value i can "Object object", thats with just one
    <A></A> tag in there, i imagine it will get worse the more tags i add...

    leo

    leotemp Guest

  2. #2

    Default Re: HTML Returned in Data provider as XML

    A couple possibilities:
    1. Manually encode the HTML using "entities", for example, replacing "<" with
    "<", etc.
    2. Use the "escape()" and unescape() functions to encode/decode the html
    2. Wrap the strings you do not want pd in CDATA tags.

    A related question:
    What are you going to do with the html in Flex? You know that Flex can't
    display it, right?

    Tracy

    ntsiii Guest

  3. #3

    Default Re: HTML Returned in Data provider as XML

    I am using the limited html support of flex2 to call functions from embedded
    htmltext that is data driven from sql server, the goal is to make an
    application in which i can add an infinite number of "pages" from a backend
    editor type app, almost done too :) thanks!

    leo

    leotemp Guest

Similar Threads

  1. xml into a data provider
    By dragonair1 in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: May 25th, 05:44 AM
  2. Data Grid Provider, XML attributes
    By the_lastBoyScout in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: April 21st, 05:57 PM
  3. Replies: 4
    Last Post: January 7th, 11:01 PM
  4. Data Provider for .NET interface to DB2 8.1
    By Fred Prose in forum IBM DB2
    Replies: 1
    Last Post: September 9th, 10:18 PM
  5. ERR: OLE/DB provider returned message: Timeout expired
    By CT in forum Microsoft SQL / MS SQL Server
    Replies: 1
    Last Post: July 12th, 10:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139