Problem on WAD Broadcasting with Javascript

Hi Experts,
I have some javascript code on WAD. I put the javascript code in the Script item. It works when I click "execute" icon on WAD.
But when I broadcast this WAD report to portal. The javascript doesn't work. I check the html source, right-click  and view source on the browser, there is no any javascript code which I added could be found.
Does anyone know what's wrong on it or any steps I miss?
Thanks,

This issue is solved.
Thanks

Similar Messages

  • Tricky problem. Opening RAW with Javascript. White balance problem.

    Hi all. Hopefully someone can help with this - its a tricky one.
    I've been using a javascript to send RAW and DNG files to Photoshop CS5 for automatic processing. The script opens the files directly into PS, apparently bypassing Adobe Camera Raw. It always renders the photos with the ACR default settings which can be set in either ACR on Lightroom. The standard Adobe settings are WB (As Shot), Brightness (+50), Contrast (+25).
    My problem is that it ignores any changes I have made to the RAW files in ACR. So if I want to use a custom white balance, its not possible to use the javascript. The script ignores the 'custom' white balance and resets it to 'As Shot'.
    I've tried changing the default values in ACR but the options are As Shot, or a set Kelvin preset such as Tungsten, Sunlight etc. Nothing helps.
    Is it possible for the script to be mindful of the custom adjustments - especially subtle changes to WB - that I have made in ACR?
    The script is below...
    var stacks = app.document.stacks;
    var stackCount = stacks.length;
    for(var s = 0;s<stackCount;s++){
          var stackFiles = getStackFiles( stacks[s] );
          if(stackFiles.length> 1){
               var bt = new BridgeTalk;
               bt.target = "photoshop";
               var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+stackFiles.toSource()+");");
               bt.body = myScript;
               bt.onResult = function( inBT ) {myReturnValue(inBT.body); }
               bt.send(500);
    function getStackFiles( stack ){
          var files = new Array();
          for( var f = 0; f<stack.thumbnails.length;f++){
               files.push(stack.thumbnails[f].spec);
          return files;
    function myReturnValue(str){
          res = str;
    function psRemote(stackFiles){
          var loadLayersFromScript = true;
          var strPresets = localize ("$$$/ApplicationPresetsFolder/Presets=Presets");
          var strScripts = localize ("$$$/PSBI/Automate/ImageProcessor/Photoshop/Scripts=Scripts");
          var strFile2Stack = "Load Files into Stack.jsx";
          var ipFilePath = app.path + "/" + strPresets + "/" + strScripts + "/" + strFile2Stack;
          var ipFile = new File (ipFilePath);
          $.evalFile( ipFile );
          loadLayers.intoStack(stackFiles);
          app.doAction ('My Action');
          var saveFile = new File('~/desktop/'+(new Date().getTime().toString())+'.psd');
          app.activeDocument.saveAs(saveFile);
          app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

    Paul,
    this script do perfectly what i need... But unfortunately not in Bridge CS6 :-(
    I use Windows7 64 and CS6. When I run the script from the Extended Script Toolkit, everything works great.
    Then I saved the script in the Bridge folder "startup scripts". At the start of Bridge I get the following error message:
    "Error in C: \ Users \ ... \ AppData \ Roaming \ Adobe \ Bridge CS6 \ Startup
    Scripts \ Stack Batch.jsx
    Line 1: var = app.document.stacks stacks;
    undefined is not an object "
    Bridge and then starts the script is not enabled.
    Thanks for any help
    -kai

  • How to bypass or modify  WAD initialization with javascript

    Hello WAD Developers
    I want to understand what happens when you load and re-load a page, because I need to invoke some logic only the first time a page is run and not each time you click someone.
    I have created some javascript logic which uses a drop-down to reset a data provider - similar to the Query View Selector item except that I can take advantage of variants. Part of my solution is that I load a drop-down select box from an external list of choices. The BW data part works wonderfully. But what also happens is that my select options load EVERY TIME any event happens on the page. This means that after the data is loaded and the select box is reset, it will not show what was selected. I've tried "first-time only" logic in the function, but since the page refreshes, it's always the first time.
    Any suggestions?
    To show it graphically,
    Here's how the dropdown boxes normally work. Let's pretend my box shows four slots:
    Select a State  <== This is what you see in your box.
    AL
    GA
    FL
    If you select GA, then the next time you might see
    GA           <== Now I'll see the first selected item.
    FL
    IN
    OK
    Select a State  <== Even after a selection,
    AL              <== I always see this
    GA
    FL
    What I have coded the drop-down to do is like this:
    1. In the html itself, there is only one item:
    Selection Goes Here.
    2. After my code loads, by running a function from the <body onload>, I get:
    Variant1
    Variant2
    Variant3  etc.
    If the user selects Variant2, the next time I should see:
    Variant2
    But instead my code shows me:
    Variant1 each time.
    I have code within the function to only load the drop-down when it is in the initial state, but my debugging shows
    me the initial html drop-down values are reset each time. How can I persuade bw NOT to reset this code each time?
    If this is javascript DOM stuff and someone can show me that instead, I'll be greatful.
    Points are awarded, and if you're in Atlanta, I'll even bring you a Coke and a candy bar.
    Thanks in advance,
    Doug Childs

    Hi,
    you could use a wrapper around your Template:
    Your Template is an Iframe in a 'top'-template.
    'onload' in your bw-template you could then chek the upperframe for a variable, which tells you if your function was allready executed.
    Regards,
    Alican

  • Enhancing WAD template with Javascript

    hi,
    I have a requirement to draw vector lines on a scatter web item. Those lines are used as delimiters between different areas in the chart results.
    I need to draw the lines on top of the existing scatter web item.
    My question is what event i need to use when calling the JS function that draws the lines, so they will be drawn only after the web item was entirelly rendered in WAD (and not before)?
    Can someone explain?
    Many thanks,
    Xibi

    Write your script after <\Body> and <\HTML> and I think this gets executed after all the controls are drawn in your web page.
    Regs
    Gopi

  • Problem with Javascript and opening a new page

    Hi,
    I'm developping a website with Java Server Faces.
    I've a problem with JavaScript.
    I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
    The new window, of course, needs some information of the other window, to show the right data.
    The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
    Here is my jsp-page of the first page (the one with the table):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
             <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
            <html>
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>- UCV-Period -</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                        <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                            style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                            <h:column binding="#{UcvPeriod.column1}" id="column1">
                                <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{UcvPeriod.column11}" id="column11">
                                <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                                </f:facet>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Here is my action, when someone clicks on the 'more-information-button':
    public String bthnDetails_action() {
       Object s = outputUcvPeriod.getValue();
       BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
       this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
       return "detail_ucvperiod";
    }Here is my constructor of the Detailspage.
        public Details() {
             this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
        }Here is the navigation part for this part of my faces-config.xml .
    <navigation-rule>
       <from-view-id>/UcvPeriod.jsp</from-view-id>
       <navigation-case>
           <from-outcome>detail_ucvperiod</from-outcome>
           <to-view-id>/UcvPeriod.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>Thx a lot....
    Anneke

    See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

  • Problem with JavaScript in URL iView

    Hi,
    I am facing a problem with javascript when i am trying to access my application through URL iView. In the javascript window.top is used to access the frames in the window. But the EP is not recognizing it as valid. what exctly the problem and please suggest me a solution.
    Ashok.

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

  • Problem with JavaScript in DPS

    Hello,
    i have little problem with one HTML page in DPS. We've created HTML form, which is formatting output with JavaScript and then passing to local mail client via mailto. It works nicely in Safari on desktop, it works in Safari on iPad BUT it don't work in DPS, when we use it as HTML content (frame on page where form is loaded). Unfortunately, there is no way how to learn what's wrong - on iPad it works, it's not working just in DPS (and it's not working in Viewer on desktop too).
    Anyone have any idea what to do?
    Script is fairly simple, it's my compilation of other works, because i'm not JS programmer, just i'm skilled with google-copy-paste... So there can be some VERY trivial error, but i don't know correct syntax...
    very simple version of this form, which is not working in DPS (but everywhere else), is here
    http://dl.optio.cz/mailtoExample.html
    Thanks for any help!

    Hello,
    when used in DPS browser, it's working (as part of HTMLresources.zip). I don't know if this will help, but here is small game, which works correctly in DPS in web overlay. when you move any red circle, it will let you send results via email. But this is too complicated for my minimal skills.
    http://dl.optio.cz/Hra_en/
    Anyway, thanks for help
    Martin

  • I get a a message "javascript: void (0)" when I turn on online radio. This problem is related also with other browsers. I reinstalled java but nothing changed

    This problem is related also with chrome, opera and explorer. I reinstalled java but nothing changed

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Note the javascript: void(0); is often use as a placeholder URL to indicate that an onclick event is tied to the link to do the actual action.<br />
    If JavaScript is blocked for some reason then this javascript: void(0); links comes into view.
    Make sure that you do not block JavaScript.
    *http://kb.mozillazine.org/JavaScript
    Also make sure that your security software isn't blocking JavaScript if it happens in other browsers as well.
    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

  • Webcontrol problems with javascript

    Hello,
    the page I want to navigate making me problems in my webcontrol. The same page works fine if I go there manually with the Internet Explorer. I force webcontrol to use another IE version than default. I changed regedit >
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
    and a new key for my application with value 2af8(11000)
    If I do not force this version the used version in the webcontrol seems to be to old.
    I think that my application does not use the settings of my IE because if I use IE manually it works.
    I used Google and I can not find a property to force the webcontrol to activate javascript - it seems that I have to change this by the "global" settings.
    Edit: I do not exactly know if its javascript. The error is a script error.
    It does not help to suppress this errors - the page is not working correctly

    Hello,
    in the meantime I tried GeckoFX to solve the issue, but I get another problem later so I come back to the native webcontrol. To get help I will translate the error message because I can not attach a screenshot
    "Scripterror
    URL: http://www.transerv2000.de/DesktopModules/SNITNET_Metrix/js/rma_main.js
    Do you want to continue? Yes / No"
    Because I see the .js I think that this is an issue because of javascript.
    If I navigate to this site and do some work I have no problems. This is why I think that the used IE in my webcontrol is having other settings?!
    Please help and thanks alot.
    Edit: If I supress javascript errors, I got not Messagebox but the content dont work - so I really think that it is a problem with javascript. As I said, if I use the IE as application the page works fine.

  • Problems by combinate JSF-Names with JavaScript (de.dev.user)

    Hello again.
    I have i new problem.
    Overview:
    1. Situation
    2. Working code
    3. Problem (reason for new idea)
    4. New Idea
    5. Problem (please help me !!)
    [1]
    The situation. I have one inputText and one selectOneMenu.
    They are logicly combinated. Of this pair i have two.
    If the user enters a errorcode in the inputText-field, the matching entry of the selectOneMenu have to be selected.
    If the user select a entry of the selectOneMenu, the code have to be shown in the inputText.
    Example:
    inputText1 <-> selectOneMenu1
    inputText2 <-> selectOneMenu2
    [2]
    For the moment i have realised this code (it works !!):
    details.jsp:
    <h:panelGrid columns="3">
    <h:inputText binding="#{CbtdDetailsBean.itxtErrorCode1}" id="itxtErrorCode1" valueChangeListener="#{CbtdDetailsBean.itxtErrorCode1ValueChange}" onchange="submit()">
    </h:inputText>
    <h:selectOneMenu binding="#{CbtdDetailsBean.hsomErrorCode1}" id="hsomErrorCode1" valueChangeListener="#{CbtdDetailsBean.hsomErrorCode1ValueChange}" onchange="submit()" >
    <f:selectItems binding="#{CbtdDetailsBean.uisiErrorCode1}" id="uisiErrorCode1" />
    </h:selectOneMenu>
    <h:outputText value="#{lgs.txtErrorCode}" />
    <h:inputText binding="#{CbtdDetailsBean.itxtErrorCode2}" id="itxtErrorCode2" valueChangeListener="#{CbtdDetailsBean.itxtErrorCode2ValueChange}" onchange="submit()"  />
    <h:selectOneMenu binding="#{CbtdDetailsBean.hsomErrorCode2}" id="hsomErrorCode2" valueChangeListener="#{CbtdDetailsBean.hsomErrorCode2ValueChange}" onchange="submit()">
    <f:selectItems binding="#{CbtdDetailsBean.uisiErrorCode2}" id="uisiErrorCode2" />
    </h:selectOneMenu>
    </h:panelGrid>
    CbtdDetailsBean.java:
    private ArrayList getErrorCodeList()
      ArrayList errorCodeList = new ArrayList();
      errorCodeList.add(new SelectItem("1", "TestErrorCode1"));
      errorCodeList.add(new SelectItem("2", "TestErrorCode2"));
      errorCodeList.add(new SelectItem("3", "TestErrorCode3"));
      errorCodeList.add(new SelectItem("4", "TestErrorCode4"));
      errorCodeList.add(new SelectItem("5", "TestErrorCode5"));
      return errorCodeList;
    // Value Change Listener (same for 2. group)
    public void itxtErrorCode1ValueChange(ValueChangeEvent vce)
      this.hsomErrorCode1.setValue((String) vce.getNewValue());
    public void hsomErrorCode1ValueChange(ValueChangeEvent vce)
      this.itxtErrorCode1.setValue((String) vce.getNewValue());
    // Input Text ErrorCode 1 (same for 2. group)
    private HtmlInputText itxtErrorCode1 = new HtmlInputText();
    public HtmlInputText getItxtErrorCode1() { return itxtErrorCode1; }
    public void setItxtErrorCode1(HtmlInputText itxtErrorCode1) { this.itxtErrorCode1 = itxtErrorCode1; }
    // HtmlSelectOneMenu ErrorCode 1 (same for 2. group)
    private HtmlSelectOneMenu hsomErrorCode1 = new HtmlSelectOneMenu();
    public HtmlSelectOneMenu getHsomErrorCode1() { return hsomErrorCode1; }
    public void setHsomErrorCode1(HtmlSelectOneMenu hsomErrorCode1) { this.hsomErrorCode1 = hsomErrorCode1; }
    // UISelectItems (same for 2. group)
    private UISelectItems uisiErrorCode1 = new UISelectItems();
    public UISelectItems getUisiErrorCode1() { uisiErrorCode1.setValue(getErrorCodeList()); return uisiErrorCode1; }
    public void setUisiErrorCode1(UISelectItems uisiErrorCode1) { this.uisiErrorCode1 = uisiErrorCode1; }-------------------------------------------------------------------------------------------------
    [3]
    Problem:
    If the user changes the itxtErrorCode1-field, the hsomErrorCode1 will be updated by reload, but the hsomErrorCode1 also updates the itxtErrorCode1-field with the old value.
    The second group is also updated. the itxtErrorCode2 has the value of hsomErrorCode2 (= 1) after entering itxtErrorCode1.
    [4]
    My new idea, where i need your help:
    I think about a second way to update this fields. JavaScript !!
    If this would work, i do not need to refresh the page.
    The sourcecode i would like to user for this is implemented in the jsp-file:
    <f:verbatim>
    <script type="text/javascript">
    <!--
      function SetControlByValue(cControl,sValue)
            cControl.value=sValue;
       function toUpper(obj)
            obj.value = obj.value.toUpperCase();
        // alert("document.frmDeviceDetails.hsomErrorCode2 = "+document.frmDeviceDetails.hsomErrorCode2);
    -->
    </script>
    </f:verbatim>
    <h:inputText binding="#{CbtdDetailsBean.itxtErrorCode1}" id="itxtErrorCode1" onchange="toUpper(this);SetControlByValue(document.frmDeviceDetails.hsomErrorCode1,this.value);" />
    [5]
    The new problem:
    In the generated HTML-Code of itxtErrorCode1 and hsomErrorCode1 is:
    <input id="body:frmDeviceDetails:itxtErrorCode1" name="body:frmDeviceDetails:itxtErrorCode1" type="text" ... >
    <select id="body:frmDeviceDetails:hsomErrorCode1" name="body:frmDeviceDetails:hsomErrorCode1" ... >
    How can i reference this "name" to javascript?
    This Ideas does not work:
    document.frmDeviceDetails.hsomErrorCode1
    body:frmDeviceDetails:hsomErrorCode1
    document.body:frmDeviceDetails:hsomErrorCode1
    document.body.frmDeviceDetails.hsomErrorCode1
    document.body.frmDeviceDetails.body.frmDeviceDetails.hsomErrorCode1
    JavaScript seems to have a problem with ":". But this is part of the name!
    Any Ideas?
    p.s. please excuse my english, but i am from germany smile

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

  • Dreamweaver CS5.5 file upload problems with javascript

    Hi,
    Maybe someone can help me. I have both CS4 and CS5.5 and Lion installed.
    When I upload files to the remote server, formatting for all source code (including javascript) is lost. And then any javascript functions on the website do not work. I have the same problem when uploading files with Filezilla.
    Another problem - probably related - is that under Firefox javascript of my local website does not work (it works on a fresh start, but only for the first link), while the remote site under Firefox works fine. Safari works both remotely and local.
    Now, when I boot the Mac from the Snow Leopard partition, everything works just fine. So it must have to do with Lion.
    Does anyone know how to fix this, please?

    Hi, thank you for helping.
    Line Break is set to CR (Macintosh). I don't know what OS our host server is running. I would assume it is either  Linux or Windows.
    On the other user account Line Break was set to LF (Unix), so I switched it on my account as well.
    After that the file transferred with the code intact. Just out of curiosity I switched the setting back, and it still works, but only for new files. Also, old files can no longer be deleted.
    Firefox hasn't changed. Under the other user the local site works, under my user, the scripts still don't work.
    So, I am very confused. I will give Apple a call to see, how I can reset the user preferences and report back.

  • Getting hidden value with javascript problem

    <html>
    <body>
    <form>
    <input type="hidden" id="code" value="123">
    </form>
    </html>
    when open the html file and type "javascript:alert(document.getElementById("code").value)" in the address bar, I get a message box with "123".
    but when i do in the jsp with
    <input type="hidden" id="code" value="<%=request.getParameter("code")%>">
    and type the javascript in the address bar, i get "object not supported".
    Can anyone tell me how to get hidden value in jsp with javascript?
    thank you.

    There is no difference between a JSP or plain html, since javascript executes on the client side after the JSP is done processing. There is obviously something wrong with the HTML content after you input the request value, so check the generated HTML in your browser to see if there are any unwanted quotes in there or something.

  • Merge columns with javascript

    Hello,
    I have a report with a characteristic and 3 attributes. I want to join/merge these 3 attributes with javascript so that they are shown in the report in 1 column. I want to solve this problem with javascrípt in the WAD.
    2 Questions:
    1. Is this a good idea to do this with javascrípt in the WAD?
    2. If yes, is there some example code or good documentation?
    thanks
    Robert

    that's impossible, because with using report designer I cannot navigate in the report anymore.

  • Open and Close Popup With Javascript

    Using Apex 3.2
    I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly.
    I have opened a pop up window with javascript
    Now I need to close it and refresh the calling page, but only if it passes the validation on the popup.
    I have a hidden item on my pop up called P7_FLAG.
    I have a page process after validation that sets P7_FLAG to (only set to 1, if passes validation).
    I also have a SUBMIT button.
    So once I click my SUBMIT button the page should look at the validations, if ok, set P7_FLAG to 1, then close the popup and refresh the calling page.
    My current javascript look like this
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>On my button
    javascript:saveChanges();The problem is that I need to click the SUBMIT button twice.
    First time it sets P7_FLAG
    Second time it closes page and refreshes.
    I have probably made some basic error, but today I cannot see it.
    Cheers
    Gus
    Edited by: Gus C on May 10, 2012 12:48 AM

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

Maybe you are looking for