Embed HTML tag

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

"ravendra.kumar" <[email protected]> wrote
in message
news:g6u91u$q06$[email protected]..
> 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

Similar Messages

  • Embed HTML tag inside XSLT to generate email content

    I want to Embed HTML tag inside XSLT to generate email content .
    XSLT is not working in Jdeveloper , when i use the syntax <xsl:output method="html" indent="yes" version="1.0"/> in transformation activity .
    Can anyone help to resolve the issue .

    in the <xsl:template match=""/> element you can just start with creating your html document
    so for example
         <xsl:template match="/">
              <html>
    the graphical mapper itself won't i think but when you test the xsl it will still procedure a html document, we use it too to generate the email body contents

  • No embed html tag in flash CS5

    Hi, I am a newbie in flash. I understand in order to embed my slideshow into my website,  I need to copy the < embed >  tag in the code after publish to HTML and paste in in my webpage. I have done my slideshow and is working but I can't find the < embed > code from my HTML file. Below is my code from my html file, please help.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
         <head>
              <title>Flashslide1</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <style type="text/css" media="screen">
              html, body { height:100%; background-color: #ffffff;}
              body { margin:0; padding:0; overflow:hidden; }
              #flashContent { width:100%; height:100%; }
              </style>
         </head>
         <body>
              <div id="flashContent">
                   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="700" id="Flashslide1" align="middle">
                        <param name="movie" value="Flashslide1.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="Flashslide1.swf" width="400" height="700">
                             <param name="movie" value="Flashslide1.swf" />
                             <param name="quality" value="high" />
                             <param name="bgcolor" value="#ffffff" />
                             <param name="play" value="true" />
                             <param name="loop" value="true" />
                             <param name="wmode" value="window" />
                             <param name="scale" value="showall" />
                             <param name="menu" value="true" />
                             <param name="devicefont" value="false" />
                             <param name="salign" value="" />
                             <param name="allowScriptAccess" value="sameDomain" />
                        <!--<![endif]-->
                             <a href="http://www.adobe.com/go/getflash">
                                  <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                             </a>
                        <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                   </object>
              </div>
         </body>
    </html>
    Regards
    AO

    Just let CS5 publish an html file and either build into that page or copy from that page into another.  I do not have CS5, so I don't know what it is producing for embedding code.  With the newer versions of code, you might need to include javascript files and possibly other lines of code in the html file. Your best bet is to have a working version of the page that Flash produces and just copy any unique stuff from it until your other pages displays what you want.

  • How to embed html tags in out.println

    Hi,
    i have the following code in a function in java which passes the JspWriter object
    out.println("<table>");
              out.println("<tr>");
              out.println("<td>User Id</td>");
              out.println("<td>Pack Purchased </td>");
              out.println("<td>Sms Used</td>");
              out.println("<td>Sms Left</td>");
              out.println("<td>New User</td>");
    out.println("</tr></table>");is what i'm doing rite? plz help.

    Hi,
    i' having a problem with the following code.
    the web page isnt displaying anything. its just a blank page. please help
    public void calculateUserDetails(JspWriter out) throws IOException
              out.println("<table border=1>");
              out.print("<tr><td>User Id</td>");
              out.print("<td>Pack Purchased </td><td>Sms Used</td>");
              out.print("<td>Sms Left</td><td>New User</td>");
              out.print("</tr>");
              Enumeration objEnumKeys = hashAllDetails.keys();
              while(objEnumKeys.hasMoreElements())
                 String strHashKey = (String)     objEnumKeys.nextElement();
                 UserDetails objUserDetails = (UserDetails) hashAllDetails.get(strHashKey);
                 intBasicPacksTotalCount += objUserDetails.CountBasicPacks;
                 intAdvancedPacksTotalCount += objUserDetails.CountAdvancedPacks;
                 int intCurrentUserSoldSmsCount = getSoldSmsCountToUser(objUserDetails);
                 intTotalSoldSmsCount = intTotalSoldSmsCount + intCurrentUserSoldSmsCount;
                 int intCurrentUserUtilizedSmsCount = intCurrentUserSoldSmsCount - objUserDetails.SmsBalance;
                 intTotalUtilizedSmsCount += intCurrentUserUtilizedSmsCount;
                 intActivePacksCount += getUserActiveSMSPacksCount(objUserDetails, intCurrentUserUtilizedSmsCount);           
                 int intTotalCountPackPurchased = packPurchased(objUserDetails);
                out.print("<tr><td>");
                out.print(objUserDetails.UserId);
                out.print("</td><td>Rs.");
                out.print(intTotalCountPackPurchased);
                out.print("</td><td>");
                out.print(intCurrentUserUtilizedSmsCount);
                out.print("</td><td>");
                out.print(objUserDetails.SmsBalance);
                out.print("</td>");
                boolean newFlag=NewUser(objUserDetails);
                if(newFlag==true)
                     out.print("<td>Yes</td></tr>");
                else
                     out.print("<td>No</td></tr>");
               }               //End while
               out.println("</table>");
         }     

  • How to use html tags inside java

    I have to retrieve data from db and return the data to my index.jsp page.
    Its working fine.
    But I have o display in a pable format using html. How to embed html tags? I tried this way. Its not working. Any suggestions?
       String htmlOpen = "<html>";
        String htmlEnd = "</html>";
        String titleOpen ="<title>";
        String titleEnd ="</title>";
        String bodyOpen = "<body>";
        String bodyEnd = "</body>";
        for (int i = 1; i <= cols;i++){
            output = output + rsmd.getColumnName(i);
         while (rst.next()) {
            for (int i = 1; i <= cols;i++){
                      output = output +rst.getString(i);
      result = htmlOpen + titleOpen + titleEnd + bodyOpen + output+ bodyEnd + htmlEnd;
        stmt.close();
        conn.close();
         return htmlOpen;
      }

    See those charcters in your JSP that look like "<%"? Those characters mean: "the code after this is Java - interpret it as such".
    Then when you close your Java block with "%>", it then means: "the code after this is html - output it to the request response that is being built. However, within the html code, the syntax "<%= java_variable_name %>" means "take the current value of that Java variable and insert it into the html output".
    Here's an example:
    %>
    <table cellspacing="2" cellpadding="2" border="1">
    <tr>
    <%
        String s = null;
        for (int i = 1; i <= ncol; i++)
          s = rsmd.getColumnName(i);
    %>
      <th nowrap><A HREF="<%=sortLink.toString()%>&sortby=<%=s%>"><%= s %></th>
    <%
    %>
    </tr>
    <%
        if (rs == null || numRows <= 0)
          %><tr><td colspan="10" nowrap>No data available for specified query.</td></td><%
        else
          int rowCounter = 0;
          while(rs.next() && rowCounter < PAGE_SIZE)
            rowCounter++;
    %>
      <tr><%
            for (int i = 1; i <= ncol; i++)
              s = rs.getString(i);
              if (rsmd.getColumnName(i).equalsIgnoreCase("password"))
                    %><td nowrap>********</td>
    <%
              else
                %><td nowrap><%= s %></td>
    <%
            %></tr><%
    %>
    </table>This is JSP 101, what they teach in the first hour of class...
    Here's a decent JSP tutorial:
    http://www.jsptut.com/

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <h:column>
    <li>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
    </h:outputLink>
    <li>
    </h:column>
    </h:dataTable>
    </ol>
    </div>
    </div>
    I want to use <li> HTML tag as shown in code above before and after every <tr> tag formed, but when i run it and see view source, this is how it shows:
    NOTE: you can see it has thrown out of <table> tag itself.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <li>
    </li>
    <table>
    <tbody>
    <tr>
    <td><a id="_id0:0:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=-1"><span id="_id0:0:crumpName" style="width: 165px;">Home</span></a></td>
    </tr>
    <tr>
    <td><a id="_id0:1:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=3~-1"><span id="_id0:1:crumpName" style="width: 165px;">HIM Admin</span></a></td>
    </tr>
    </tbody>
    </table>
    </ol>
    </div>
    </div>
    Can some one help me, how do i use HTML tags inside <h:dataTable>.
    Or is their any other way i should form my Menus, to fully utilize to HTML tags.
    Thanks
    Ravi

    Hello,
    You can embed the verbatim elements in your datatable, ie,
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
      <h:column>
        <f:verbatim><li></f:verbatim>
        <h:outputLink id="crumbID" value="#{bread.menuLink}">
          <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
        </h:outputLink>
        <f:verbatim></li></f:verbatim>
      </h:column>
    </h:dataTable>

  • How to Embed HTML into a Infopath form with out using the custom code???

    Hi ,
    This my first post in MSDN, so kindly ignore if there is any faults/mistakes.
    scenario:
    I am updating a HyperLink(url) to an infopath Field (Such as Rich text box /Label) from a third party workflow(Nintex),it is not able to embed the html data .is it possible to embed html controls like <a> and <Br> tags in the infopath form?????

    The InfoPath form can be configured to export some of the fields as columns... by doing so, the workflow can simply update the list item's metadata, and the value is pushed into the InfoPath form data.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Can I get html tag info through actionscript?

    Hi,
    I want to know if there is any way to get the html tag info
    through
    actionscript when the swf file is played in a web browser?
    for example, if the html snippet is:
    <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    src="my.swf" />
    can I get the 'name', 'id' attribute value of this html tag
    from my.swf
    through actionscript? or is there any other way? I know
    actionscript can
    call functions in the html page, but that cant' help me get
    the 'name',
    'id' attriubte value of the html tag.
    Any suggestion is highly appreciated, thanks in advance.

    Great! thanks, I will take a try of this.
    Gorka Ludlow wrote:
    > Use FlashVars:
    >
    > <embed name="xx" id="99"
    type="application/x-shockwave-flash"
    > src="my.swf" FlashVars="id=99&name=xx" />
    >
    > This will make two variables available at the main
    timeline of your movie.
    >
    > Cheers,
    > Gorka
    > www.AquiGorka.com
    >
    >

  • Help needed in adding effects of certain HTML tags in Flex spark Richtext

    I want to apply the effects of the following HTML tags/ attributes, in my HTML text rendered in Flex Spark Richtext Component.
    Superscript - <sup>
    Subscript - <sub>
    Blockquotes - <blockquotes>
    Ordered Lists - <ol><li>
    Unordered List - <ul><li>
    Horizontal Rule - <hr>
    Direction Attribute for <p> - <p dir="rtl">Hello</p>
    Background Color for <font>
    I have observed that the above tags have no effect in RichText. Is this a limitation?
    Any solutions, tweaks and tricks will be appreciated...
    Thanks,
    Mangirish

    check this out . this should be able to answer you question.
    http://livedocs.adobe.com/flex/3/html/help.html?content=textcontrols_04.html
    Miguel

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • Values having html tags not getting populated while using AJAX in APEX

    Hi,
    I am using AJAX to populate certain values in a tabular report.
    I have a java script of this form (I have taken this example from Denes's example http://apex.oracle.com/pls/otn/f?p=31517:241:1400877312570049)
    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular(pValue, pRow){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    get.add('T_ROWNUM',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    if(gReturn){
    var l_Count = gReturn.getElementsByTagName("item").length;
    for(var i = 0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("item");
    var l_ID = l_Opt_Xml.getAttribute('id');
    var l_El = html_GetElement(l_ID);
    if(l_Opt_Xml.firstChild){
    var l_Value = l_Opt_Xml.firstChild.nodeValue;
    }else{
    var l_Value = '';
    if(l_El){
    if(l_El.tagName == 'INPUT'){
    l_El.value = l_Value;
    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
    l_El.parentNode.innerHTML = l_Value;
    l_El.parentNode.id = l_ID;
    }else{
    l_El.innerHTML = l_Value;
    get = null;
    </script>
    And I have the application process as follows
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="f05_000' || :T_ROWNUM || '">' || :TEMPORARY_APPLICATION_ITEM || '</item>');
    HTP.prn ('</body>');
    END;
    If I have :TEMPORARY_APPLICATION_ITEM as 'Vikas' it gets displayed properly but if I have '&lt;b&gt;Vikas&lt;b&gt;' it shows null. if it has any HTML tags function l_Opt_Xml.firstChild.nodeValue is not working properly .Please tell me what modiifcation can I use in function l_Opt_Xml.firstChild.nodeValue to get Values with HTML tags also to get displayed.
    Thanks,
    Vikas

    Vikas,
    Try escaping special characters: htf.escape_sc(:TEMPORARY_APPLICATION_ITEM)Regards,
    Dan

  • Pdf and html tags

    I am creating a report in APEX. I am using the HTML TAG <br> in my headings on the report. The headings on the report look great. When I do the PDF the headings do not look great. The PDF does not seem to like the html <br> tag. Any idea's?

    Hi Earl,
    I actually have strong, bold, italic, html, new paragraph tags in the content of the text area.
    When the pdf is displayed, it shows the tags as it is. I want the data to be formatted and displayed.
    Thanks
    Meenu

  • HTML Tags not moved in PDF

    Hello,
    I would like to print a report as a PDF and use the BI Publisher.
    This functions so far also quite well, only I have the problem
    I pass a HTML formatted text from a field CLob
    and with the PDF output the HTML tags are not moved.
    In the PDF document the HTML tags stands instead of a formatted heading,
    e.g.
    <*h1> This is the heading <*/h1> (without stars)
    What I must set / make with it I also a formatted one
    Heading agrees?
    Somebody an idea?
    Edited by: user10460383 on 14.09.2009 06:16
    Edited by: user10460383 on 14.09.2009 06:17

    True - a PDF isn't going to support HTML encoding. HTML will just be seen as more text, and displayed that way.
    You can strip out HTML tags fairly easily with a regular expression in your query SQL - this simply looks for text between < and > characters, and removes it. That should work for basic HTML formatting tags, but it isn't 100% (it won't handle <script> blocks correctly, for instance).
       select regexp_replace(myHTML, '<[^>]*>', '') as myText
       from myTable... Implementing a method to convert the HTML formatting into RTF formatting is also possible, but not a trivial task - you'd effectively have to replace each HTML tag with an RTF equivalent -- eg, replace <H1> with the RTF code to make a larger font, replace </H1> with RTF code to return the font to normal... etc...

  • Reports does not show data which contains HTML tags

    Dear Gurus
    Im trying to resolve this problem but im really stuck in it. I have the requirment to customize PO reports in R12 and at the end of every report we have to show its Terms and Conditions.I have the following query wich brings me the data i need.
    SELECT
    otu.document_number po_segment1,
    otu.document_id,
    otta.template_id,
    otta.template_name,
    otta.description,
    otta.intent,
    otta.status_code,
    otta.start_date,
    otta.end_date,
    otta.instruction_text,
    otu.document_type,
    otu.document_number po_segment1,
    otu.document_id po_header_id,
    osb.HEADING titulo_seccion,
    oav.display_name,
    oav.article_text article_text
    FROM
    apps.okc_terms_templates_all otta,
    apps.okc_template_usages otu,
    apps.okc_k_articles_b okab,
    apps.okc_sections_b osb,
    apps.okc_articles_all oaa,
    apps.okc_article_versions oav
    WHERE otta.template_id = otu.template_id
    AND otu.document_id = okab.document_id
    AND osb.scn_id(+) = okab.scn_id
    AND okab.article_version_id = oav.article_version_id
    AND oaa.article_id = oav.article_id
    AND otu.document_number='21000000111' -- Purchase Document
    AND otu.DOCUMENT_TYPE NOT IN ('RFQ_RESPONSE', 'RFQ','RFI_RESPONSE','RFI','AUCTION_RESPONSE','AUCTION')
    The problem is the field okc_article_versions.article_text storage data with HTML tags as an example : ''<P>COMPANY will make it’s best effort to provide an accurate forecast to CONTRACTOR, <B><I>at the end of every quarter,</I></B> however, a forecast in any form, shall not represent a firm commitment by COMPANY.,</P>"
    So when i tried to show the information my .rtf template nothing comes out. Does anybody knows whats happenig and how to resolve it??
    Please, resolve this issue is more than urgent an i guess somebody have the answe Thanks a lot
    Mily

    Hi ,
    Currently image url have value http://serverip:port/reports/rwservlet
    I don't know is this correct? Suggest What value it should have?
    Thanks
    Vinod

  • Sending an email with html tags in it using apex_mail.send

    Hello,
    I am using APEX_MAIL.SEND to send emails from my apex applications.
    now I need the email body to have html features: bold, underline, colors etc.
    If I use regular html tags, they show up in the email.
    How can this be done?
    Thanks
    Rani

    Hi, try
    p_body_html
    and it should display just fine :)

Maybe you are looking for

  • How to define alternate items for Spare Parts

    Hi SAP Gurus, My Client wants to implement Alternate items for Spare Parts. It is not a Manufacturing unit. Actually Client wants their Service Partners to know that ex., Material A is an alternate item to Material B and can be used for servicing wit

  • Double Invoice

    All, Suppose I have a PO for 100 KG. Then I have done GR for this PO for full quantity . Now done Invoice verification for 100 kg . Now if again I am doing Invoice verification for some quantity against the same PO ,its allowing me to do it . I have

  • Indexing external files (XML) - problem!

    Hi there, I have some difficulties to get Intermedia index my external xml-files - indeed, the query does not work properly: create table dummytable (id number primary key, docs varchar2(2000)); insert into dummytable values (111,'book1.xml'); insert

  • Immediate Submit From Dropdown List Selection

    In JSF what is the best way to get the form to submit immediately when a dropdown list item is selected? I know I can use a JavaScript onchange="..." but just wondering if there is a more standard/cool way of doing this in JSF. Thanks! Vaughn

  • Reinstall os mountain lion

    how i reinstall os mountain lion