3 Replies Latest reply on Aug 1, 2008 7:43 AM by Newsgroup_User

    embed HTML tag

    ravendra.kumar
      Hi I am toatally new to Flex. and i like RIA.

      I have a question.

      can I embed html tag into flex controls line in panel control?

      for example I want to use <table></table> into flex's 'panel' control.

      this requirement arose beacase, I have some raw code from my previous ajax application with simple html and javascript, and typically I used to use them as div-Id.innerHTML="<table><row><td>hello</td></tr><table>"

      i simple want to reuse my code with flex RIA


      I shall be highly oblized if anybody could help me as soon as possible.

      thanks
      Ravendra

        • 1. Re: embed HTML tag
          Level 7

          "ravendra.kumar" <webforumsuser@macromedia.com> wrote in message
          news:g6u91u$q06$1@forums.macromedia.com...
          > Hi I am toatally new to Flex. and i like RIA.
          >
          > I have a question.
          >
          > can I embed html tag into flex controls line in panel control?
          >
          > for example I want to use <table></table> into flex's 'panel' control.
          >
          > this requirement arose beacase, I have some raw code from my previous ajax
          > application with simple html and javascript, and typically I used to use
          > them
          > as div-Id.innerHTML="<table><row><td>hello</td></tr><table>"
          >
          > i simple want to reuse my code with flex RIA
          >
          >
          > I shall be highly oblized if anybody could help me as soon as possible.

          I think you'll find it easier to just work with the Flex version of a Table,
          which is the DataGrid.

          HTH;

          Amy


          • 2. Re: embed HTML tag
            ravendra.kumar Level 1
            I know Amy that I can use DataGrid but I undersatnd you could not get my requirement fully
            I need to reuse data coming from XMLHttp call without changing the style and decoration.

            Thanks
            Ravendra
            • 3. Re: embed HTML tag
              Level 7

              "ravendra.kumar" <webforumsuser@macromedia.com> wrote in message
              news:g6v3jq$p0j$1@forums.macromedia.com...
              >I know Amy that I can use DataGrid but I undersatnd you could not get my
              > requirement fully
              > I need to reuse data coming from XMLHttp call without changing the style
              > and
              > decoration.

              If it's valid XHTML, you might be able to just use it as the dataProvider
              for a dataGrid. You could potentially edit your itemRenderers to make use
              of the existing tags. You could also consider XSLT as a way of transforming
              it to something more flex friendly, or a parsing routine on the client.