Javascript with Html-db (Apex)

Hi everybody,
My function is :
<script language="JavaScript1.1" type="text/javascript">
function desactiverElement(testString,item1,item2)
{ theTest= eval(testString);
if(theTest)
for (var i=1;i<4;i++)
if (arguments)
disItem = document.getElementById(arguments[i]);
disItem.style.background = '#C0C0C0';
disItem.disabled = true;
else
disItem = document.getElementById(arguments[i]);
disItem.disabled = false;
</script>
on the page HTML Header, I put:
OnLoad="javascript: desactiverElement(('document.getElementById(\'P32_ID_FEUILLET\').value != \'\'','P32_ID_FEUILLET','P32_NEQ');"
It works. It works also when I refresh my page.
But , when I click on my « create » button, my page is appears with the new data but my field are not still disable = false it comes enable.
Can someone help me ?
Thanks. Bye.

Thank you very much Scott,
It was my Character set of file that was set to Unicode. I change it to European.... and it works.
I put my application "27331 - Feuillets" on dkubicek shema. My Onload is on page 32.
I have some problem creating my tables. I have this message:
ORA-01658: unable to create INITIAL extent for segment in tablespace FLOW_8897
Thanks. Bye.

Similar Messages

  • Running javascript with HTML

    Hi all,
    I am looking for a way and example of how to run javascript against an HTML file. My project is a web site test utility that can load HTML pages and submit forms, however some forms require executing javascript to set or validate various form fields. I've looked into the Rhino javascript engine, but I do not understand how to execute the javascript functions which change HTML form values. Can anyone give examples of how this can be done? Please let me know if I need to explain this further.
    Thanks!

    Sorry the description of what I am doing is a bit vague. My java application is like a web crawler, no web browser involved, but it needs to behave like a web browser. The application will parse html and follow links found in anchor HTML tags. When my app encounters a form, it can build the target URL by parsing the form action, and all form elements such as the input, select and whatnot. The tricky part is when forms involve javascript that may alter values in form input fields, for example, hidden input fields. In this case, my app cannot simply build the target URL combining form field values. My application must execute any found javascript functions so that the correct values are placed in the form fields, then the true URL can be built. I investigated the Rhino javascript engine, which seems great for executing javascript methods, but I cannot find how to include form fields in the HTML which the javascript function may alter. I'm not set on using Rhino, just anything that works.

  • How can I use javascript in a Text Area with HTML editor??

    My question is... how can I use javascript in Text Area with HTML editor??
    I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
    I need to limit number of characters in a text area with html editor and i can´t.
    could anybody help me please?

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • APEX - Spelling check and textarea with html editor

    I have an item on the form defines as textarea with html editor. I also need to be able to do spelling check, but the "textarea html editor" only has font features and no spelling check. Is there away to define an item to have both spelling check and font features in APEX? Any response is greately appreciated.
    Thank you,
    MT

    MT,
    No, this is not a supported region type in APEX 3.2.
    You can take a look at jQuery and the number of rich text editors available for it: http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors
    Hope this helps.
    Thanks,
    - Scott -
    http://spendolini.blogspot.com
    http://www.sumneva.com

  • How to create and use Data Vault with HTML/JavaScript (SAPUI5) for Mobile Apps?

    Hello,
    I am creating a demo Enterprise Mobile App, for cross platform and I want to use the Data Vault.
    I am not able to figure out how to implement the Data Vault with HTML/JavaScript i.e. SAPUI5 for cross platform mobile apps I have a tutorial, but it is for Android based apps. Where as I want it for iOS as well. I guess, in this case, implementing the Data Vault using SAPUI5 over HTML and JavaScript would be  better.
    If anyone has any links or sample code to implement Data vault in HTML/JavaScript (SAPUI5) or specific for iOS apps, it would be great.
    Thank you.

    Hi,
    This is the "SAP Mobile Documents" community, so this seems to be the wrong place for asking your question related to Data Vault / SAPUI5.
    Maybe you should post your question here: http://scn.sap.com/community/developer-center/front-end.
    best regards,
    Ingo

  • Javascript and html menu to be used with ADF/JSF using JDeveloper

    I have a menu for a webpage that was originally built using html and javascript. I need to convert it to be used with JSF and ADF. In the html, the menu items used an unordered list inside of a div tag.
    It looks something like this:
    <!--<div id="shademenu" class="shadetabs">
    <ul>
    <li>Item1</li>
    <li>Item2</li>
    <li>Item3</li>
    <li>Item4</li>
    <li>Item5</li>
    <li>Item 6</li>
    </ul>
    </div> -->
    AND
    the submenu(s) have links that look something like:
    <!--<div id="dropmenu0" class="dropmenudiv">
    Data
    Data
    Data
    </div>-->
    It is unclear to me how to work with my javascript menu to get the same look and feel with JSF or ADF as I did with html. Any insights would be great. Thanks.
    Daniel
    Message was edited by:
    dannyc

    Hello,
    If you do not find any existing JSF component (in ADF Faces/Trinidad, or any other JSF library) you can for sure extend/create your own component with specific renderer that will be the HTML/Javscript that you want.
    So here some interesting pointers about the subject:
    - Buildin Custom JSF component (Chris Schalk)
    - Build Custom JSF Components) (Jonas Jacobi
    - Extending Default Render (and lot of other JavaEE blueprints)
    These links will give you a starting point.
    Regards
    Tugdual Grall

  • Use of javascript and textarea with HTML editor

    Hi all,
    I have been trying to use some onchange javascript in the HTML Form Element Attributes of an item which is a textarea with an HTML Editor. It just seems to ignore the code. When you "view source" the code does not seem to be there.
    What I am attempting to do is described in thread: detecting changes to items prior to submitting page
    i.e. to warn a user that if they leave the page without saving they will lose their changes. It works fine with most of the other items on the page i.e. text boxes, select lists but not the textarea with html editor.
    Is there somewhere else I should be putting my js for items of this type? I have spent some time looking through the forum posts but cannot find an answer so far.
    Thanks,
    Brian

    I'm having the same problem.
    Would like to use the onChange event in a textarea with html editor.
    This works in Firefox (where I don't get the html editor but only a textarea) but doesn't seem to work in IE.
    Is there another way of detecting the user has changed the text in the html editor?
    Thanks,
    Pieter

  • APEX - Textarea with HTML Editor.

    All,
    I am working with Application Express Version 2.2.1.00.04
    I have the following problem:
    I have an item "Textarea with HTML Editor" which I am inserting
    information CLOB in a table.
    This data is consulted by a Region Report of APEX which has a Link that
    will be a popup. Inside the report, I use wwv_flow_utilities.URLENCODE
    (here the column is a CLOB) where it gives me the error "ORA-06502:
    PL/SQL: numeric or value error: character string buffer too small".
    I started to investigate which might be the problem and saw that the
    item "Textarea with HTML Editor" usually inserts special characters.
    I show an example of the special character that inserts and which is the
    error.
    SELECT wwv_flow_utilities.URLENCODE(' ')
    FROM dual;
    This character, which is like a space in target, is bringing problems to
    be able to execute the report.
    A provisional solution to solve this problem is to put a REPLACE into
    the Query.
    Has anyone this problem.???? Do you know why this character can be
    inserted??????
    Thx..

    Thanks Dimitri!
    I'm trying to find this place in the application but I don't have enough privileges. Here, we are working with Application Express 2.2.1 and we have to upgrade to 3.1.1.
    In order to improve the behaviour of HTML Editor Standard, I think we should integrate FCK to our application, do you know about any step by step explanation to achieve this? Because I was searching this information in the forums, but I can't find anything. Please, any information you can share with me will be very helpful
    Thanks again!

  • JavaScript Image Rollover with html:image ?

    I've got a website I'm developing in which I have a submit button as well as a button which pops up a google map within my web page. I've currently got the buttons working and doing what they are supposed to do, but I'm having trouble with a rollover image effect.
    The method I'm currently using looks something like...
    For my page with the submit button:
    <html:image src="images/spacer.gif" styleId="sButton">
    </html:image>
    For my page with the button that pops up a google map:
    <html:image src="images/spacer.gif" styleId="mButton" onclick="javascript:blahblahblah">
    </html:image>That's what I'm using to display the buttons on both pages and the functionality works. Next up is the basic CSS I'm using for the image rollover effect...
    For the submit button...
    #sButton {
    display:block;
    width:100px;
    height:100px;
    background-image:url(submitImage.jpg);
    background-repeat:no-repeat;
    #sButton:hover, #sButton:active {
    background-image:url(submitImageHover.jpg);
    background-repeat:no-repeat;
    For the map button...
    #mButton {
    display:block;
    width:100px;
    height:100px;
    background-image:url(mapImage.jpg);
    background-repeat:no-repeat;
    #mButton:hover, #mButton:active {
    background-image:url(mapImageHover.jpg);
    background-repeat:no-repeat;
    }And that's basically it. So as you can see, I'm using the <html:image> to give myself a submit button type thing which works perfectly in both cases. To try and make it have a rollover image effect I'm setting a styleId and then in my CSS declaring a default image and then a hover/active image. Back in the <html:image> tag, for the required src attribute, I've just got a spacer.gif which is a 1 x 1 image that is 100% transparent.
    The effect, at least in the Gecko based browsers I've tried, such as Firefox, is that you don't see the spacer.gif even though it is there, and all you see are the CSS background images which changes on hover. This even works in IE7.
    My problem... Internet Explorer browsers prior to 7 aren't doing the image rollover. The buttons still work, but I can't get the image to change just using the CSS... Any tips on a way to still use this method or to still use <html:image> but to use some sort of javascript solution?

    Thanks for all the quick help on this one... I got it to work just like I was hoping.
    bodhi-firestarr... You got me thinking and so I went and tried to search for a way to use that particular javascript method with the <html:image> tag. This brought me to the solution that I could use styleId just like an id and then getElementById in the javascript.
    Unfortunately, this only partially solved my problem... It made the submit button work through both CSS and JavaScript, but my map it button still wasn't working. My map button is inside of a loop generating a button for a set of results. If I used the getElementById method it would use the same id for each one causing problems. When I tried to add some sort of index to the end of the Id to fix this, it messed up my CSS, but that's when...
    gmachamer, you came up with just the solution I needed. I had no idea property actually translated to name. Once I knew this I was able to use property and got everything to work.
    Thanks again everyone!

  • Static html with url to apex pages

    I have a table with html content that contains url's to apex pages similar to
    <a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:test_page>test page</a>
    <a href=f?p=115:300:???:PAGE:::P300_PAGE_NAME:another_test_page">another test page</a>
    Where ??? needs to be the session id.
    I could use wwv_flow.do_substitutions to render the content and use &SESSION. in place of the question marks. Did not like this option as my content is in a CLOB and didn't want to parse all the content if the links are never clicked, also the content could be very large.
    I don't have much control on how the url is generated, only the base path.
    I also thought about building my own procedure to change the link value and then call the original f procedure, similar to:
    <a href="set_session?p=115:300:#SESSION#:PAGE:::P300_PAGE_NAME:another_test_page>another test page</a>
    This set_session procedure would get the session using plsql and then do the substitution and then call the existing f function.
    Is there another solution to have static url's and render the content in an html region so that when clicked the session id is maintained?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    mwooldridge wrote:
    I have a table with html content that contains url's to apex pages similar to
    <a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:test_page>test page</a>
    <a href="f?p=115:300:???:PAGE:::P300_PAGE_NAME:another_test_page>another test page</a>
    Always post HTML code using <tt>\...\</tt> tags to prevent it being rendered by the forum software.
    Where ??? needs to be the session id.
    I could use wwv_flow.do_substitutions to render the content and use &SESSION. in place of the question marks.How do you retrieve and render the content?
    Did not like this option as my content is in a CLOB and didn't want to parse all the content if the links are never clicked, also the content could be very large.I don't like that option because it uses an undocumented, unsupported API call.

  • Javascript not working in APEX

    Hi
    I am using the following javascript in HTML Header under Page Attribute
    <script type="text/javascript">
      function test()
        window.alert('This is a Home Page');
    </script>
    But it's not showing any result.
    Can anyone help me on this?

    Hi,
    You do not mention which version of apex you are working with.
    But when you edit the page there are 3 sections for javascript.
    You could use the Function and Global Variable Declaration and Execute when Page Loads.
    Put the function in the declaration part (no <script> tags necessary)
    And test(); in then Page Loads part.
    Regards,
    Kees Vlek
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    +If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.+

  • Textarea with HTML editor is not working

    Hi all,
    This is producing me a real headache.
    I created the simplest application in the world with one Textarea with HTML editor, and the editor control does not show the usual tool bar for fonts, color, alignment, etc. Just a ordinary textarea.
    Moreover, this was working before... I moved to another location in my work (me, not the server). Yes, I thought about the Internet Explorer, but Firefox has the same issue.
    So any idea I can try to make this work?
    I have another applications already in production with the same issue.
    Need help!!!!!!!!!
    Thanks in advance.
    Lukas.
    Application Express 2.1.0.00.39
    Oracle Database 10g Express Edition Release 10.2.0.1.0
    Internet Explorer 7.0.5730.11
    Firefox 1.5.0.11
    Windows XP Service Pack 2
    1 G Ram
    Pentium D CPU 2.80GHz

    Lukas,
    I would go and integrate FCKEDITOR (http://www.fckeditor.net/ ) into your application.
    Here are instructions on how to achieve this (sorry but only in German):
    http://www.oracle.com/global/de/community/tipps/einbinden_fckeditor/index.html
    It basically means:
    1) copying the files from fckeditor under the /images directory
    (you can use the instructions here: http://daust.blogspot.com/2006/03/where-are-images-of-application.html)
    2) creating two shortcuts INCLUDE_EDITOR_SCRIPTS and EDITOR
    3) placing the shortcut INCLUDE_EDITOR_SCRIPTS into the page html header and
    4) placing the shortcut EDITOR into the post element text of your plain textarea element
    That's it.
    BTW, FCKEDITOR has been included in Apex 3.0 as a standard item type.
    Regards,
    ~Dietmar.

  • Problem rendering html in Apex 3.1

    I recently upgraded an older 2.0 app to Apex 3.1. In the app, I have a few textarea with html editor fields so the user can customize page instructions. In 2.0, I was able to query the database and store the text in a hidden item, then reference the value of that item in an html region for the text to render correctly. (EX: Region Header has a source of &P100_HEADER_TEXT.)
    Now, in Apex 3.1, this no longer works. Instead, it is showing all of the html tags. If I copy and paste the contents of the hidden value directly, the html is rendered. If I change the hidden item to display as text, it is formatted correctly, but the alignment I had set up previously is off.
    I have numerous regions like this and would like to avoid having to go through and reformat all my pages. Does anyone have any suggestions?
    Thanks!

    Hi Scott,
    Yes, I was able to get it to work by adjusting my item to display as text (does not save state). However, previously I was able to compute a hidden item and use the value of the item as the source of an html region, or header for any other region, and it would render correctly. So, if the value of item p100_directions was "Please enter all valid information" in bold, previously it would display in bold. After the upgrade, it would display with the html tags around it.
    I will workaround with the display as text functionality.
    Thanks!

  • Javascript with PL/Sql

    Hi everyone,
    I want to know if it's a good idea to use javascript with PL/sql using HTML-DB (PL) (enabled and disabled button) ?
    Thank you very much. Bye.
    Eric

    I would suggest you pay attention to the base directory where the relative paths for @src and @href make pertinent value pointing to the desired resource.

  • How to insert a shoutbox and a counter in a flash file with html code?

    How to insert a shoutbox and a counter in a flash file with
    html code?
    Code shout box
    <!-- BEGIN MYSHOUTBOX.COM CODE -->
    <iframe src="
    http://489676.myshoutbox.com/"
    width="152" height="300" frameborder="0"
    allowTransparency="true"></iframe>
    <!-- END MYSHOUTBOX.COM CODE-->
    Code compteur
    <script type="text/javascript" src="
    http://www.123compteur.com/counterskinable01.php?votre_id=268303"></script><noscript><a
    href="
    http://www.123compteur.com"
    target="_blank">compteur</a></noscript>

    thx =D

Maybe you are looking for

  • Google toolbar is blank in 3.6.8 W-XP

    My Google toolbar is there but no icons appear. Running Firefox 3.6.8 on W-XP SP3. View Google toolbar is ticked. Google toolbar is functional in IE. Can anyone help?

  • Is it possible to set valid values at run time?

    Hi, I'am using a BPM Presentation and I want to know if it is possible to set the values of a combo box depending of the value of other field in the same presentation ando if so how to do it? I tried to do somethin like: var = fiedlValidValues() I tr

  • Problem with newest itunes

    I've just installed the new itunes and uninstalled it three times because it gives an error code (-3212). I am connected to the internet so I don't know what else to try.

  • Putting music on ipod -- trouble.

    heres the situation; I put music on my ipod before and was all happy and stuff. but now since i got more songs, i want to put those on to my ipod too. the trouble is, when i try to click and drag files to my ipod, it won't transfer (i can't transfer,

  • Copy Cell not working the way it did in Numbers '08

    It seems that Numbers '09 changes the way things get copied and its ruining my work process. I've got a spreadsheet with video timecode and transcriptions in it that I'm doing a rough paper edit in and then copying the timecode into Final Cut Pro. In