Javascript menu items problem.

Hi,
We have created a cutom iview which logs the user into a PHP web application. The login works fine. If we make the iview to appear in a new window, i can see all the menu items (coded in javscript) along with the other information on the webpage. On the other hand if we make the iview to appear in the content area of the portal, we see everything except the menu items.
can anyone tell me what could be the problem. we have tried a lot of options but the result is still the same.
Thanks in advance.
Regards
Hassan

Hi Hassan,
maybe you should change the iView's Isolation Method to URL
hope it helps,
Yoav
Message was edited by: Yoav Toussia Cohen

Similar Messages

  • Missing Javascript menu items on Acrobat 9 Standard

    I've been trying to get into some more advanced JS coding within Acrobat for forms, and I'm running into a bit of a roadblock in accessing the javascript tools.  Specifically, I keep seeing references to Javascript menu items under the Advanced menu, but my Acrobat doesn't seem to have these at all.  I also can't open the JS Debugger/console with Ctrl-J, but it will open if i put in a syntactically incorrect javascript statement and try to execute it (from a form field, etc).
    Anyone have any ideas how to correct this?  I found references online to this being an issue if Acrobat Reader is also installed on the same machine (it was), so i removed that, but the problem persists.  I can enter javascript into an individual field, but i can't add a document-level script at all.
    thanks

    Sweet! I got it working.   My function reads in the contents of a range (30+) of combo boxes and text boxes, does a little editing and then sorts, and then puts them back in the same range of boxes but with the blanks filtered out and in alpha order.  I  used a nested array and it worked pretty well. 
    The only thing i'm still stymied on is that it works perfectly for everything except if the textbox field is a number with a '+' in front of it (like +1 or +2200).  It strips the + sign out, I'm assuming that's because of javascript special characters, but the escape/unescape function did not fix it.  Doesn't matter if there are plus signs in the rest of the field, only at the beginning (and minus signs don't cause the same issue).  I'm going to try manually escaping with quotes before reading into the array I think, but if you have seen this sort of thing before please let me know.

  • Actobat 9 Execute Menu Item problem

    I have a new PC with Window 7 and have successfully loaded Acrobat 9 pro - but a lot of the Acrobat functionality is now missing (it all worked under the XP platform). For example, when creating a form, using a buttom with an 'Execute menu item' command is not possible - it's blank actually. As this is the most useful tool within Acrobat forms it's really annoying. I have upgraded to 9.4.1 which is supposed to be Window 7 compatible but no luck. I've unistalled and reinstalled and called Adobe support (4 hours!) and still no solution.
    Can anyone help me?

    After selecting this action you're supposed to go to the actual menus and
    select the menu item that should be executed. This is instead of choosing it
    from a list. Did you try that?

  • Menu Item to run trusted JavaScript problem

    I am trying to add a menu item that runs a script. I converted the script from a batch process and found that I have to make the addWatermarkFromFile a trusted function. I am having problems though. It errors with an internal error has occured. This is what I have:
    app.addSubMenu({ cName: "Specials", cParent:"Tools"});
    app.addMenuItem({ cName: "Convert to CCR", cParent:"Specials", cExec:" ConvertToCCR()"});
    function ConvertToCCR() {var size = this.getPageBox("Media"); if ((size[0] == 0) & (size[1] == 396) & (size[2] == 612) & (size[3] == 0))
    { this.setPageBoxes({cBox: "Media",rBox: [-90,-108,702,504]}); this.setPageBoxes({cBox: "Crop",rBox: [-90,-108,702,504]});
    trustedAddWatermark ({bOnTop:false, cDIPath:"/Macintosh HD/Users/ben/Desktop/Acrobat Reference PDF's/Copy Change Request Half.pdf"});
    var inch = 72;
    for (var p = 0; p < this.numPages; p++) {
    // position rectangle
    var aRect = this.getPageBox( {nPage: p} );
    aRect[0] += 7.08*inch; // from upper left hand corner of page.
    aRect[2] = aRect[0]+1.18*inch; // Make it 1.38 inch wide
    aRect[1] = 1.05*inch;
    aRect[3] = aRect[1] - 24; // and 25 points high
    // now construct text field
    var f = this.addField("Month 1", "text", p, aRect )
    f.borderStyle = border.s;
    f.alignment = "center";
    f.textSize = 14;
    f.textColor = color.black;
    var cRect = this.getPageBox( {nPage: p} );
    cRect[0] += 7.08*inch; // from upper left hand corner of page.
    cRect[2] = cRect[0]+1.18*inch; // Make it 1.38 inch wide
    cRect[1] = .72*inch;
    cRect[3] = aRect[1] - 46; // and 45 points high
    // now construct text field
    var f = this.addField("Month 1 Exp", "text", p, cRect )
    f.borderStyle = border.s;
    f.alignment = "center";
    f.textSize = 14;
    f.textColor = color.black;
    var f = this.getField("Month 1"); // get the Field Object
    var myRect = f.rect; // and get its rectangle
    // make needed coordinate adjustments for new field
    myRect[0] = f.rect[2]+.32*inch; // the ulx for new = lrx for old
    myRect[2] = myRect[0]+1.18*inch; // move two inches for lry
    f = this.addField("Month 2", "text", p, myRect);
    f.borderStyle = border.s;
    f.alignment = "center";
    f.textSize = 14;
    f.textColor = color.black;
    var f = this.getField("Month 1 Exp"); // get the Field Object
    var myRect = f.rect; // and get its rectangle
    // make needed coordinate adjustments for new field
    myRect[0] = f.rect[2]+.32*inch; // the ulx for new = lrx for old
    myRect[2] = myRect[0]+1.18*inch; // move two inches for lry
    f = this.addField("Month 2 Exp", "text", p, myRect);
    f.borderStyle = border.s;
    f.alignment = "center";
    f.textSize = 14;
    f.textColor = color.black;
    var bRect = this.getPageBox( {nPage: p} );
    bRect[0] += 6.08*inch; // from upper left hand corner of page.
    bRect[2] = bRect[0]+.69*inch; // Make it .68 inch wide
    bRect[1] = .72*inch;
    bRect[3] = cRect[1] - 22; // and 22 points high
    // now construct text field
    var f = this.addField("Rep", "text", p, bRect )
    f.borderStyle = border.s;
    f.alignment = "center";
    f.textSize = 14;
    f.textColor = color.black;}
    Then I also have another file called "trustedAddWatermark"
    trustedAddWatermark = app.trustedFunction( function (bOnTop, cDIPath) {
    app.beginPriv();
    this.addWatermarkFromFile ({bOnTop: false, cDIPath: "/Macintosh HD/Users/ben/Desktop/Acrobat Reference PDF's/Copy Change Request Half.pdf"});
    app.endPriv();
    Then I get the error in the JS console when it is run:
    TypeError: this.addWatermarkFromFile is not a function
    3:Folder-Level:User:trustedAddWatermark.js
    The thing that I don't get is if I put the 1st script in a button using the Form tools it works fine but I can't get it to work as a menu item. Where am I going wrong???

    The first example I found was Ted Padova's goNext function:
    function goNext(oItem, oEvent, cName) {
    try{ // error catcher
    AFNumber_Keystroke(0, 0, 0, 0, "",true);
    if (oEvent.rc && AFMergeChange(oEvent).length == oEvent.target.charLimit)
    oItem.getField(cName).setFocus();
    } catch(eMsg) { // trap error display error message, field in and next field
    app.beep(3); // beep
    console.println("Error: " + eMsg + "\nField: " + oEvent.target.name + "\nNext Field: " + cName);
    } finally { // always run
    return; }
    } //end // goNext
    // call the goNext function in the field's format custom keystroke
    goNext(this, event,"NextField");

  • Repainting problems of the Menu items in Oracle Help Navigator

    All,
    I am facing a strange problem when using Oracle Help for my application which is developed in Java,Swings.
    Whenever, I open Help for any component through my application, the menu items in the Help screen are not visible. They are not getting repainted. Only when user drags the mouse over the items, they are getting repainted and visible to the user. This has been raised as a bug by our testing people. I couldn't get any help in aspects of any errors/exceptions being logged when the action takes place.
    Where can I have the log files for Help window?
    Can anyone help me and guide me to the right solution in this regards.
    My environ is like this:
    Windows NT, JRE1.4, Oracle Help - ohj-jewt-4_1_16.jar,
    Thanks in advance for all.
    regards,
    Kishore.

    iweb2 navbar is rendered by javascript widget, therefore you can change navbar font style with javascript; this is an efficient way to change navbar font style.
    Copy and paste the following into your pages using HTML Snippet:
    <script type = 'text/javascript'>
    function changeNavbar() {
    navCSS = parent.document.getElementById('widget0-navbar');
    navCSS.style.fontSize = '0.75em'; // font size, change to less than 1em to change font smaller;
    navCSSbg = parent.document.getElementById('widget0-bg');
    navCSSbg.style.textAlign = 'center'; // navbar list alignment;
    clearInterval(chkNavbar);
    chkNavbar = setInterval('changeNavbar()', 500);
    note: You won't see the changes in iweb, but you will see the change when view the pages online - after publishing.

  • JavaScript:  How do you pass the currently active doc to a dialog in a menu item?

    I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating.  The menu item calls a dialog that prompts the user to select a page in the currently active document.  The problem is, I can't figure out how to pass the currently active document to the dialog.  I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up.  The AcroJS API gives the following solution (found under app/methods/execDialog):
    This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
       function dotheDialog(dialog,doc)
            dialog.doc = doc;
            var retn = app.execDialog( dialog )
    Finally, the following script can be executed from a mouse-up action, for example.
        dotheDialog( dialog4, this );
    I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed.  My own code looks like this:
      function dotheDialog(dialog, thisDoc){
        dialog.doc = thisDoc;
        var retn = app.execDialog(dialog);
      app.addMenuItem({
        cName: "Test Dialogue Box",
        cParent: "Edit",
        cExec: "dotheDialog(templateDialogue, this);"
    where templateDialogue is the name of my own dialog, rather than dialog4.  I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference.  Does anyone know how to do this?

    Sorry, here it is.  It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
    var templateDialogue = {
      initialize: function (dialog) {
        // Create a static text containing the current date.
        var todayDate = dialog.store()["date"];
        todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
        dialog.load({ "date": todayDate });
      commit:function (dialog) {    // called when OK pressed
        var results = dialog.store();
        var inBounds = (parseInt(results["tPag"]) < this.numPages);
        if(!inBounds){
          app.alert({
            cMsg: "Please enter a valid number for the page from which to make the template." +
            "\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " +  // I put this in to see the value of this.numPages,
            this.numPages,                                                                           // and it continues to be undefined.
            cTitle: "Page out of Bounds",
            nIcon: 0, nType: 0
        }else{
          var nButton = app.alert({
            cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
            cTitle: "javascript",
            nIcon: 3, cType: 0
      description:    {
        name: "Personal Data",    // Dialog box title
        align_children: "align_left",
        width: 350,
        height: 200,
        elements:
            type: "cluster",
            name: "Add a page to this documents templates.",
            align_children: "align_left",
            elements:
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Template Name: "
                    item_id: "tNam",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "view",
                align_children: "align_row",
                elements:
                    type: "static_text",
                    name: "Generating Page: "
                    item_id: "tPag",
                    type: "edit_text",
                    alignment: "align_fill",
                    width: 300,
                    height: 20
                type: "static_text",
                name: "Date: ",
                char_width: 25,
                item_id: "date"
            alignment: "align_right",
            type: "ok_cancel",
            ok_name: "Ok",
            cancel_name: "Cancel"
    Side Question:  Out of curiosity, how would you abort if the user clicks cancel?  I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't.  Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing?

  • Problem when trying to add a link to the left menu item!!!!

    Hi everyone,
    I am trying to put a new menu group on the left menu,with a link in that group for every one.On checking with the customization guide this is what i did
    for one link i did add the following lines in each of the files
    1)xlWebAdmin.properties
    - menuGroup.Misc-Menu=Misc Menu
    - menuItem.Misc-Menu.My-Nomination=My Nomination
    2) xlDefaultAdmin.properties
    - menuItem.Misc-Menu.My-Nomination.link=mynomineefrm?showfrm
    3) repacked the war and the ear
    4) Restarted my server
    When I login into the administration(xelsysadm) page I didnt see any menu item with name "My Nomination" which i am supposed to see.
    secondly it shows the menu item when ever i select some group and click on assign menu item.
    Moreover, when I try to assign this menu item to all users group it gives me this error
    On browser it prints
    Permission Denied to Assign Selected Menu Items
    You do not have the permissions to assign one or more selected menu items.
    on console it prints
    ERROR [SERVER] Class/Method: tcDataObj/eventPreInsert Error :Insert
    permission is denied
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: maoRejections:You do not have permission to insert this obje
    ct.
    ERROR [APIS] Class/Method: tcGroupOperationsBean/addMenuItems encou
    nter some problems: Error occurred while adding menu items.
    ERROR [WEBAPP] Class/Method: UserGroupMenuItemsAction/commitGroupAs
    signMenuItems encounter some problems: {1}
    Thor.API.Exceptions.tcBulkException
    This problem eat my happy sunday :-(, any one has solution for this problem?
    - Also if some one can help on how to link jsp to the new link will be helpful for me!
    Thanks,
    doki

    Design Console > Form Information > add new
    Class Name Organizations.Merge
    Description Move users from one organization to another
    Type menuitem
    Add following to xlWebAdmin.properties, xlWebAdmin_en_US.properties
    Organizations.Merge=mergeOrgs.do?Display
    menuItem.Organizations.Merge.link=mergeOrgs.do?MergeOrganizations
    menuItem.Organizations.Merge=Merge
    mergeOrgs.button.display=Merge Organizations
    Even you have to assign first to System Administrator group
    First go to Manage Group
    Select System Administrator Group
    Select Menu Item
    Click Assign and select newly craeted Menu Item and click Confirm
    These are the steps to see the new menu item. To make this menu item working:
    you'll have to write action class, form bean class and you'll have to create JSPs and make their entry in struts-config as welll as in Tiles-def.xml
    Then your menu item will work.

  • Javascript menu problems in IE

    Hi
    I am using a javascript menu for a website I am trying to
    build, I have tested it on many browsers and thought it was working
    fine, it's fine on all the macintosh browsers, works fine on
    firefox on the PC but there seems to be problems on some versions
    of IE. Especially runing XP but am not sure about vista.
    You dont seem to be able to see the menu when the page loads,
    you can see something is there and the buttons show when you hover
    over them, but they are kicked out of place.
    here is the code if it helps
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    <title>Ecoligical Planning and Research
    Ltd</title>
    <link href="epr.css" rel="stylesheet" type="text/css"
    />
    <script src="Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body bgcolor="#cfdcce">
    <table width="800" border="0" align="center"
    bgcolor="#FFFFFF" class="greenborderoutline">
    <tr>
    <th height="29" align="left" scope="col"><div
    class="menu" id="menu">
    <script type='text/javascript'
    src='quickmenu.js'></script></div></th>
    </tr>
    <tr>
    <td height="132"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','nam e','eprbanner','width','800','height','168','id','eprbanner','title','banner','src','eprba nner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode' ,'transparent','movie','eprbanner'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    name="eprbanner" width="800" height="168" id="eprbanner"
    title="banner">
    <param name="movie" value="eprbanner.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="eprbanner.swf" width="800" height="168"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" wmode="transparent"
    name="eprbanner"></embed>
    </object>
    </noscript></td>
    </tr>
    <tr>
    <td height="304" valign="top"><table width="798"
    height="131" border="0">
    <tr>
    <th width="513" scope="col"><p
    class="bodycopyHomepage"><strong>Ecological Planning
    &amp; Research Ltd</strong> is
    <th width="275" scope="col"><span
    style="margin:0px"><img src="images/office.jpg" alt="Head
    Office" name="eprOffice" width="241" height="296" align="left"
    id="eprOffice" /></span></th>
    </tr>
    </table> </td>
    </tr>
    <tr>
    <td height="105"><img src="images/btBanner.gif"
    alt="btBanner" width="800" height="103" align="top"
    /></td>
    </tr>
    </table>
    <table width="800" align="center" border="0">
    <tr>
    <th scope="col"><div align="left"
    class="copyright">&copy;<strong> 2007</strong>
    Ecological Planning and Research Ltd </div></th>
    </tr>
    </table>
    <p> </p>
    </body>
    </html>
    any help here would be great as I am really stuck
    many thanks
    Jon

    Gad. Ask the authors of the menu for help. Would you REALLY
    use something
    like that on a web page?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ronnyrocket" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi
    >
    > I am using a javascript menu for a website I am trying
    to build, I have
    > tested
    > it on many browsers and thought it was working fine,
    it's fine on all the
    > macintosh browsers, works fine on firefox on the PC but
    there seems to be
    > problems on some versions of IE. Especially runing XP
    but am not sure
    > about
    > vista.
    >
    > You dont seem to be able to see the menu when the page
    loads, you can see
    > something is there and the buttons show when you hover
    over them, but they
    > are
    > kicked out of place.
    >
    > here is the code if it helps
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    > "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    > <title>Ecoligical Planning and Research
    Ltd</title>
    > <link href="epr.css" rel="stylesheet" type="text/css"
    />
    > <script src="Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    > </head>
    >
    > <body bgcolor="#cfdcce">
    > <table width="800" border="0" align="center"
    bgcolor="#FFFFFF"
    > class="greenborderoutline">
    > <tr>
    > <th height="29" align="left" scope="col"><div
    class="menu" id="menu">
    > <script type='text/javascript'
    src='quickmenu.js'></script></div></th>
    > </tr>
    > <tr>
    > <td height="132"><script
    type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=7,0,19,0','name','eprbanner','width','800','height','168','id','eprbanne
    >
    r','title','banner','src','eprbanner','quality','high','pluginspage','
    http://www
    >
    .macromedia.com/go/getflashplayer','wmode','transparent','movie','eprbanner'
    > );
    > //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=7,0,19,0" name="eprbanner" width="800"
    height="168" id="eprbanner"
    > title="banner">
    > <param name="movie" value="eprbanner.swf" />
    > <param name="quality" value="high" />
    > <param name="wmode" value="transparent" />
    > <embed src="eprbanner.swf" width="800" height="168"
    quality="high"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    > type="application/x-shockwave-flash" wmode="transparent"
    > name="eprbanner"></embed>
    > </object>
    > </noscript></td>
    > </tr>
    > <tr>
    > <td height="304" valign="top"><table
    width="798" height="131"
    > border="0">
    > <tr>
    > <th width="513" scope="col"><p
    > class="bodycopyHomepage">
    Ecological
    > Planning &amp; Research Ltd is
    > <th width="275" scope="col"><span
    style="margin:0px"><img
    > src="images/office.jpg" alt="Head Office"
    name="eprOffice" width="241"
    > height="296" align="left" id="eprOffice"
    /></span></th>
    > </tr>
    > </table> </td>
    > </tr>
    > <tr>
    > <td height="105"><img src="images/btBanner.gif"
    alt="btBanner"
    > width="800"
    > height="103" align="top" /></td>
    > </tr>
    > </table>
    >
    > <table width="800" align="center" border="0">
    > <tr>
    > <th scope="col"><div align="left"
    class="copyright">&copy;
    2007
    > Ecological Planning and Research Ltd
    </div></th>
    > </tr>
    > </table>
    > <p> </p>
    > </body>
    > </html>
    >
    >
    > any help here would be great as I am really stuck
    >
    > many thanks
    >
    > Jon
    >

  • How to invoke a plug-in menu item via Javascript?

    Hi, I installed a plug-in on my Acrobat Pro v11, it shows a plug-in menu, and there's one menu item in this plug-in menu dropdown. I can manually select that menu item and it does what it's designed to do.
    My question is, how do I use javascript to invoke it, to achieve the same result as when I manually select that menu item?
    I tried using this "app.execMenuItem("name-of-menu-item");" under my click event of a button on the PDF form, but it didn't work.
    What have I done wrong? How to make it work?
    TIA

    Thanks to all those who responded.
    Actually I got it working soon after I posted the question.
    However, I don't know, my trial&error way seems to be a little different from all those documents I read. 
    So, I am not exactly sure if it's the correct way to do this sort of thing or not.
    It certainly is not very end-user friendly IMHO.  
    I will describe what I did below, if you know of a better way, please let me know, thank you.
    First, I put a folder-level script in the Acrobat install folder, the so-called "app" level;
    because when I used the getPath("user", "javascript") call, it returned an error without giving me the user-level path. 
    Anyway, my script (the .js file) looks like this:
    xyz = app.trustedFunction(
                 function() {
                  app.beginPriv();
                  app.execMenuItem("ADBE:myxyz");
                  app.endPriv();
                  return;
    Then, on my form's button-click event, I make a call
      xyz();
    and that got it to invoke the menu item "myxyz" successfully.
    But... I can't say I like my solution:
    1) I don't like the .js file, because I'll have to put it in all my users' Acrobat install folders.
         Extremely inconvenient.
         Is there a way to make it work without using the folder level script???
    2) The script itself, I am not sure if it makes sense or not.
         I can't say I understand all these trustFunction and Security stuff;
          it just so happened that it worked for me, but I don't know why.
          so, maybe there could be a simpler script that can also work?
    3) If I put the "beginPriv()" , "execMenuItem()" and "endPriv()" lines directly in the Button-click event,
          I got an error message in the Acrobat console, something like:  "your security settings does not allow....";
          in fact, I tried many many different ways to write this Button-click script, none of them worked without the folder-level .js file.
          But I hope somebody could come up with a way to make it work without the folder-level script file....
          Is there a way to change the "security settings" without using the .js file?
    4) The execMenuItem is also a headache, sorry about complaining... but... sometimes it just silently exited without doing anything,
          and without returning any error messages... how am I supposed to know what went wrong when it's so quiet?!
           Furthermore, why does it insist on taking the full name of the menu item?  I mean, why do I must put the "ADBE:" part in there?
          there's no other menu item named "myxyz", right?
          I remember Adobe's founders once said that "making our customers' lives easier" was what drove them to work everyday.
          execMenuItem() certainly didn't listen to what they said.

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • Javascript Select Menu Item & Tool

    I am brand new to javascript and quite overwhelmed trying to learn this language. I am trying to convert extensions for Photoshop that were created with Configurator 4 (in case some of you may not know, these panels will no longer be supported in future versions of Photoshop).
    I need to create some HTML panels that use javascript. If someone could help me get started with some basic javascript I would be greatly appreciative.
    Here is what I need to get started:
    1. Tabs at the very top for access to different panel layers.
    2. Open menu item with button connected to javascript.
    3. Select tool from javascript.
    I have found the documentation a bit scarce for non-coders (Hello Adobe), so if someone could show me how the above would work then I probably can figure out the rest.
    Thanks in Advance - Sam

    Thank you - that's the ticket.
    For both tool and menu item I had ScriptingListenerJS active and it gave me the javascript for selecting a tool and also a menu item.
    I will look into the creating tabs on the panel in html.
    Another question:
    I am working with the "Hello World" extension example and am a bit confused by the main.js file.
    (function () {
        'use strict';
        var csInterface = new CSInterface();
        // Reloads extension panel
        function reloadPanel() {
            location.reload();
        function init() {
            themeManager.init();
            $("#btn_reload").click(reloadPanel);
            $("#btn_test").click(function () {
                csInterface.evalScript('sayHello()');
            $("#new_doc").click(function () {
                csInterface.evalScript('newDoc()');
             $("#myNewDoc").click(function () {
                app.documents.add();
        init();
    On the html page there is this: <button id="btn_test">Call ExtendScript</button>
    On the main.js file there is this:
    $("#btn_test").click(function () {
                csInterface.evalScript('sayHello()');
    What does the "$" mean and what does the "#" mean in front of "btw_test".
    Thanks in advance - Sam

  • 30EA2 problem: Menu items not available

    After having used Data Modeler 30EA2 successfully for a while, suddenly several menu items are missing.
    E.g. in my File menu "Open" is not shown (in fact only "Save", "Save as", "Compare With" and "Exit" is shown). This clearly makes the modeler unusable, as I cannot open my models!
    The problem continues even after I download the product (Product Version: 3.0.0.653) from OTN, unzip in a new location and use that.
    Any suggestions?
    -- Peter

    Hi Peter.
    please try removing (or renaming the folder called .oraclesqldeveloperdatamodeler in C:\Documents and Settings\<YOUR_WINDOWS_USER>)
    This is a folder where the datamodeler IDE caches are stored.
    Hope that helps,
    Ivaylo

  • External USB Hard Drive causes menu problem - menu items flash

    Greetings:
    I have a external USB hard drive (250 GB) that is partitioned into 3 hard drives. Two hard drives are formatted in MacOS standard and one is formatted in MacOS extended. I had to reformat the last drive in MacOS extended because the Macbook would not let me edit files on the drive.
    The problem is that when I connect to the drives, the menu malfunctions (I cannot see the date and time and the menu items flash). Dismounting the drives solves the problem.
    Do I need to reformat the hard drives? Or do I need a new USB drive?
    Thank you.
    EA

    Hmm, someone else had a similar problem.  Note the ":: Loading root filesystem module...-e" line.  That "-e" shouldn't be there.  It should be, instead, the module for the filesystem.
    As a workaround for right now, you can add your filesystem module to the MODULES array, and remove the "filesystems" hook.
    In that case, you'll probably want rootdelay=* to allow the drive some time to settle, and rootfstype=* to speed up filesystem detection while in kinit.
    By the way, what filesystem do you have on that machine?  Can you tell me what
    /usr/lib/klibc/bin/fstype < /dev/sda1
    outputs on a running system (you may need to be root, or add yourself to the "disk" group or something similar) - /dev/sda1 should be replaced if the usb drive is not sda1

  • DW menu item font problems Snow Leopard

    I am having a problem in Dreamweaver with the font used for menu items. Out of PS, Fireworks, and Dreamweaver this is the only Adobe program where this problem is evident. I have tried many resolutions on the computer such as clearing font casche, diabling fonts, changing font charastics within DW, installing the latest PS font patch from apple, etc. If anyone has anything I can try to resolve this problem I would appreaciate it.

    I've been using Lion since it's release, it's fine.  Don't know what's holding you back.
    Did you take a higher res screenshot and run it through what the font?  From a glance I'm guessing at Conceilian outline, White Wolf.  And upgrading won't solve this problem because the font will still reside on the system.  An OS upgrade does not remove your custom fonts. It's going to be a process but you might just have to go through every outline font on your system.

  • Enable menu items JavaScript execution privileges

    The note for the setting seems to contradict itself and/or the rest of the documentation: "Enables executing JS by clicking menu items. When off, privileged JS calls can be executed via the menu unless they have been wrapped in the app.trustFunction. Executing non-privileged JS calls via menu items is not blocked whether this box has been checked or not."
    Is that supposed to read "JS calls cannot [...] unless"?
    Will checking the box make reader more or less restrictive of embedded javascript from arbitrary sources in unsigned pdfs?

    Added this to the top of your code
    app.addMenuItem({
            cExec: "mySaveAs();",
                  cParent: "Edit",
                 cName: "Test"
    and tried to execute from the Edit drop down, however it is still throwing error. " This operation is not permitted "
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    RaiseError: This operation is not permitted.
    Doc.saveAs:21:Menu Test:Exec
    ===> This operation is not permitted.
    I'm guessing there must be a setting in my Adobe Reader 9 that is causing this, if you are able to run the same script.
    FYG, the path c:\temp\ exists on the system i'm testing on,
    Any ideas?
    FYG, i'm a complete newbie to this javascript programming

Maybe you are looking for

  • Active Directory Users and Computer not displaying column data?

    I am running Windows 8.1 Enterprise with RSAT installed.  My Domain controllers are Server 2008 R2. I am having and issue with Active Directory Users and Computers.  Typically I will turn on Advanced Features and then add Columns for Email address an

  • How can I make the edges of the JSC component curved?

    It is a very common practice to make the edges curved in web development. Curved edge looks attractive and professional. (for example see blog.com) How can I make the edges of the JSC component curved? For example, consider Textfield component, how t

  • Unlock ipod touch 5 gen

    what do i do when i need to connect my ipod to itunes and it said that i need to unlock it which i cant do so what do i do

  • 10Gig (tengigabit) CRC Errors between N5K500 and 3750X

    Dear Forum, We have an issue with a 10 Gig connection between a Nexus 5548 and a 3750X 10Gig. There is also a HSRP group running over this link with aggressive timeouts which recently behaves somewhat unstable. We noticed a bunch of CRC errors on thi

  • Critical error All management server resource pool

    I just receive critical error: All management server resource pool in scom 2012 management console. Alert detail: Alert subscription data source module encountered errors while running: Alert subscription data source module was unable to find alerts