Css and js in simple text items.

Portal 9.0.2.3
I've read in other threads that you can add javascript and css into simple text items by clicking the 'View HTML Source' checkbox and adding the js or css code.
When I do this then apply it the code that I have added disappears and therefore has no effect on the item.
Any ideas what I'm doing wrong?
Cheers,
Steven.

That's a known problem with the IE rich text editor that would require a fix from Microsoft. In 9.0.2.6 we allow you to disable the editor at the page group level as a workaround to this problem, but then all users have to enter plain HTML.
As an alternative, you can use the HTML portlet or a dynamic page portlet to enter script and other problematic HTML code. In 9.0.2.6, you can disable the editor for a page group that is used to maintain banners and nav bar, and then publish those pages as portlets.
Regards,
Jerry
PortalPM

Similar Messages

  • How to change data type and col. width of text item

    hi,
    how will we change the datatype and width of a text item in runtime.
    set_item_property(itemname,fixed_length,20);--- it is for width.
    please help me.
    Regards

    Hello,
    You cannot change the datatype at runtime.
    Start with a CHAR item then do the corresponding cast (NUMBER or DATE)
    Francois

  • Formating of simple text item

    Hi
    Where does a simple text item pick up it's style from? (if you use the H1 etc. for example).
    I am using 9.02
    Thanks
    Dave

    Items get their style from the page or the region, if the region has been configured to use a different style. The portal-supplied styles do not define the standard browser styles (H1, strong, etc.), so you are most likely seeing the browser default if you use these styles in text items.
    If you want to define your own style sheets, you can do so in an Unstructured UI Template.
    Regards,
    Jerry
    PortalPM

  • How to browse local files in Client Side and pass to a text item?

    I am writing an Oracle 10g Form to get the path and filename from local PC (Windows XP) by clicking a Command Button, select the folder and files and then pass the full path and the filename to a Text Item.
    Does ORacle10g supports this feature?
    If yes, would this features also work for Linux?

    Hi,
    Check out WebUtil from
    http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
    HTH.
    Regards,
    Arun

  • How to get only the filename and extension for a text item?

    Suppose there is a non-database text item called :myfilename
    :myfilename := 'C:\SomeFolder\SomePath\myfile.doc';
    I would like to get the file name only without the full path,
    i.e. myfile.doc
    and the file extension, i.e. 'doc', 'bat', 'java', 'xhtml' etc., i.e. the last few chars from the right to the period.
    Any help is welcome.

    Thanks for the hints.
    I defined the non-database Text Item called FULLFILENAME and another two text items called FILE_NAME, FILE_EXTENSION. The following can extract the file extension,
    select substr(:FULLFILENAME,instr(:FULLFILENAME,'.')+1) into :FILE_EXTENSION from dual;
    e.g.
    :FULLFILENAME := 'C:\MyFolder\AnotherFolder\file.doc';
    FILE_EXTENSION becomes 'doc'
    but I would also like to extract only the filename without path into FILE_NAME,
    i.e. file.doc
    Please give more hints. Thanks.

  • How to run user enter value query and get result on Text item

    Hi ,
    I'm really newbie at JDeveloper and ADF , I want to run the query below , before with Forms i just adding :TEXT_NAME to get the entered users value , what I have to do now with ADF , really it's not clear question and I would appreciate any help with this ,
    select
    nvl(min(substr(a.starttime,1,8)),0) Service_Start_Time, nvl(sum(a.sessionvolume),0) Total_Traffic_KB
    FROM
    aaa_bill a
    where
    msid=:TEXT_ITEM
    and starttime >=(select max(fee) FROM aaa_bill
    where msid=:TEXT_ITEM and accountreason=5) ;

    You can use a ADF parameter form for this requirement.
    https://blogs.oracle.com/shay/entry/combining_multiple_queries_and

  • Css and javascript in text item

    I've read in other threads that you can add javascript and css into simple text items by clicking the 'View HTML Source' checkbox and adding the js and css.
    When I do this then apply it the code that I have added disappears and therefore has no effect on the item.
    Any ideas what I'm doing wrong?
    Cheers,
    Steven.

    Hi
    This depends on ur needs
    WHEN-NEW-FORM-INSTANCE > if u want to appear it on the very begining moment
    --=============
    u can use
    WHEN-VALIDATE-ITEM > on ur date fields
    Here is a link that may help u decide where to take off with this code...
    http://www.dotnetspider.com/resources/22433-Triggers.aspx
    http://www.slideshare.net/magupta26/oracle-forms-tutorial
    Hope this helps ,
    Regards,
    Abdetu...

  • Add text item data and display the output in another text item

    Hi! All,
    I have four text item. like HA,DA,basic_salary and total_sal.I want to add the data entered in the text item in HA,DA,basic_salary and display in total_sal text item.How can I do this.Please help in this matter.
    Thanks,
    Abha

    1.Select the text item TOTAL_SAL
    2.Open property palette
    3.Under Calculation node
         Set calculation mode as Formula
         Set Formula as nvl(:ha,0)+nvl(:da,0)+nvl(:basic_salary,0)                                                                                                                                                                                                                                                                                                                                                                                               

  • Setting up aliases for css and images directories

    Hi
    Another beginner question. I am using R2 on Linux.
    I am setting up a portal wherein I would like
    to reuse many of the HTML web pages from an existing
    website within a Portal framework. If you have any
    suggestions from experiences like this would be
    helpful to me.
    I have uploaded all my images to ...portal/images
    and uploaded my css style file to ...portal/css
    What I need to do now is set up aliases (ENV variables?)
    on a system-wide (or portal-wide) level
    /my_images/ -> ....portal/images
    /my_css/ -> ...portal/css
    so that in my HTML code I don't have to have a
    hardcoded pathname.
    I am not a DBA so I have asked the DBA who set up
    my 9iAS Portal about this but he says he is not sure
    where this should be set up. He said there is an apache
    httpd.conf file, but doesn't think that would be the
    correct place to define these aliases.
    Thank you for your advice.
    Kiirja

    The image alias is held in the portal.conf file on the middle-tier at /<oracle_home>/portal/conf/portal.conf
    I may have a simpler solution. All R2 default images (for the middle-tier) are located at portal/images. I made a folder under images which I'll call my_images for this example. These images can then be called as follows:
    <IMG SRC="/images/my_images/image.gif">
    You can create a custom CSS, place it in the Apache document root directory /<oracle_home>/Apache/Apache/htdocs and then call it from an HTML-based simple text item you place at the top of a portal page. It's not W3 spec, but it works with IE 5+ and may work with other browsers.

  • How to change font and font size of textarea item

    hi -- I have several form pages which for the most part have text items. However, I do
    have a few textarea items, and the font and font size of these are defaulting to
    something different than the text items.
    How can I change the font and font size of the textarea items, preferably in such a
    way that it will apply to all textarea items in my app?
    (And, to take a step back, where can I find the font and size definitions for these
    items? I assume it's in the CSS (??) but don't really know what to look for.)
    Thanks,
    Carol

    >
    I do have one last thing I'd like to get resolved, if possible. Both the text and textarea items are
    width 100 and height 1, but the textarea is a bit wider and taller than the text item. If possible,
    I'd like to get at least the widths to match exactly, for aesthetics. (There was a much larger
    discrepancy before the size and fonts matched...) Maybe it's just a characteristic of textareas
    that they have that extra bit of width and height... I don't know
    >
    If you look at the generated HTML source you'll see that the APEX width value ends up in 2 different attributes: size for the text field and cols for the textarea. How each of these is transformed into the dimension used to render the control obviously differs, and how either is used will also differ across browsers and platforms. Where you want control over this the best idea appears to be to ignore the width value (APEX lets you blank this out, but resets it to 30 if the definition is subsequently edited) and explicitly set the width property in CSS, as I've now done on your example using HTML Form Element Attributes. This could also be done in a style sheet using the APEX-generated item IDs (P1_TEXT etc) as selectors.
    The APEX height value is only applied to the textarea rows attribute: it has no effect on the text field. Again, how this works will be implementation-specific and is better handled explicity using CSS. (Anyway I'm doubtful about a 1 row high textarea? It doesn't affect the ability to enter more than 1 line of text. Looks confusing.)
    cols and rows are required attributes for textareas, so APEX has to generate the attributes, but we're better off specifying width and height in CSS to override the browser's computed rendering.
    (This is the first time I've put an app on apex.oracle.com... so hopefully it'll be smooth sailing for you.)Apart from not noticing that the region was cached and wondering why my changes weren't having any effect? Thought I was losing it... ;-)
    Edited by: fac586 on Jul 8, 2009 9:14 AM

  • Font size dependent text item size calculation

    Hello there always helping hand !!
    I have a requirement like this
    1. Depending on the Form Co-ordinate system
    2. Depending on the Font name and size of the Text Item
    3. For a multiline text item
    4. Given the context string to display in it
    I want to calculate the optimal width and hight for that text
    item.
    Please give me sugestion on the calculation formulae and or
    pointer to the detailed discussion....
    Thanking you in anticipation
    Santosh
    [email protected]
    null

    >
    Naresh Kumar Malik wrote:
    > Hi
    >
    >
    >
    >
    > You can use <h1> HTML tag. Here
    > concatenate   '<h1>'  item_eform_reqno '</h1>' into head.
    >   wd_context->set_attribute( exporting name = 'EFORM_HEAD' value = head ).
    >
    >
    > Here attribute EFORM_HEAD is bounded to the text view element.
    >
    > Regards
    > Naresh
    This should NOT work!  The UI elements should safe encode all input values - thereby eliminating the value of any HTML tags. If you system isn't doing this already then it is a bug and if you rely on such a thing it will stop working at some point in the future.
    You are basically restricted to different values available via the design parameter.  The overall font sizes come from the underlying themes and the client applications (browser or NetWeaver Business Client) that host the Web Dynpro Application.  Therefore no direct specification of the font size is possible in order to stay within the controls of theme.  If you don't like any of the designs available, you might consider altering the Portal Theme you are using - but that is a rather drastic approach.

  • Post Text Item Trigger

    I have a master block and a detail block, which is a multi
    record block; for one item in the detail block I created a post-
    text-item trigger to check if this value exists;
    the problem now is that this trigger not only fires if I leave
    the item, it also fires at the beginning when the canvas is
    dieplayed and I execute a query
    can anybody tell me why this happens and how to avoid it?
    thx in advance, michaela
    null

    Michaela (guest) wrote:
    : I have a master block and a detail block, which is a multi
    : record block; for one item in the detail block I created a
    post-
    : text-item trigger to check if this value exists;
    : the problem now is that this trigger not only fires if I leave
    : the item, it also fires at the beginning when the canvas is
    : dieplayed and I execute a query
    : can anybody tell me why this happens and how to avoid it?
    : thx in advance, michaela
    What happens in your form is perfectly normal.
    You should use the When-Validate-Item trigger, and, eventually,
    set the text-item required.
    null

  • Avoid a text item behaviour

    Hello
    I need some help from you guys. I'm using forms 4.5 and I have a text item displaying 10 items with 10 corresponding checkboxes. When only part of the items are filled, I'm able to click on an empty item which activate the corresponding checkbox and this behaviour is not what I want. If I put the text item with 'navigation enabled' property to false, I'm getting what I want: I'm then not allowed to click on an empty item, thus the checkbox is not activated. However, I need to have navigation enabled to true. Is there a property that allow me to achieve the behaviour I'm looking for? Any ideas of how I can managed that?
    Thank you
    John

    Hi, the initial post is very vague.
    1) this 10 columns you have, is there data in it? is it based on a table?
    2) will there always just be 10 rows?
    3) do you want to insert records into this block?
    4) do you want to delete records in this block?
    I dont' know how you can just randomly click on a null value in the table, what is your current record set at?
    obviously all other suggestions you have been given are not successful
    your next step might be into looking at triggers at item level
    WHEN-VALIDATE-ITEM or KEY-NEXT-ITEM to programmatically set your check box to enable or disable
    *SET-ITEM-PROPERTY('yourcheckbox',ENABLED, PROPERTY_TRUE);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Issue with Tabular text item block

    Hi,
    This is the psuedo form structure. First block contains search text item and ok button.
    Second block is a multi tabular form block with text items. only last text item in column is editable by user to enter values.
    | |
    | Search text OK |
    |_____________________________|
    | multi item-tabular block |
    | text item |
    | text item |
    | text item |
    | text item |
    | text item |
    User will enter search text and hit enter and it will trigger LOV and it will display list, of which user will select one and again hit enter. then the second multi tabular block is populated with values and cursor goes to text item and user can enter values in that text item.
    Problem is cursor is blinking in the middle of text item and if I try to enter some then value is displayed from the middle of text item. I tried adding a condition check if there r any nulls and removed nulls then cursor is at the right (which is correct) but after I enter some value and hit ENTER then again cursor is staying in same text item at the middle but the cursor record has moved to next record.
    Looks something like this- cursor at the middle of text item.
    233| $.00
    I have Validate-trigger, key-next-item, key-prev-item.
    Thanks in advance
    Sai

    Thanks a lot to all who spared their time looking into my question and replying.
    This is an Oracle BUG! You can check it in Metalink.
    Whenever there is any Timer enabled(with 1ms ONLY) in the form and If user is trying to move cursor in the Multi record block using Keyboard then it will not work.
    So I changed the Timer from 1ms to 2 ms (which is does not make much difference to application) then it worked fine.
    Thanks
    Sai

  • I made a text nav bar using CSS, and I am trying to get downdown menu's from it?

    Hello,
    I am working through a tutorial book and just created a text navbar with CSS, which I have never done before. Basically it was an Unordered list and then I used the float property right to make them go next to each other. Then created a few more styles to give them padding etc.
    I thought I could go after each list item and now add a group of unordered lists items to pop up when I mouse over., but whatever I try in a new CSS style doesn't work to put them underneath.
    Here is the code  and the style sheet code thus far, and I have colored in blue, the items I wanted to have dropdown menu's come from. Can anyone help me or guide me to where I might find this info? I want to get to the next level, but this is as far as the book goes.
    thanks!
    babs
    @charset "UTF-8";
    body {
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        font-size: small;
        color: #333;
        background-color: #739112;
        text-align: center;
        #container {
        background-color: #FFF;
        width: 840px;
        margin-right: auto;
        margin-left: auto;
        position: relative;
        text-align: left;
        background-image: url(images/container_bg.gif);
        background-repeat: repeat-y;
    #header {
        height:80px;
        z-index:1;
        background-color: #9fcc41;
        background-image: url(images/veggies.jpg);
        background-repeat: no-repeat;
        background-position: right;
    #header img {
        margin-top: 20px;
        margin-left: 15px;
    dl {
        color: #000;
        font-size: medium;
        margin-left: 15px;
        font-family: Georgia, "Times New Roman", Times, serif;
        font-weight: bold;
    dd {
        font-size: small;
        margin-bottom: 10px;
        font-weight: normal;
        margin-right: 10px;
        font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
        margin-left: 5px;
        #navigation {
        background-color: #88b036;
        height: 36px;
        width: 100%;
        #footer {
        background-color: #ccc;
        clear: both;
        height: 1%;
        #main {
        float: left;
        width: 520px;
        padding-left: 20px;
    #navigation ul ul {
        float: none;
    #container #navigation ul ul {
        float: none;
        clear: none;
        #sidebar {
        float: right;
        width: 270px;
        background-color: #c8d9bc;
        border-left-width: 2px;
        border-left-style: solid;
        border-left-color: #060;
        #navigation ul li {
        float: left;
        list-style-type: none;
        #navigation ul li a {
        text-decoration: none;
        color: #FFF;
        padding-top: 8px;
        padding-right: 15px;
        padding-bottom: 8px;
        padding-left: 15px;
        display: block;
        #navigation ul {
        margin: 0px;
        padding: 0px;
        #navigation a:hover {
        background-color: #9fcc41;
    <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=&quot;http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; />
        <title>OrganicUtopia Home Page</title>
        <style type=&quot;text/css&quot;>
        </style>
        <link href=&quot;styles.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; />
        </head>
    <body>
    <div id="container">
      <div id=&quot;header&quot;><img src=&quot;images/ou_logo.gif&quot; width=&quot;210&quot; height=&quot;41&quot; /></div>
      <div id="navigation">
        <ul>
         <li><a href=&quot;#&quot;>Home</a></li>
          <li><a href=&quot;#&quot;>About US</a></li>
          <li><a href=&quot;#&quot;>Products</a></li>
          <li><a href=&quot;#&quot;>Services</a></li>
          <li><a href=&quot;#&quot;>Contact</a></li>
        </ul>
      </div>
      <div id="main">
        <h1 >Welcome to organic utopia</h1>
        <p>There's big news at OrganicUtopia this month! We've expanded to include 2 new lines of body and earth-friendly products. We now carry bio-degradeable furniture - imagine a couch you can leave on the street that will slowly decompose back into Mother Earth! We also have added recyclable shopping bags, which eliminate the need for the age-old question &quot;paper or plastic?&quot;. These bags are tough, stylish, and eco-friendly!</p>
        <h1 >What do we do?</h1>
        <p> We've got everything from healthy<a href=&quot;#&quot;> lifestyle foods</a> and <a href=&quot;#&quot;>organic gourmet products</a> to other lifestyle products. We also have a full line of eco-friendly furniture, clothes, candles and home furnishings.</p>
        <h1>One stop shoppingOne stop shopping</h1>
        <p>You can find it all here, and our online store makes it easy to order! Pick from carefully selected food, lifestyle and home products and add them to your shopping bag, all from the convenience of home. We even offer free shipping on many items, or save you big dollars by shipping items together.</p>
    <p>You can find it all here, and our online store makes it easy to order! Pick from carefully selected food, lifestyle and home products and add them to your shopping bag, all from the convenience of home. We even offer free shipping on many items, or save you big dollars by shipping items together.</p>
        <h1>Member benefits</h1>
        <p>Anybody can shop at Organic Utopia, members however, enjoy certain benefits. For only $150 a year you will recieve a 20% discount on anything in the store. Additionally, you can take advantage of ordering bulk items when you become a member. There's really no reason *not* to join! <a href=&quot;#&quot;>Learn more.</a></p>
      </div>
      <div id="sidebar">
        <dl>
          <dt>December 20, 2012</dt>
          <dd>Organic Utopia's blowout sale. Lots of great deals on clothing, food, green accessories and more. Big saviings can be found everywhere!</dd>
          <dt>December 21, 2012</dt>
          <dd> All Organic Utopia stores will be closed to non-members as we prepare for the first annual World Age exhibition. Members are encouraged to come to your local store and help prepare for this once-in-a-lifetime event.</dd>
          <dt>December 22, 2012</dt>
          <dd> Community Green up. Volunteer to help clean up your community's neighborhood. </dd>
        </dl>
      </div>
      <div id="footer">Content for  id "footer" Goes Here</div>
    </div>
    </body>
    </html>

    Perhaps it would be helpful for you to view the page source code of this page
    http://www.alanwork.com/
    As you can see, the submenu code links are immediately below the top level code, and are
    wrapped in their own  <UL> </UL> tag pairs.
    Hope that helps

Maybe you are looking for

  • How can I uninstall a software update?

    I recently installed "Java for Mac OS X 10.6 update 12".  There was something in the description of the update about security and having to approve each use of Java apps.  Now I have a problem with printing pdfs I get in emails.  Nothing comes up to

  • Directory corrupted

    Can anyone help here. I looked for support on this but found no answers... I restored my iPod because it froze. All the music was erased. When I went to plug it in it wasn't showing up within iTunes but the iPod had the "Do Not Disconnect" on it's sc

  • Upgrading 2006/2007 Mac Pro to 8800GT

    Hi All, I want to upgrade the graphics card in my Mac Pro with the NVIDIA GeForce 8800 GT Graphics Upgrade Kit for Mac Pro as sold on the Apple Store. I have two questions: 1. Will the card sold on the store work? The person I spoke to said it would

  • How to automatically update Java without notifications

    I just want Java to automatically update in the background - like Windows updates do.  Is such a simple thing possible?  If so, how? I understand that techies think it important to be notified.  However, I am not a techie, just a regular computer use

  • Date modified error

    hello i am having a strange problem. all of the dates under my date modified tab read 09/21/07, even on files that i have used yesterday or the day before. it has become a royal pain. i am working on an aluminum 20inch imac. any answers or help would