Adding html element identifier "class" to a label component

Hi,
Maybe it will be a straightforward question but I could not find the answer in anywhere. From the palette I am adding a label object to my jsp page. How can I set the "class" property of this label object? Because in the CSS file I have class selector rules and I want to associate "class" attributes with the components in my page. For the "label" component there is no "class" attribute on the properties window and I do not want to add the "class" property to jsp code manually.
Thanks.

Hi,
I've done this in the OnXmlLoaded function, first tracing the nodes, and subsequently (I thought) assigning them to the label text value.  How should I modify my function?
Thanks,
Sid

Similar Messages

  • WSRP Portlets - HTML elements renamed

    Moved from Webcenter Spaces.
    All,
    I have a JSR-168 portlet that I WSRP-ed using the wsrp-predeploy tool. I have this registered in Weblogic as a WSRP producer and added to Webcenter Spaces. What I notice is that when rendered on Spaces, the HTML elements including javascript function names are renamed and prefixed with some string values. For e.g. my input fields have "_adfp_portlet_field___adfpfp_f1723360181_adfpsep_f0_adfpsep_" added at the beginning and my javascript function names (within the script tag) have "adfp1723360181_" added.
    The portlet I have (it's the JasperServer portlet fwiw) uses Javascript functions for navigation. As a result of this renaming, none of the button controls work in the portlet.
    Is there anything I can do about this?
    Bijesh

    Yannick,
    That was brilliant. It worked.
    BTW, I notice that the edit mode of my portlet always opens in the Maximized state. This happens even though the portlet render url is constructed with "normal" window state. Is there anything else I need to do so Webcenter displays the portlet in normal mode?
    Edited by: Bijesh Krishnadas on Dec 5, 2010 7:33 PM

  • Html elements not declared as items ?

    Hello !
    Related to that thread (Reusing existing htp pages my question :
    Is there a chance to use html elements which are not declared as items (added a manually in html region…) ? I tried to cheat a bit by naming it p_t100 for example. Indeed, “p_t100” is accepted by the wwv_flow.accept procedure (no miss match error message). But, I’m unable to get back the posted value in an “after submit” process.
    Thank you in advance
    Pat

    Pat,
    It is not recommended you add your own HTML form elements to HTML DB pages. You point out one of the main reasons yourself. May I ask why you feel compelled to do this?
    Sergio

  • Muse changes size of embedded HTML-Elements

    Hello,
    Muse drives me crazy: I've added some HTML-Elements to my site and Muse always rescales 'em. For example: One element is 317x356 Pixels - but Muse scales it at 396x423. Now I go and change it back at 317x356 - and a few seconds later it's again 396x423. And if I try to rescale it with the mouse, it gets bigger and bigger each time I try to rescale it.
    What can I do? What is wrong with muse?
    Best,
    Sven

    How are you setting the width and height? Are you editing the embed code or using the width and height controls in Muse? YouTube videos and most HTML embed code specify their own dimensions. If you've accidentally changed the dimensions of the container holding the embed code, the easiest way to reset the widget to the default size is to drag-resize the widget with the mouse to dimensions that are much smaller than their default size. Muse will initially allow you to resize to these smaller dimensions but will then ask the browser to render the embed code and report its dimensions. If the dimensions are larger than the current size of the container, Muse will reset the container's dimensions to match those reported by the browser.
    With respect to your bandcamp embed code, it consists of an iframe with internal dimensions of 356x317. For HTML embed code pasted onto a page, Muse does not know what is in the code but it needs to know the dimensions so it can put it in a container. So, Muse hands the embed code to the browser and lets the browser determine its dimensions and generate a poster image for design time rendering in Muse. These dimensions are the initial dimensions of the container. Muse lets you style this container by adding a stroke and fill, for example, and it lets you resize the container. If you attempt to resize the container by dragging a resize handle or using the width and height controls, Muse gives the html embed code a chance to adapt to the new size of its container by handing the embed code back to the browser along with the container it needs to draw within. If the embed code is smart enough to adjust its dimensions, it will do so and pass a new poster image and new dimensions back to Muse. In this specific instance, the iframe has hardcoded dimensions so it cannot change its size. However, Muse will still allow you to adjust the container's dimensions as long as you don't resize it to be smaller than what the browser says its dimensions should be.
    Try the following experiment with your bandcamp widget. Give it a colored fill. Resize it larger than 356x317 by dragging the bottom-right selection handle. When you let go of the mouse, Muse will pass the container and the embed code for the widget to the browser to give it a chance to resize the widget. The band camp code does not respond so you see a colored fill in the portions of the container not filled by the widget. Now resize the container smaller than 356x317. Muse again gives the widget a chance to resize but the browser again returns 356x317 for its dimensions. So, Muse adjusts the dimensions of the container to match this minimum size.
    If you want to really make the widget a different size, you need to adjust the dimensions specified in the embed code. If you want to experiment, try the following:
    1. Right-mouse click on the widget and select "Edit HTML..."
    2. Find the 'width' and 'height' values and change them to something else. Try changing the width to something like 500px. Make sure you preserve quotes and semicolons and only change the numbers so that you do not break any syntactical rules.
    3. Press OK and watch how it changes the widget.

  • Compare newly added Vector Element with all previous

    Hi all
    I am adding Point2D elements to a vector "Numbers" in such a way that every newly randomly created element that is at a distance of 0.3 from all the previous points is added else not.
    I have written a code that only checks from the last element but not all the previous elements.
    Can someone check what wrong am I doing.
    The code is runnable.
    import java.awt.geom.Point2D;
    import java.util.*;
    public class Distance
         Vector<Point2D> numbers = new Vector<Point2D>();
         Random rnd = new Random();
         void getList()
         double xCoord,yCoord;
         for(int i=0;i<5;i++)// is is the no. of coordinates stored later only "b" to be used
         xCoord = rnd.nextDouble();          // X-coord of AP
         yCoord = rnd.nextDouble();          // Y coord of AP
         if(i<2)
              numbers.addElement(new Point2D.Double(xCoord,yCoord));
              System.out.println("0th n 1st element added : "+i+ "   "+numbers.get(i));
         else
         for(int j=i-1;j>i-2;j--)
              if((numbers.get(j).distance(xCoord,yCoord))>0.3)
                   numbers.addElement(new Point2D.Double(xCoord,yCoord));
                   System.out.println("next element added : "+i+ "   "+numbers.get(j)+"  with distance: "
                             +(numbers.get(j).distance(xCoord,yCoord))+"from "+ xCoord + " "+ yCoord);
         Iterator it = numbers.iterator ();
           while (it.hasNext ())
            System.out.println(it.next());
         public static void main(String[] argv)
              Distance d = new Distance();
              d.getList();
    }Thanks a lot

    Hi all
    I am adding Point2D elements to a vector "Numbers" in such a way that every newly randomly created element that is at a distance of 0.3 from all the previous points is added else not.
    I have written a code that only checks from the last element but not all the previous elements.
    Can someone check what wrong am I doing.
    The code is runnable.
    import java.awt.geom.Point2D;
    import java.util.*;
    public class Distance
         Vector<Point2D> numbers = new Vector<Point2D>();
         Random rnd = new Random();
         void getList()
         double xCoord,yCoord;
         for(int i=0;i<5;i++)// is is the no. of coordinates stored later only "b" to be used
         xCoord = rnd.nextDouble();          // X-coord of AP
         yCoord = rnd.nextDouble();          // Y coord of AP
         if(i<2)
              numbers.addElement(new Point2D.Double(xCoord,yCoord));
              System.out.println("0th n 1st element added : "+i+ "   "+numbers.get(i));
         else
         for(int j=i-1;j>i-2;j--)
              if((numbers.get(j).distance(xCoord,yCoord))>0.3)
                   numbers.addElement(new Point2D.Double(xCoord,yCoord));
                   System.out.println("next element added : "+i+ "   "+numbers.get(j)+"  with distance: "
                             +(numbers.get(j).distance(xCoord,yCoord))+"from "+ xCoord + " "+ yCoord);
         Iterator it = numbers.iterator ();
           while (it.hasNext ())
            System.out.println(it.next());
         public static void main(String[] argv)
              Distance d = new Distance();
              d.getList();
    }Thanks a lot

  • How can I add an HTML Element to a RowSetBrowser

    Hello,
    I am looking for any help on adding a HTML element such as a checkbox to every row that is returned to the RowSetBrowser. I am wanting to have the value on the checkbox be the primary key such as a logid, so that I can have a user select multiple rows, and then create a combined log that will be stored in the database as one record.
    Could anyone please let me know if you can add an HTML element to the RowSetBrowser.
    An answer would be greatly appreciated ASAP. If this cannot be done, I would like to go about it another way.
    Thank You,
    Jason

    The idea is the following:
    First you create a new attribute in the ViewObject, with the following information:
    In the definition of the new attribute, there are three things to consider:
    In the information "Attribute":
    - Name: RowChecked
    - Type: String
    - Selected in Query: Yes
    In the information "Updateable":
    - Updateable: Never
    In the information "Query Column":
    - Alias: RowChecked
    - Expression: '<input type="radio" name="recomendado" value="'||TableName.ColumName||'">Text to show'
    - Queriable: Yes
    Then in the jsp page you use the setDisplayAttributes method where you include the attributes to render, to show this attribute you have created. And if you need pass this information to another page, include a a HTML Form before the RowSetBrowser, and after the bean a button to submit the information and finally close the HTML Form.
    I hope this information can help you.

  • Can't create dynamic html elements with jsp????? important

    Hi All,
    I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
    i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
    some like this!
    <jsp:if test ="${validUser == null}">
    some simple text menu here
    </jsp:if>
    but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
    "validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
    Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
    zaman

    hi jaspre,
    thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
    all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>ValidateServlet</servlet-name>
    <servlet-class>ValidateServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ValidateServlet</servlet-name>
    <url-pattern>/ValidateServlet</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>pollAndCometEnabled</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    main.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    if any one can figure it out. i would be grateful.
    zaman

  • [svn] 696: Added package level and class level javadoc, where is was missing.

    Revision: 696
    Author: [email protected]
    Date: 2008-02-29 11:49:08 -0800 (Fri, 29 Feb 2008)
    Log Message:
    Added package level and class level javadoc, where is was missing.
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AnonymousObjectGraph.jav a
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Array.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtEmbed.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtResource.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/LineNumberMapped.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Model.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MovieClip.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/MxmlDocument.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Primitive.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/Script.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/XML.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/XMLList.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/package.html

    Hi,
    The javadoc is generated to directory /home/usr/doc and I have added a package.html as mentioned. But no change found.
    There is also no package directory in the /doc.
    My original problem is that in the index.html, there are three frames, the right hand side frame showing the overwiew. In the overview page, there is the table of packages with two columns, the left columns showing the package name, while the right column showing blank.
    How to generate comments to the right column in the table in the right hand side frame in the index.html?
    Thanks,
    Wing

  • Bind JAXB Content Model to html elements?

    We're trying to develop a system that passes an XML stream from server to client form.
    I created a JAXB content model to parse the XML so the elements can be mapped to gui components.
    A class, ContentTree, wraps the content model. ContentTree has a single method: public void loadXML(String).
    I have a jspx with a button which invokes a back-end service that returns the XML.
    I can't figure out how to bind the button's returned XML to ConentTree.loadXML(xmlData).
    Thanks!
    ps: maybe our approach is entirely lame. We need to pass the XML to the form, edit it, validate it, and send it all back to server.
    Edited by: user632544 on Feb 9, 2011 9:50 PM

    Hi Sudhakar,
    Could you please give us a more clear picture as to what you are doing. When you say HTML elements could you be speicific as to which HTML elements and how are you trying to bind these to HTML elements? Also you have mentioned about query on mulitple tables. There is a tutorial titled "Using Databound Components to Access Databases" at the page:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    The above tutorial explains how data from multiple tables can be retrieved and displayed.
    hth
    Cheers
    Giri :-)
    Creator Team

  • Adding cost element to a particular hierarchy in RSH1 leads to shortdump.

    Hi,
    I'm facing some issue in production for TCode-RSH1.
    Adding cost element to a particular hierarchy in RSH1 leads to shortdump. (Assign_Type_Illegal_Cast). This problem is causing for some hierarchies only. 
    Steps followed by us for adding cost element:-
    1) RSH1-select hierarchy name.
    2) In change mode, select a paticular node, click on cost element.
    3) Select any of the cost element & click the green button (tick)
    When we are following the above steps, it is leading to short dump and giving the following error message:-
    Assign_Type_Illegal_Cast.
    This issue is causing for some hierarchies & not for all.
    Request to suggest the solution..
    Regards,
    SDN User.

    Hi Venkat,
    That particular hierarchy is not having multiple nodes. Only one node named Rate & efficiency. and the user needs to add cost element to that node. Now how come your ans match here in this case.
    Now is that you are telling that one cost element which is selected is there for that node in some other hierarchy?But it is a different hierarchy , so if it is then it would be a problem?
    Or else I have one more doubt....
    Is that the user might be having some authorization problem for that particular hierarchy or the info object or cube where the hierarchy is? Because he is saying that he is having this problem for some few only not all hierarchies. So its understandable that RSH1 authorization to edit and create he has.

  • Adding new element to BPEL for use in PL SQL type, has binding errors

    Figured I might as well post this here since I haven't gotten a single reply in 3 days anywhere else :/
    I have a BPEL service that calls a PL SQL procedure. I have added a new element to the BPEL called quote_cart_line.
    All I had to the BPEL to accomplish this was edit 3 files -
    Async_Invoke_Import_Model.xsd (Source)
    <element name="orig_sys_line_ref" type="integer" minOccurs="1" nillable="true"/>
           <element name="quote_cart_line" minOccurs="1" nillable="true" type="integer"/>
          </sequence>
    .....APPS_NI_MODEL_IMPORT_UTIL_IMPORT_SELECTIONS.xsd (Target)
    <element name="ORIG_SYS_LINE_REF" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
             <element name="QUOTE_CART_LINE" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
          </sequence>
    .....Transform_NIE_Inputs.xsl (Transforming from Source to Target)
    <ns1:orig_sys_line_ref>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:orig_sys_line_ref"/>
            </ns1:orig_sys_line_ref>
            <ns1:quote_cart_line>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:quote_cart_line"/>
            </ns1:quote_cart_line>
          </ns1:import_line>
    .....I have done this to two other BPELs and they work fine. (1st BPEL calls the second BPEL passing this new element, which then passes it to this BPEL I am having trouble with, which then should be binding it to a PL SQL type)
    So this BPEL calls a PL SQL procedure, binding the elements from the BPEL to a PL SQL type (ni_model_import_line). So I edited the PL SQL type to accept this new parameter:
    orig_sys_header_ref       NUMBER,
           quote_cart_line           NUMBER,
           CONSTRUCTOR FUNCTION ni_model_import_line(p_part_number                IN VARCHAR2,
    MEMBER PROCEDURE add_orig_sys_header_ref(p_org_sys_header_ref          IN NUMBER),
           MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER)
    MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER) IS
    BEGIN
       quote_cart_line := p_quote_cart_line;
    END add_quote_cart_line;
    END;
    .....I invoke all of this, and the new element gets populated in 3 different BPELs, including this one I explained here. But when it comes time to call the PL SQL I am now getting an error:
    <fault>
    -<bpelFault>
    <faultType>0</faultType>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'nie_import_2' failed due to: Interaction processing error.
    Error while processing the execution of the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API interaction.
    An error occurred while processing the interaction for invoking the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API. Cause: java.lang.NullPointerException
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    </part>
    -<part name="detail">
    <detail>null</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>This doesnt happen if I remove the references to this new element and try again, so it obviously is a problem with the element, but I have no idea what it is. It works fine when going from BPEL to BPEL, but as soon as the process tries to call the PL SQL procedure this happens. It is even more frustrating because I have done this exactly before adding another element, and it worked fine...
    Any ideas or tips please?

    Figured I might as well post this here since I haven't gotten a single reply in 3 days anywhere else :/
    I have a BPEL service that calls a PL SQL procedure. I have added a new element to the BPEL called quote_cart_line.
    All I had to the BPEL to accomplish this was edit 3 files -
    Async_Invoke_Import_Model.xsd (Source)
    <element name="orig_sys_line_ref" type="integer" minOccurs="1" nillable="true"/>
           <element name="quote_cart_line" minOccurs="1" nillable="true" type="integer"/>
          </sequence>
    .....APPS_NI_MODEL_IMPORT_UTIL_IMPORT_SELECTIONS.xsd (Target)
    <element name="ORIG_SYS_LINE_REF" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
             <element name="QUOTE_CART_LINE" type="decimal" db:type="NUMBER" minOccurs="0" nillable="true"/>
          </sequence>
    .....Transform_NIE_Inputs.xsl (Transforming from Source to Target)
    <ns1:orig_sys_line_ref>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:orig_sys_line_ref"/>
            </ns1:orig_sys_line_ref>
            <ns1:quote_cart_line>
              <xsl:value-of select="/ns1:Async_Invoke_Import_ModelProcessRequest/ns1:import_line/ns1:quote_cart_line"/>
            </ns1:quote_cart_line>
          </ns1:import_line>
    .....I have done this to two other BPELs and they work fine. (1st BPEL calls the second BPEL passing this new element, which then passes it to this BPEL I am having trouble with, which then should be binding it to a PL SQL type)
    So this BPEL calls a PL SQL procedure, binding the elements from the BPEL to a PL SQL type (ni_model_import_line). So I edited the PL SQL type to accept this new parameter:
    orig_sys_header_ref       NUMBER,
           quote_cart_line           NUMBER,
           CONSTRUCTOR FUNCTION ni_model_import_line(p_part_number                IN VARCHAR2,
    MEMBER PROCEDURE add_orig_sys_header_ref(p_org_sys_header_ref          IN NUMBER),
           MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER)
    MEMBER PROCEDURE add_quote_cart_line(p_quote_cart_line                 IN NUMBER) IS
    BEGIN
       quote_cart_line := p_quote_cart_line;
    END add_quote_cart_line;
    END;
    .....I invoke all of this, and the new element gets populated in 3 different BPELs, including this one I explained here. But when it comes time to call the PL SQL I am now getting an error:
    <fault>
    -<bpelFault>
    <faultType>0</faultType>
    -<bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>
    Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'nie_import_2' failed due to: Interaction processing error.
    Error while processing the execution of the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API interaction.
    An error occurred while processing the interaction for invoking the APPS.NI_MODEL_IMPORT_UTIL.IMPORT_SELECTIONS API. Cause: java.lang.NullPointerException
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    </part>
    -<part name="detail">
    <detail>null</detail>
    </part>
    -<part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>This doesnt happen if I remove the references to this new element and try again, so it obviously is a problem with the element, but I have no idea what it is. It works fine when going from BPEL to BPEL, but as soon as the process tries to call the PL SQL procedure this happens. It is even more frustrating because I have done this exactly before adding another element, and it worked fine...
    Any ideas or tips please?

  • How to include text as HTML elements (see DOMElement)

    I am working with Flash PRO CC v. 14.0.  to convert my Flash website to HTML5 / javascript
    I have converted a file to the HTML5 Canvas
    I am very happy that the new Flash Pro has the feature to convert to HTML5 canvas
    HOWEVER:
    In my original .FLA file project I use only one font: Copperplate Bold.  I use several sizes of that font within the project / scene
    In the original file for all text I use static text, Letter spacing, AntiAlias, AutoKern and single line (Linetype)
    - none of which the HTML5 canvas seem to allow / support?
    How do I maintain the FONT look that I have chosen in my original FLASH project, after I convert to HTML5 canvas?
    Is there a way in the HTML canvas to maintain the FONT look that I want?
    HTML5 canvas will not allow Font embedding
    The device font destroys the LOOK of my Copperplate Bold font.
    How do I include text as HTML elements (see DOMElements)?
    WARNINGS generated when I convert the original file into an HTML Canvas:
    Warnings generated while copying/importing in 140827a HTML test.fla:
    * AntiAlias is not supported in HTML5 Canvas document, and has been converted to DeviceFonts in an instance of Text.
    * AutoKern is not supported in HTML5 Canvas document, and has been removed in an instance of Text.
    * Frame Scripts have been commented
    * LetterSpacing is not supported in HTML5 Canvas document, and has been converted to 0.0 in an instance of Text.
    * LineType is not supported in HTML5 Canvas document, and has been converted to MultiLineNoWrap in an instance of Text.
    * Some artwork contains Hairline stroke, which is not supported in HTML5 Canvas document, and has been converted to Solid.
    * StaticText is not supported in HTML5 Canvas document, and has been converted to DynamicText in an instance of Text.
    New HTML Canvas Document created.
    NOTE:  So far the only way I have been able to maintain the font look is to convert the fonts to .png files
    This is painstaking work that I would like to avoid.
    Even then I still get a WARNING when I test my scene - (no doubt because I left the original FONT text  in guide layers)
    After conversion ON TEST SCENE:
    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (18)
    Only circular (not oval) radial gradients are supported. (85)
    Text support is limited. It is generally recommended to include text as HTML elements (see DOMElement). (6)
    Color effects are published as a filter and subject to the same limitations. (4)
    Filters are very expensive and are not updated once applied. Cache as bitmap is automatically enabled when a filter is applied. This can prevent animations from updating. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
    HOW CAN I MAINTAIN the FONT LOOK that I have chosen for my project?
    How do I include text as HTML elements (see DOMElements)?
    ANY HELP will be appreciated
    A good, in depth, tutorial on the subject (FONTS) would be a BIG help to many using the convert to HTML5 canvas features.

    GOOGLE HAS
    https://www.google.com/fonts
    choose a font from above site
    then:
    google generates instructions on how to embed that font
    Montserrat
    3. Add this code to your website:
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    4. Integrate the fonts into your CSS:
    The Google Fonts API will generate the necessary browser-specific CSS to use the fonts. All you need to do is add the font name to your CSS styles. For example:
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Ubuntu', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;

  • Everytime i open Mozilla Firefox appears several messages saying that there were errors on adding toolbar element or menu element.How can i get rid of this?

    I changed my operative system in my computer to windows 7 and add several plugins to my mozilla firefox, and after that i couldn´t find the plus signal to open a new page in a new tab.So, everytime i opened a new page it oppened a new firefox window, and this was very boring.So, i tryed to open mozila in safe mode and tryed to add some extras and i think it was because of this that i started to have several boxes from java script application opening and telling about several errors everytime i open a new window in mozilla.The errors are the following:
    "error on adding toolbar element:NS_error Unexected, component returned failure code:0x8000fff (NS_Error_Unexpected)...id:places-New Place
    or:id:Plus-Circles
    or:id:Plus-Profile
    or:id:Wallet
    or:id:Web fonts
    error on adding menu element:NS_Error_Unexpected, component returned failure code:0x8000fff(NS_Error_unexpected) id:Places-New Place
    id:Plus-Circles
    id:Plus-Profile
    id:Wallet
    id:Web fonts
    id:"
    The problem now is that despite the errors appears all the time i open firefox, the good thing is that the plus signal now appears and i can open a new page in a new tab but that page opens at the same time in a new window!!! I mean the page appears in a new tab and in a new window and the errors are appearing all the time i open mozilla!What can i do to get rid of this???

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • When I try to start Firefox I get an Error Message: (Javascript /application) Error on adding toolbar element. TypeError, aButtonLabel is undefined. id. Google Shortcut settings

    When I try to start Firefox I get an Error Message: (Javascript /application) Error on adding toolbar element. TypeError, aButtonLabel is undefined. id. Google Shortcut settings. Firefox will not start. I have been through the troubleshooting steps. Nothing helps
    == I tried to enter Firefox. No apparant reason ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; AskTbGLSV5/5.8.0.12304)

    Hi,
    had this problem but now sorted.
    Go to settings for google shortcuts, follow link to homepage and upload latest version, it has not yet been approved by Firefox, but works and solves the bug.
    Hope this helps.
    A

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

Maybe you are looking for