Can't save javascript code on WAD

Hi experts,
I used javascript object on WAD, but seems after I changed the java script code, it doesn't affected on server. because after the change, the source code shown the original code but not changed. does it caused by server cache or other something? Any input should be really appreciated.
Thanks,
Delve

Hi Delve,
At the end of the query/template execution URL add the query string "CACHE=" to see the new java script effects.
Imran...

Similar Messages

  • I can't debug javascript code in JDeveloper 11

    Hi all!
    I'm trying to debug a javascript code in JDeveloper 11. I created a simple html page with a simple javascrit. The page and the call to javascript are ok. When I start the debug I receive some messages,please see below. I can see through window task manager that firefox is started, but it doesn't appear and therefore it is impossible to debug, The messages I receive in JDeveloper console are:
    "C:\Arquivos de programas\Mozilla Firefox\firefox.exe" file:/C:/JDeveloper/mywork/js/js/public_html/test.html -oraclejsdebugport=2006
    Waiting for debugger to attach on port 2006...
    Debugger connected to local process.
    Error: emItemsElement has no properties in file: file:///C:/Arquivos%20de%20programas/Mozilla%20Firefox/components/nsExtensionManager.js at line: 2621 and position: 0Debugger unable to connect to local process.

    Hi Roger,
    It was a bug that got fixed recently. Please download the latest version and try. If you are still able to reproduce please let me know the build (Help -->> About).
    Another workaround
    unselect "Stop on Exception" it can be found from.
    Project Properties >> Run/Debug/Profile >> Select JavaScript run configurations >> Edit >> select JavaScript >> unselect "Stop on Exception"
    -Vikram

  • Acrobat crashed - can't enter Javascript code anymore!

    I just had Acrobat (8.1.2) crash on me while I was working on the Javascript code I had in the file. When I opened the file after the crash, the javascript code was empty - everything had been obliterated in the code module. And even when I enter new code and close the editor, when I try to open it again, it's empty again.
    I have Acrobat set to use an external app (I am using TextWrangler on a mac), so I don't know if that has any bearing on what happened, but the file now seems to be corrupted as any code I enter whether in an external app, or in the Acrobat javascript editor does not get saved. I tested the file on another computer, with the same results. Other files work properly on my computer.
    Is there any way to recover the code from the file? I had spent several hours on several parts of the code, and am not looking forward to having to recreate my work.

    Read "KT6-LSR and installing Windows on SATA" post (At this moment is the last in this page). There you'll find many posts about Raid problems.  8)

  • How  can  I use Javascript code to affect the display of textField?

    Hi All,
    I created a web application using JSF.
    And Placed two controls: one Text Field and one Label.
    On the Javascript onclick event of Label, I wrote the following javascript:
    document.getElementById("form1:textField1").value="test123";
    I run the web application, and click on the label, However, the text of the Text Field does not change.
    But the following code shows text of the Text Field has been changed. it works.
    alert(ocument.getElementById("form1:textField1").value);
    So, why the display of the Text Field does not change? How to update the display of the Text Field?
    Any suggestion will be helpful!
    Thank you.

    here is a full and correct example, enjoy
    1. <html>
    2. <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    3. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    4. <f:view>
    5. <head>
    6. <title>
    7. <h:outputText value="#{msgs.windowTitle}"/>
    8. </title>
    9. </head>
    10. <body>
    11. <h:form id="registerForm">
    12. <table>
    13. <tr>
    14. <td>
    15. <h:outputText value="#{msgs.namePrompt}"/>
    16. </td>
    17. <td>
    18. <h:inputText/>
    19. </td>
    20. </tr>
    21. <tr>
    22. <td>
    23. <h:outputText value="#{msgs.passwordPrompt}"/>
    24. </td>
    25. <td>
    26. <h:inputSecret id="password"/>
    27. </td>
    28. </tr>
    29. <tr>
    30. <td>
    31. <h:outputText value="#{msgs.confirmPasswordPrompt}"/>
    32. </td>
    33. <td>
    34. <h:inputSecret id="passwordConfirm"/>
    35. </td>
    36. </tr>
    37. </table>
    38. <h:commandButton type="button" value="Submit Form"
    39. onclick="checkPassword(this.form)"/>
    40. </h:form>
    41. </body>
    42. <script type="text/javascript">
    43. <!--
    44. function checkPassword(form) {
    45. var password = form["registerForm:password"].value;
    46. var passwordConfirm = form["registerForm:passwordConfirm"].value;
    47.
    48. if(password == passwordConfirm)
    49. form.submit();
    50. else
    51. alert("Password and password confirm fields don't match");
    52. }
    53. -->
    54. </script>
    55. </f:view>
    56. </html>

  • Apex 4 - Javascript Code Editor??

    Hi,
    On the Apex 4 new features page , under additional new features (link below), one of the new features says "New Javascript code editor for use in the SQL and migration workshops".
    http://www.oracle.com/technology/products/database/application_express/html/4.0_new_features.html
    Can anybody tell me how you access this as I cant find it?
    Thanks.

    Hi,
    I think the way this feature is worded is possibly misleading you.
    Are you expecting a code editor in which you can edit your JavaScript code? Because if that is the case (which I think is a fair expectation given the current wording), then I'm afraid this is not what this feature is about. This actually relates to a new PL/SQL code editor available in these modules, which now includes syntax highlighting for your PL/SQL blocks. The word 'JavaScript' in the current description relates to the technology behind the editor, rather than the purpose of the editor, but that is misleading.
    I think it should be reworded to, 'New richer PL/SQL code editor available in SQL and Migration Workshops, including syntax highlighting' or similar. I will contact the relevant person in the team and get this updated.
    Apologies for the confusion.
    Regards,
    Anthony.

  • How can I write a code that triggers when clicking on Save button

    I want to hide certain fields inside my tracking list, if the login user is not part of the “Managers” group.
    To do so I want to add the following Page-load code inside a web part :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    {SPGroup group = site.Groups["Managers"];
    bool isUser = site.IsCurrentUserMemberOfGroup(group.ID);
    if (isUser)
    {textbox.Visible=false;}}
    And the following custom code that triggers when saving the form :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["ListName"];web.AllowUnsafeUpdates = true;
    SPListItem item = list.Items[SPContext.Current.ListItem.UniqueId];
    txtTitle.Text = item["Title"] as string;item.Update();web.AllowUnsafeUpdates = false;
    But I am not sure where exactly I should add the custom code for the save button ? I tried writing it inside the Oninit method , but I got many errors as shown below:-
    So can anyone advice how i should write the web part to include the Page load & the custom save button code?
    second question in general is my above approach considered valid , i mean to hide/show list columns using web parts ?

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    Hi hasvi,
    Need Template(.indt), textframes etc for the following script:
    var myFolderInd = Folder.selectDialog();
    var myFile = myFolderInd.getFiles("*indt");
    app.open(myFile)
    var myDoc = app.activeDocument;
    var myDocName = myDoc.name;
    var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
    var myFolderDoc = Folder.selectDialog();
    var myFile1 = myFolderDoc.getFiles("*doc");
    mySaveFile.pages[0].textFrames[0].place(File(myFile1))
    //~ mySaveFile.place(File(myFile1))
    app.activeDocument.textPreferences.smartTextReflow = true;
    var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
    myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
    alert("Process Completed")
    Regards
    Siraj

  • How can we  use java variable in javascript code on JSP page?

    How can we use java variable in javascript code on JSP page?
    Pls help

    Think about it:
    JSP/Java is executed on the Server and produces HTML+JavaScript.
    Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
    Obviously there's no way to access a Java variable directly from JavaScript.
    What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.

  • I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    I have to make inaccessible the Javascript code embedded in a form pdf. How can I do?

    You can secure the file and prevent access to the code, but it's very easy
    to overcome that. Alternatively you can use a code obfuscator to make the
    code less legible.
    On Feb 11, 2015 3:51 PM, "marcogolinelli88" <[email protected]>

  • Can we save the video file from Sun sample code TestEffect instead of playi

    can we save the video after adding an effect to it using the TestEffect sample code from Sun instead of playing it!

    Hi All,
    Please Update the Thread
    Regards
    Khanna

  • Can we call webserrvice from javascript code?

    Hi Gurus,
    Can we call webservice in "Javascript" code?
    Any pointers, samples?
    Appreciate your time.
    Thanks

    Hello,
    Yes you can, and we have in OracleAS 10gR3 create javascript for you.
    Take a look to the following:
    1- deploy a Web Services in OracleAS 10g R3 (10.1.3)
    2- go to the test page
    3- Click on the Javascript Stub page
    This utility creates a javascript linbray allowing Ajax calls to SOAP based Web Services:
    - create SOAP request from simple Javascript objects
    - create an XMLHttpRequest object to call synchronously or asynchronously
    - get back the response from and deserialize the SOAP object to Javascript
    Regards
    Tugdual Grall

  • Can JSF generates a javaScript Code ???

    Hello guys,
    Can a JSF or JSP generates a javaScript code for validating a text field
    like ASP.NET ?
    So, that there is no need to go to the server to check (e.g.) if it is required or not !
    Regards

    http://www.jroller.com/page/cagataycivici?entry=jsf_client_side_validators

  • Illustrator Script: How can I duplicate a layer ( with sublayers ) with javascript code ?

    Dear All
    I want to duplicate a layer structure, as the "Duplicate Layer" submenu do with Javascript code, but I can't.
    I can duplicate only PageItems or selected object, but no Layers.
    Anybody knows how can I do it ?

    Thanks for your answer.
    #target illustrator 
    var docRef = app.activeDocument; 
    var ln = 'Layer 1'; 
    var ol = docRef.layers.getByName(ln); 
    var nl = docRef.layers.add(); 
    nl.name = ln+' Copy'; 
    for (var a = ol.pageItems.length-1; a >= 0; a--) { 
        ol.pageItems[a].duplicate(nl, ElementPlacement.PLACEATBEGINNING); 
    The problem with this code is, that it can't duplicate also the sublayers, and the sublayer elements.
    Sure I can write a recursive function, but I think there should exist a duplicate function somewhere ( for Photoshop script exist ! ) or a small trick, but I can't find it.
    Thanks

  • How can I delete all javascript code from a file

    We need to delete all the javascript code from our illustrator files. Right now I need to click on each element and check my SVG interactivity window for any javascript code, then trash it from that window. Very time intensive. Any ways to make a complete elimination of javascript code?

    sudo -u _cyrus /usr/bin/cyrus/bin/ipurge -d 0 -f user/mailboxname
    HTH,
    Alex

  • Can I save my private window web history in a file on my computer?

    Hello,
    I was wondering if there was anyway I could save my private window web history to a file on my computer. Multiple people use this computer so I like to browse in private mode, however, there are some sites I'd like to be able to save as well.
    Thanks for you time
    Nikki

    You can bookmark pages that you are interested in and want to keep.
    You can save a copy of the current session data.
    You can open the Browser Console (Firefox/Tools > Web Developer).
    Paste the JavaScript code in the command line and press the Enter key to run the code.
    *Toggle the devtools.chrome.enabled pref on the <b>about:config</b> page to true to enable the command line
    *https://developer.mozilla.org/Tools/Browser_Console#Browser_Console_command_line
    <pre><nowiki>var ss = Cc['@mozilla.org/browser/sessionstore;1'].getService(Ci.nsISessionStore);
    var ssjsonstr = ss.getBrowserState();
    var output = ssjsonstr;
    var fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
    var stream = Cc["@mozilla.org/network/file-input-stream;1"].createInstance(Ci.nsIFileInputStream);
    fp.init(window,"",Ci.nsIFilePicker.modeSave);
    fp.defaultString="session.json";
    if (fp.show() != fp.returnCancel){
    var stream=Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
    stream.init(fp.file,0x04|0x08,0644,0);
    stream.write(output,output.length);
    stream.close();
    }</nowiki></pre>
    You can look at this post in this MozillaZine forum thread about inspecting a sessionstore file.
    *http://forums.mozillazine.org/viewtopic.php?f=38&p=12098147&start=60#p12098147

Maybe you are looking for

  • How do I convert a .doc or .docx file to a PDF on the iPad?

    I've been using Goodreader, and I can't find an option in it. Other people have suggested a workaround using Google docs, but those suggestions were from years ago, and there no longer seems to be a "Save as PDF" option in Google Drive. Is there anyt

  • Blackberry Group didnt transfer from 9900 to Q10

    I made the switch from my Bold 9900 to my Q10 using link. It seems as though my BBM group did not transfer over, though all my BBM contacts did. I am the admin of the group therefore I cannot get someone to invite me. How do I get the group to show u

  • SQL functions in TOOL code

     

  • Standard credit memo g2  has document type field as blank?

    Hi All, When we create a credit memo with billing type G2 and release the billing document to Accounting. how does system understand which accounting document type needs to be created. Credit memo G2. Genral control data. Document type [  ] is Blank.

  • Cisco Works LMS 4.x NetShow Jobs URL

    Hi I have upgraded our LMS 3.x to the new LMS 4.x Version. I have installed the new 4.x on an new server and importet the backup. I have importet a Certificate and have enabled the Browser-Server Security Mode:               Enabled I added some new