Java script giving error

Dear All,
I am trying to a do a simple thing but nothing happens.
Requirement :
In my interactive form when I click on the check box i want a table to be invisible else it should be "visible" by default.
The code which i have used on the click event is :
if ( chb_acc.rawValue == "1" )
then
tbl_acc.presence = "hidden" ;
endif
When I click on the checkbox nothing happens.This is the exact code so please do let me know if I have missed out on anything.
Regards,
Geet

hello geet ,
  you are not using the right code .
If you are using Javaacript as scripting language ,then
if  (CheckBox1.rawValue     == 1)
Table1.presence     = "invisible" ;
else
Table1.presence = "visible" ;
if  you are using Formcalc then code should be -
if  (CheckBox1.rawValue     == 1)
then
Table1.presence     = "invisible"
else
Table1.presence = "visible"
endif
here , table1 and checkbox1 should be object names.
hope this helps .
thanks,
sahiba

Similar Messages

  • Ever since I downloaded FF's v6, everytime I go to YouTube and open a video, I get an error message that says: "[Java Script Application] Error: Div is null" How do I fix this problem?

    If I go to YouTube, no matter what video I click on to watch, the error message "[Java Script Application] Error: Div is null" pops up. It started happening right after I updated to FF v6. I also have installed the latest version of Java. I submitted this question a few weeks ago, but never received a reply.
    Thanks for any help you can provide to fix this.
    Scott Cromwell
    [email protected]

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • Whenever I use facebook I'm getting this error message [Java Script Application] Error: options is undefined whenever I click on a link. What can I do to fix this problem? Easy step by step instructions please.

    When I use facebook, I keep getting this message [Java Script Application] Error: options is undefined whenever I try to return something, click on a link, or message, open a game, etc. ... I have Windows 7, addons of greasemonkey and better facebook (which seems to have disappeared)
    == URL of affected sites ==
    http://www.facebook.com/reqs.php#!/?ref=home

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Why do i keep having java script application error "on HidePage called" everytime i launch, browse and close Firefox?

    why do i keep having java script application error (on HidePage called) everytime i launch, browse and close Firefox?
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    Hello Bo.
    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • Whenever i open gmail it appears which says-"java script application,Error: Illegal operation on WrappedNative prototype ",how this will resolve,anyhow.object

    Question
    whenever i open gmail it appears which says-"java script application,Error: Illegal operation on WrappedNative prototype ",how this will resolve,anyhow ?

    This is usually caused by an extension that is using a name for a variable or function that has become a reserved variable name and thus can't be used anymore.<br />
    You will have to check if there is an update is available for your Firefox 29.0a2 Aurora version.
    If it works in Safe Mode and in normal mode with all extensions (Firefox/Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit)
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why do I keep getting Java Script address error messages?

    I just installed FF on my Macbook, and am constantly getting java script address error messages popping up.

    Does the below article help resolve the messages?
    * [[Warning Unresponsive script - What it means and how to fix it]] < Click to see article

  • When accessing the form on the races instead of a form guide I get a java script void error. How do I fix this please ?

    When in the TAB Racing site at a particular race I click on Form to access the form guide for that race. Instead of the form guide I get an error message " Java Script Void " This has only started recently and not as a result of anything I have done ..... HELP !!!

    Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
    http://support.apple.com/kb/PH12491

  • Java script 404 error

    As soon as I on wi if it opens page with java404 error and did not allow me to login my isp and if if close this page and try to go to safari to login it disconnects wi fi, in previous iOS I have never came across such problem

    Java and Java Script are different things. If you need Java Script, go to Settings>Safari>Java Script>On.

  • Indesign Java Script running error

    Hi 
    I am new in indesign scripting
    I want to create indesign Application using java script and without using ExtendScript ToolKit
    In this case how create app (the application object).
    if i use ExtendScript ToolKit then there is no need to create application object. app is bydefault
    But i do not want to use of ExtendScript ToolKit .
    I want to create simple java script using
    <script type="text/javascript">
    //body
    </script>
    when i run my java script (.js) file then it create indesign Application (instance).
    For example on mac in Apple Script when i run my apple script
    tell application "Adobe InDesign CS5.5"
    set myDocument to make document with properties
    end tell
    in apple script editor which is inbuild with mac, Indesign Application start(create) sucessfully.
    There is no need any ExtendScript ToolKit type tool to run (start) indesign application.
    only script line  tell application "Adobe InDesign CS5.5"   create application instance.
    In VBScript we create application object using this :
    VBScript
    Set myInDesign = CreateObject("InDesign.Application")
    In Java Script how create Indesign Application  Object.
    I try to create Indesign Application object but not sucess.
    <!DOCTYPE HTML>
    <html>
    <head>
    <title>Testing JavaScript</title>
    </head>
    <body>
    <script type="text/javascript">
    var app = CreateObject("InDesign.Application");
    var myDocument = app.documents.add();
    var myTextFrame = myDocument.pages.item(0).textFrames.add();
    myTextFrame.geometricBounds = ["6p", "6p", "24p", "24p"];
    myTextFrame.contents = "Hello World!";
    </script>
    </body>
    </html>
    How create Indesign application Object using JavaScript ?

    Thanks Mark for reply
    I put my script at Trusted location C:\\Documents and Settings\\Administrator\\My Documents\\Adobe Scripts\\NewSript.jsx
    Now I want to execute my script using below method but it not execute and return message "No documents open".
    #include "indesign.h"
    INDESIGN::_Application oApplication;   
    if(oApplication.CreateDispatch(L"InDesign.Application") ==0)  // it start Indesign Application
            // Dispatch is not created
    CString ScriptPath =L"C:\\Documents and Settings\\Administrator\\My Documents\\Adobe Scripts\\NewSript.jsx";
    oApplication.DoScript(COleVariant(ScriptPath),long(1246973031),covOpti onal,long(1699967573),ScriptPath);
    It prompt message "No document open". While I double click on NewScript.jsx it run sucessfully.
    General syntex of  oApplication.DoScript() is
    any doScript (script: varies[, language: ScriptLanguage=ScriptLanguage.UNKNOWN][, withArguments: Array of any][, undoMode: UndoModes=UndoModes.SCRIPT_REQUEST][, undoName: string=Script])
    Executes the script in the specified language as a single transaction.
    I use long(1246973031) for The java script language.
    I do not understand where is problem.
    my .jsx file data is
    var myDocument = app.activeDocument;
    var myTextFrame = myDocument.pages.item(0).textFrames.add();
    myTextFrame.geometricBounds = ["6p", "25p", "30p", "30p"];
    myTextFrame.contents = "Adobe Indesign !"
    Thanks

  • Print postscript script giving error on .print(false) JS CS3

    I found this example here:
    Olav Kvern, "Need script for printing Postscript files (ID CS2)" #4, 19 Nov 2007 4:45 pm
    But if the ID doc has a blank page an error on the myDocument.print(flase); will occur.
    The message I'm getting is:
    The configuration was invalid or the user cancelled. Please try the same operation in the user interface to see more detailed information.
    Once you get rid of the blank or add something to the blank the error is gone. Does anyone know how to stop the error if a user adds a blank page?
    Cheers.

    Thanks priyan, Olav,
    I will try your suggestion priyan. If I can check the page itme and get back a null result I should be able to get the for loop to skip to the next page correct?
    Olav hope you don't mind but I made a slight change to give the user an option to print a specific page if required. Just a warning the script does not check that the number you enter is part of the doc. So if you doc range is from pages 19 to 24 and you try and print page 2 it will error.
    For anyone else out there that finds this useful you can also change the browse option to a drop menu and set the paths for output. This will speed up the process if you have set paths.
    Anyway here is the alteration.
    //PrintEachPageAsPS.jsx
    //An InDesign CS3 JavaScript
    //Prints each page of an InDesign document as a PostScript file to
    //a selected folder.
    main();
    function main(){
    if(app.documents.length != 0){
    //Display a "choose folder" dialog box.
    var myFolder = Folder.selectDialog ("Choose a Folder");
    if(myFolder != null){
    myExportPages(myFolder);
    else{
    alert("Please open a document and try again.");
    function myExportPages(myFolder){
    var myPageName, myFilePath, myFile;
    var myDocument = app.documents.item(0);
    var myDocumentName = myDocument.name;
    var myDialog = app.dialogs.add();
    with(myDialog.dialogColumns.add()){
    staticTexts.add({staticLabel:"Base name:"});
    staticTexts.add({staticLabel:"Print only this page:"});
    with(myDialog.dialogColumns.add()){
    var myBaseNameField = textEditboxes.add({editContents:myDocumentName.substring(0,4), minWidth:160});
    var myPageNumberField = integerEditboxes.add({editContents:"", minWidth:80});
    var myResult = myDialog.show({name:"PrintEachPageAsPS"});
    if(myResult == true){
    var myBaseName = myBaseNameField.editContents;
    var myPageNum = myPageNumberField.editValue;
    //Remove the dialog box from memory.
    myDialog.destroy();
    //Specify PostScript file and device-independent PostScript.
    myDocument.printPreferences.printer = Printer.POSTSCRIPT_FILE;
    myDocument.printPreferences.ppd = PPDValues.DEVICE_INDEPENDENT;
    if (myPageNum > 0){
    myPageName = myPageNum+ "";
    myDocument.printPreferences.pageRange = myPageName;
    var myRegExp = new RegExp(":","gi");
    myPageName = myPageName.replace(myRegExp, "_");
    myFilePath = myFolder + "/" + myPageName + "_" + myBaseName + ".ps";
    myFile = new File(myFilePath);
    document.printPreferences.printFile = myFile;
    myDocument.print(false);
    }else{
    for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){
    myPageName = myDocument.pages.item(myCounter).name;
    myDocument.printPreferences.pageRange = myPageName;
    //The name of the exported files will be the base name + the page name + ".pdf".
    //If the page name contains a colon (as it will if the document contains sections),
    //then remove the colon.
    var myRegExp = new RegExp(":","gi");
    myPageName = myPageName.replace(myRegExp, "_");
    myFilePath = myFolder + "/" + myPageName + "_" + myBaseName + ".ps";
    myFile = new File(myFilePath);
    document.printPreferences.printFile = myFile;
    myDocument.print(false);
    alert("Done!");
    else{
    myDialog.destroy();

  • Java is giving error messages declaring the fault is my 32-bit browser... help me Firefox!

    Cannot run even old applets anymore without fixing Java. I get an error message stating the issue is my browser is 32-bit while I'm running 64-bit Java. I use 64-bit for other programs and frequently re-installing just for Firefox is not a reasonable option. Please provide new releases, I've seen posts related to this dating back almost a year. Thanks much.

    Hi ejspina
    First uninstall the 64-bit java for firefox : [http://www.java.com/en/download/uninstall.jsp How do I uninstall Java on my Windows computer ?]
    then download and install the 32-bit for firefox : [http://www.java.com/en/download/manual.jsp Java Downloads for All Operating Systems]
    thank you

  • I updated firefox and now I get jave java script application error all the time, please help

    so now I am on IE and do not want to be there.

    And that error message said ....?
    '''{Ctrl + Shft + J}''' to open the Error Console, then locate that particular error message, and right click that message - select '''''Copy''''' - then paste that message into the Post a Reply box here so we can see that message.

  • Chaining of test script giving error

    hi,
    I have created 2 test scripts -
    1) sales order creation
    2) sales order change.
    in sales order creation test script i have maintained sales order number as export parameter. for this i have made VBAK_VBELN as export parameter. I have done  -
    MESSAGE ( MSG_1 ).
    TCD ( VA01 , VA01_1 ).
    ENDMESSAGE ( E_MSG_1 ).
    For 2nd test script i have maintained VBAK_VBELN as import parameter.
    Now i have created 3rd test script to chain the above 2 test scripts.
    here i have maintained VBAK_VBELN as variable parameter. In command interface i have added VBAK_VBELN as "exporting" and "importing".
    still the output of 1st test script is not read as the import parameter of 2nd test script.
    thanks & regards
    sonalika

    Hi Sonalika,
    In your 3rd eCATT, after calling your eCATT to create a sales order, please read the log and see whether VBAK_VBELN  gets updated.  Or, please use the code below right after calling your first eCATT to check whether VBAK_VBELN  gets updated, something like this:
    * This is the 3rd eCATT
    * calling the 1st eCATT
    * VBAK_VBELN should be maintained in the command interface
    * SALES_ORDER_CREATION in the EXPORTING section
    REF ( SALES_ORDER_CREATION, SALES_ORDER_CREATION_1 ).
    * log the variable VBAK_VBELN
    LOG ( VBAK_VBELN ).
    * calling the 2nd eCATT
    * VBAK_VBELN should be maintained in the command interface
    * SALES_ORDER_CHANGE_1 in the IMPORTING section
    REF ( SALES_ORDER_CHANGE , SALES_ORDER_CHANGE_1 ).
    If VBAK_VBELN does not get updated at LOG ( VBAK_VEBLN ), I would suppose something has gone wrong already in the first eCATT.  Then please double check whether the sales order has really been created successfully.
    Kind Regards, Qian
    PS.  If you do not want to add the coding line of LOG ( VBAK_VBELN ), just use debugger to find out whether VBAK_VBELN is updated after the first eCATT runs.

  • Java Script popup error

    Hi Guys ,
    I am getting the following error when i try to popup a OA Page from another OA page
    using js
    from Jdev the error is
    Error
    Unexpected URL parameters have been detected and will be ignored.
    When i move to the server this is the error
    You are trying to access a page which is no longer active .. searched all the previous threads
    and have set all the required profile options
    destination URI of the link
    javascript:var a = window.open('OA.jsp?page=/js/oracle/apps/cie/js/server/page2&retainAM=y','a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no');a.focus();
    FND_VALIDATION_LEVEL                     None
    FND Function Validation level               None
    Framework Validation level               None
    Framework Compatibility                11.5.10
    But still the same error
    Another Strange thing
    Initially the FND Function Validation level was Error which i changed it to None after the change
    i am not able to open the seeded pages also (XML Publisher Pages) then when i change it back to error
    i am able to open the seeded pages
    Help appriciated
    Thanks
    Tom...

    Tom,
    In ur first reply u said "from Jdev the error is ..." , from that i get u are undergoing this error in jdev, rite? Just try this after deploying in server. I am asking this because in one recent previous thread u said that even standard oadialogpage is not working on ur jdev.
    I feel something missing in core js libs in jdev patch ur using.Just try to deploy in server and run.I guess ur on 11.5.10?rite?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error in Dynamic Value Change Using Java script

    Hi ,
    I am trying to put dynamic value sin tabular form report.
    I used the below code
    function updateLOV3(filter, listName,itemId,po_no){
    var xml = null;
    var list = document.getElementById(listName);
      var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=Update_Invoice_UOM',0);
    alert(po_no);
    alert(itemId);
    get.add('TEMPORARY_ITEM', po_no);
    get.add('TEMP_ITEM', itemId);
    alert(list);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       oCount = o.length;
       if(oCount!='0'){
            var l_Opt_Xml = o[0];
            appendToSelect(list, l_Opt_Xml.firstChild.nodeValue);
    if(oCount=='0'){
    alert('entering');
       list.value=0;
    get = null;
    function appendToSelect(pSelect,pContent) {
    alert(pContent);
    pSelect.value=pContent;
    }my Application Process code is
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT UNIT_OF_MEASURE r ,UNIT_OF_MEASURE d FROM HOMES_RGP_PURCHASE_ORDER_LINES WHERE ITEM_ID = :TEMP_ITEM AND
    PURCHASE_ORDER_ID = :TEMPORARY_ITEM)
    loop
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;In my application process if i removed the PURCHASE_ORDER_ID = :TEMPORARY_ITEM then the value is coming.
    Java Script giving both values like item id and purchase order id.
    If i ran the sql query manually its giving values.
    i hope thers is some error in get.add method in java script.
    Its always going into the below condition
    if(oCount=='0'){
    alert('entering');
       list.value=0;
    get = null;but manually i have checked the database the value is present.
    Please anyone help me out in this.
    Regards,
    Shan...

    Hi all,
    The same i have checked with emp table but still i got the same problem.
    Its my application process
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<data>');
    htp.prn('<select>');
    for rec in (SELECT ename r,ename d FROM 
    emp
    WHERE  empno = :TEMP_ITEM)
    loop
    htp.prn('<option value="' || rec.d || '">' || rec.r || '</option>');
    end loop;
    htp.prn('</select>');
    htp.prn('</data>');
    end;My Javascript code is
    <script type="text/javascript">
    function setvalues(itemId,list)
    var s = $v(itemId);
    alert(s);
    var get = new htmldb_Get(null,$v('pFlowId'), 'APPLICATION_PROCESS=POPULATE_EMPNAME',0);
    get.add('TEMP_ITEM', s);
    ret = get.get('XML');
    if(ret){
      var s = ret.getElementsByTagName("select");
      if(s){
       var o = ret.getElementsByTagName("option");
       oCount = o.length;
       if(oCount!='0'){
            var l_Opt_Xml = o[0];
            appendToSelect(list, l_Opt_Xml.firstChild.nodeValue);
    if(oCount=='0'){
       list.value=0;
    get = null;
    function appendToSelect(pSelect,pContent) {
    pSelect.value=pContent;
    </script>Can anyone suggest me what i have missed???
    Cheers,
    Shan

Maybe you are looking for

  • IPod touch is not working with iTunes

    My iPod touch is no longer recognized by my iTunes even though it has been recognized without problems ever since I bought it. My computer has never crashed, had a virus or any problems at all. Because iTunes didn't recognize it, I was given the opti

  • How to implement this in Oracle Apps 11i

    Hello Friends I am working as a consultant for a manufacturing company. They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP. eg. Product A: M

  • Wehen come the Update for Retina Display?

    When come the update for Retina Display?

  • Java Studio Creator and JDK

    I'm trying to create a game application using java and i've downloaded both java studio creator and JDK. However i'm having problems of writing the program. Should i use notepad and compile it using JDK? Or can i simply use the java studio creator an

  • Run Time Error TSV_BTR_PAGE_ALLOC_FAILED in SRM

    I am getting a runtime error while triggering the initial data load from SRM in to BI. It is a customized extractor using customized function module.While analyzing the dump, a standard program throws this dump. Pl give me a solution.. Thanks,