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...

Similar Messages

  • Filting html tags, css, and javascript with regex

    hi everyone,
    im writing a small application where a user types in a url, and the text of the webpage is displayed in a text area.
    ive got it to work, however it takes some time, and also alot of content i dont want is displayed - tags, scripts and sometimes css.
    initally i filtered out the html tags with a regular expression, but i still get alot of unwanted content.
    im not a confident java programmer, and the idea of parsing html, css and javascript is the scariest idea ever to me, so my next idea is to keep only everything between the <body> tags - everything above and below it is deleted - hopefully that should leave me only with the visible content on the site.
    ive messed around with regular expressions but i cant get it to work, can anyone help out?
    thanks alot,
    Torre

    Darryl.Burke wrote:
    I tried out the regexes I posted on the source of a forum page, which is not valid html (contains two each opening and closing body tags). With a bit of trial and error I was able to remove everything upto the first, and not the second, opening tag by using a reluctant qualifier, ^.*?, but couldn't for the life of me achieve removal of only the last closing tag, leaving the other, invalid one intact. How would you do that?Regexes always try to match the first occurrence of whatever they're looking for (the sentinel), and there's no way to change that behavior (but it would be handy if you could). What you have to do instead is make sure the rest of the regex can't match the sentinel. For that you need lookahead, and the simplest way to use it is to scan the rest of the text looking for the sentinel and, if it doesn't find one, go ahead and gobble up the remaining text: "(?is)</body>(?!.*</body).*$" However, if there are many occurrences of the sentinel, you could take a serious performance hit. Here's a much more efficient way: "(?is)</body>(?:[^<]++|<(?!/body>))*+$" After matching the sentinel, this regex gobbles up anything that's not the first character of the sentinel, or the first character as long as it isn't followed by the remaining characters of the sentinel. The advantages of this regex are that it never has to backtrack, and the lookahead is only applied when it's necessary, where the first regex applies it every time.

  • Using CSS and Javascript to display a div with flash in it, mozilla reloads the flash file!

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

    I am using CSS and Javascript to display a div with an
    embedded flash object in it. Mozilla Firefox reloads the flash file
    when the div is displayed! (I dont want this to happen, as it's
    unexpected functionality, my expectation would be that the flash
    file would not change it's state at all, and would remain in
    whatever state it was left in.)
    I was wondering if anyone has come across this issue and is
    there something I can do to prevent this from occurring?
    To be more specific, I have a single HTML page with 8 flash
    files embedded in it (yeah I know, it's a bit much). I am then
    using CSS and Javascript to display (via a numbered link (with an
    id)) an equivalent numbered div tag containing the flash file.
    Mozilla Firefox reloads the flash object that is in the div.
    Internet Explorer will not do this and will instead, load the flash
    object only upon initial view of the flash object. All subsequent
    links (in IE) will NOT reload the flash object on the page. I'm
    guessing this is some kind of difference in the flash player as an
    Active X object and the plugin, or is it just IE being clever? Or
    am I way off?
    Anyway, here is the code...

  • CSS and JavaScript support in OHJ

    Hello,
    We're considering switching to OHJ for our cross-browser/cross-platform docs, but have concerns over the level of CSS and JavaScript support in OHJ.
    Concerning CSS, the online docs mention support for "Cascading Style Sheets (CSS) 1 and most of CSS 2". Is there a resource that specifically lists what isn't supported from CSS 2?
    Concerning JavaScript, is it currently supported? Some of the web references I've seen say that it's not currently supported (http://helponline.oracle.com/ohguide/help/state/content/vtTopicId./navSetId.blafdoc/vtTopicFile.blafdoc%7Cusing_browvers~html/navId.3/).
    Thanks,
    Mike

    Hi Mike,
    OHJ uses the ICE Browser, which we license from a company named ICESoft. It generally compares favorably with other Java-based browsers, although it is not as complete as a native browser such as IE or Firefox.
    There is a list of what is and is not supported in CSS:
    http://www.icesoft.com/developer_guides/icebrowser/htmlguide/featuresappendix3.html#86328
    We recently finally resolved the licensing issues that were holding us back from releasing a version of OHJ with JavaScript support. The current versions don't support JavaScript, but our next major release will.
    Depending on your needs, we also have OHW, which is a server based help system, that uses the client's native browser.
    Regards,
    Jeffrey Stephenson
    Oracle

  • Css and javascript getting called twice in publish mode

    Hi all,
    We are facing an issue only on publish environment that our css and javascripts are loaded twice on publish.
    On author it works fine.
    Can someone give some clue?
    Regards,
    Shallu

    Sallu,
    Can you delete /var/classes and /var/clientlibs and try again ? Is it happening on all publish instance or few of them ?
    Yogesh

  • Safari not rendering CSS and javascript correctly

    There seems to be a bug in Safari when dealing with CSS display property and javascript.
    I've created a form that hides certain fields when the right circumstances are met, those fields become visible. However, when they become visible, through the use of javascript, they don't display in the flow of the document. For example:
    [field 1]
    [field 2]
    [field 3]
    Assume that [field 2] is hidden on initial page load. And when [field 1] is clicked, then [field 2] should appear and it should appear after [field 1]. Safari, however, displays [field 2] above [field 1] and strips it of any styles. I spent 2 hours trying to figure out what I was doing wrong, but it turns out I wasn't doing anything wrong. It's Safari that can't render this correctly because when I test it in Firefox it works fine. Just as I expected it to. I hope this gets fixed in the next update.
    If anyone has any explanation or solutions or reasons for this peculiar anomaly please tell me.

    If you have not done so already, make sure you also tell Apple by using the Bug Reporting item in the Safari menu.

  • How can display date and time in text item ?

    Hello all,
    I have placed two text items (named text_item1,text_item2).
    I want to place the current date in one text item and place current time in another text item. how can i place this?

    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...

  • Greek and latin on text item

    Hello everybody!
    I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
    Please, if anyone knows how do I get this tell me.
    Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
    Thank you very much!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Aluisio Aguiar ([email protected]):
    Hello everybody!
    I'm trying to write different types of languages on a single text item, like greek and latin. The type of font of the text item only accepts or latin or greek, but not latin and greek together.
    Please, if anyone knows how do I get this tell me.
    Is there a way convert unicode to character? Like chr(), but this function is ASCII to character.
    Thank you very much!<HR></BLOCKQUOTE>
    Hello!
    Someone said that exists "nchr()" and
    "unistr()", but these functions only work in 9i.
    I need something that works in 8i.
    If anybody knows, help me please.

  • Style and layout for text item displayed in new window

    1. I publish a text item and selects "Link That Displays Item In Full Browser Window".
    2. When I open the item the layout and style of the window is not as wanted.
    Where can I find the template containing this layout and style? How can I create my own layout and style?

    Not possible in the current release of Portal. We're planning templates for text and other item types in a future release.
    Regards,
    Jerry
    PortalPM

  • Uploading CSS and Javascript

    I have created a custom stylesheet and also some additional javascript functions which I have uploaded to the server.
    Whenever I make changes to these documents, the changes don't seem to appear for some time when I run a web template that uses them.
    Is there something that I need to do to force the updated versions to be used?
    I have tried deleting the cache in the WAD, but this has not helped.
    Any assistance on this would be appreciated.
    Regards
    Richard

    Richard -
    Try transaction smicm
    Once there, navigate to <i>Goto ==> HTTP Server Cache ==> Invalidate ==> Global in System</i>
    This should do the trick. If not, your browser might be caching the css/js file. If this is the case, do a hard refresh ( <CTRL> + F5 in Internet Explorer )

  • How can i set page zoom level using css and javascript in firefox.

    i have problem to set zoom level in firefox.
    document.body.style.zoom = 150%; is worked in IE and Crome but not working in firefox so pls. i want to know a alise property that are provide a same functionality to me.

    Currently there is now way of retaining zoom level across pages in Single Page Mode. We have noted down your request and this might get implemented in one of  our future releases. Thanks for the feedback.
    - Adobe Reader Team

  • 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.

  • Dynamically generating text item in developer

    Hi,
    I am developing applicationn in developer 6i and I am facing problem regarding
    displaying records in form. My query is
    select ename, edept from sale where city = 'NYK'
    suppose this query fetch 10 records and I dispalyed them in developer but problem is that I donot
    want to display scroll bar in form and only 10 text items to display 10 record.
    some times my query fetch 15 record and I have opted to display 10 record and unchecked the
    scroll bar in FORMs designing it displays 10 records and 5 records where shown when i use
    key board to go down and then I can see them.
    kindly tell me whether I can use some commands to generate text items
    dynamically depending upon my records.
    If I have ten record then only 10 text items will be displayed and if 15
    then only 15 text items.
    Thanks

    Hi,
    You cannot create items at run time.
    You could create the items at design time in a control block and programatically show or hide them based on a query to retrieve the details you need.
    I would ask why you want to do this. Enable the scrollbar, let the users scroll up and down and you get all the functionality for free. No need to create a control block, populate it, control the number of displayed items, considerations on canvas size when number displayed would overflow canvas.
    Oracle spends billions of dollars developing software so you don't have to go through the pain.
    If you cannot simply do something in forms, then question the requirement, not try to re-engineer Forms
    Neil

  • Height of text items

    hi,
    I've created a form using the wizard. Some of the bigger VARCHAR based items got a default height of 4 lines, which is too much. So I changed them to a height of one line.
    But they render different in my webbrowser (both IE and Opera) than text items which have a default height of one line and which are created by the wizard automatically.
    In Opera they still have a height of about two lines, in IE the have a small inactive scrollbar on the right.
    Anyone knows how to fix that?

    Sebastian,
    If you want a height of just "1", then I recommend switching from a Textarea to a Text Box - which has a fixed height of "1" and should render the same in most browsers.
    Thanks,
    - Scott -

  • Text Item from sales order required in order relevant billing

    Hi,
    The scenario is that in the sales order there are 25 normal  line items and then the 26th item is a text item.After this again line item 27 to line item 51 are  again the same normal line items(1 to 25 repeated).The text item notifies that the items bellow are for some specific office
    The scenario is :
    1> The user creates a bill with ref to the Sales order.
    2> He has to select from the selection list.Now as same 25 items are repeated before and after the text item in the sales order, the user sees each line item twice.But the text item in the sales order is not appearing in the order relevant billing.and hence he is not able to select the correct item.
    3> what we want is that the text item from the sales order also appears in the selection list. But this item should not take pricing as mandatory.
    How to achieve this.
    Regards,
    Avinash Gyale

    As the Text Item is not displaying in selection list then kindly check the Billing Date , Payer & Payment Terms wrt the Line items from 1-25.
    The price will not be displaying if you maintain Pricing as Blank in Item category of Text Item in VOV7.
    Best Regards,
    Ankur

Maybe you are looking for

  • Email and sms sound

    Is it possible to have different sound for a sms than an Email? 

  • Error in reversing PGI

    Hi, I have a scenario where OBD got created for a STO and it was PGI'ed. After PGI, IBD got auto created. After sometime, we came to know that, the mov. types for some of the items in OBD was wrong which was 603 instead of 641. We observe that mov. t

  • Unable to order prints from iPhoto online

    After I download photos from my camera to iPhoto and attempt to upload to Walgreens, Wal-Mart, Costco, etc., I receive an error indicating that the resolution is too low. I've recently converted over to the mac from PC and didn't have this problem be

  • Downloaded .doc files are gibberish. they have an ext. html attached that was not on the e-mail

    How can I correct this?

  • Installation fail because of Mozilla

    Hi ! I'm trying to install a program client from my university website (http://www.interufr.dauphine.fr/citrix.html) but the installation fail with this error message : "Le programme d'installation ne dispose pas des privilèges nécéssaires pour accéd