IE 9 'console' is undefined

Hi All,
One of our user is having an issue with the below website:
https://business.car2go.com/de/frankfurt/registration/#
The problem is that the logon page will not display the page loads but with errors Below is the error we recieve:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Wed, 7 Jan 2015 10:43:32 UTC
Message: 'console' is undefined
Line: 1
Char: 536250
Code: 0
URI: https://business.car2go.com/common/scripts/common/c2g.js?5
I checked the page on Chrome and had no issue and after some investigation I found the link below and it appears that this is caused by the console.log in javascript which IE 9 has a problem with
http://stackoverflow.com/questions/7742781/why-javascript-only-works-after-opening-developer-tools-in-ie-once
If I open the page with developer tools it works fine however is there any way of making the page work without opening these tools as the external vendor is not willing to change there web code.
Thanks

Hello Robert Pollock,
Do you mean that you use the Internet Explorer 9 load the webpage in error and if we open it with F12 developer tool, it works normally?
We could update the Internet Explorer to version 11 and it will work fine.
If you want to use other versions of Internet Explorer 11, we could use the Internet Explorer compatibility mode or the Enterprise mode.
Compatibility View
http://windows.microsoft.com/en-HK/internet-explorer/use-compatibility-view#ie=ie-11
Enterprise Mode http://msdn.microsoft.com/en-us/library/dn640699.aspx
If you want to change the web development code to fix this issue, we could ask in the MSDN Internet Explorer Web Development forum.
https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
The professionals there will be glad to help you.
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support

Similar Messages

  • Transactions Not Showing up in Console

    We recently deployed new functionality in our WLS 6.1 based application. The new
    functionality consists of MDB's and a Stateless Session Bean which the MDB's invoke.
    The MDB's are
    packaged in a separate jar file from the SSB, which is packaged in another jar
    file
    that houses all of our SSB's. The MDB's are transactional.
    One peculiar issue we have noticed is that in the WLS Console, we do not "see"
    any
    transactions related to these new MDB's or the new SSB (Servers->OurServer->Monitoring
    Tab->JTA Tab).
    If you click on "Monitor all Transactions by Name" we are expecting to see an
    entry
    for each MDB's onMessage() method, in addition to any method's invoked on the
    new Stateless Session Bean.
    All of our other Stateless Session Bean methods are show in the "Monitor all Transactions
    by Name" View.
    Any insight as to why these MDB's and SSB are not showing up in this view? Are
    we misconfigured in anyway?
    Please let me know if you need further information, as I would gladly provide
    it.
    Thanks,
         Al

    I hope this is the last one on this topic!
    With a one line script I can use the consul easily but lets say I have something really complicated like the script below. Other than fitting it on one line how can I run it from the console?
    for (var i = 0; i < 10; i++) {
        console.println(i);
    Ctrl Enter after the } throws the following error
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    Sorry for asking such pathetically basic questions

  • Scripts not showing up in console

    Hi all
    I have put my folder scripts in the correct location as far as I know but I can't get any scripts to show up.
    See the screenshot below
    Any Ideas?
    Trevor

    I hope this is the last one on this topic!
    With a one line script I can use the consul easily but lets say I have something really complicated like the script below. Other than fitting it on one line how can I run it from the console?
    for (var i = 0; i < 10; i++) {
        console.println(i);
    Ctrl Enter after the } throws the following error
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    Sorry for asking such pathetically basic questions

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings,
    I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections.  When the user makes a selection, I would like to have the text field (called "Hospital_Address") below the drop down box populate with the corresponding address for the selection.  I have the "Hospital_Address" text field configured for multiple lines and would like the address to have a line break between the street address and the city/state/zip.
    For example, if the user selected "Hospital 1", the text field would display:
    123 Main St
    Anytown, CA 12345
    Any help or examples you can provide would be greatly appreciated.

    You have the element names within the object within brackets.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    // some debugging code to see location names;
    console.show();console.clear():
    for(I in Location) {
    console.println(I);
    // end debugging code;
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;
    This is not a beginners task but requires a fair amount of knowledge about the structure of objects, defining strings, and structure of arrays.
    Are you sure you have all the field names correctly spelled and capitalized?
    Do you get any error in the JavaScript console?
    Just trying the line that defines the "Location", I get the following error:
    SyntaxError: invalid property id
    1:Console:Exec
    undefined
    All the form field in a PDF are processed by using JavaScript and any error in any script will stop JavaScript processing.
    It might help to have a link to the problem form.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;

  • Error in Search results - Sorry, something went wrong. Display template had an error

    I'm receiving this error in custom search results page in our SharePoint 2013 Enterprise farm:
    Sorry, something went wrong.
    Display Error: The display template had an error. You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types.
    'console' is undefined (CoreRender: ~ sitecollection/_catalogs/masterpage/Display Templates/Search/Item_mycustom_Site.js
    I believe a similar error was resolved by March 2013 CU but our farm us running Aug 2013 CU. I have also tried adding domain to trusted zone in IE but still the same error.
    I do not get this error in Google Chrome or in IE 10 or above. Not sure if it is an issue with my display template because error disappears when upgrading IE to 10 or 11.
    Update: In IE 8 I can see search results with no error if the developer toolbar (F12) is enabled!
    -- The opinions expressed here represent my own and not those of anybody else -- http://manojvnair.blogspot.com

    Hi ,
    Did you try these steps
    Open up the SharePoint 2013 Management Shell as Administrator
    and run the following command:   Enable-SPFeature SearchWebParts -url http://<central admin
    url>
    Use a browser on a different machine, or add you SharePoint
    site(s) to the ‘Trusted Sites’ in IE.
    Activate the feature : “My
    Site Host“. This is a hidden feature scoped at the Site Collection level. The feature ID is 49571CD1-B6A1-43a3-BF75-955ACC79C8D8.
    The feature folder under SharePointRoot is MySiteHost.
    Install the update: http://www.microsoft.com/en-in/download/details.aspx?id=36989
    Here are some similar threads for you to take a look at:
    http://sharepoint.stackexchange.com/questions/70452/query-builder-for-result-source-not-working-in-central-admin
    http://www.thesharepointbaker.co.uk/sharepoint-2013-gotchas-2/
    http://bernado-nguyen-hoan.com/page/2/
    Ref:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/6e86cf3f-8001-4d13-a700-9e70d8828f03/controlsearchboxjs-not-found?forum=sharepointsearch

  • Acquire data from a tab delimited file using a popup dialog object on a stamp

    I am trying to import data from a tab delimited file using a popup dialog object on a stamp.  I have purchased the book by Thom Parker--All About PDF Stamps in Acrobat and Paperless Workflows and have been working through the examples in the appendix.
    My problem is understanding how to bring the data into the dialog object from the file.
    I don't want to plagiarize his book--so am electing at this time not to show my code.  The  script is reading the file, just not bringing in the records from the file so that I can select which line to import into the stamp.
    I have typed in the code exactly how the book describes, but when the popup dialog object is selected, there is nothing in the drop-down.  When I click OK, the first record is put on the stamp--except for the fields that I am wanting to appear in the dialog object popup box.
    I have searched the forums, and also the JavaScript reference.  There are examples of the popup dialog object, but none of them show how to import the data from a file--just for the items to be typed in as the list.
    Any help would be greatly appreciated!  i have been trying to work on this for several months now.

    Karl
    Thank you for getting back with me!
    In answer to your questions:
    1. Your trusted function is not a trusted function. Did you put this
    function into a folder level script so that it will get executed at system
    startup?--
         yes--I saved the script as a .js file and put it in the following path (I have Acrobat XI Pro for Windows)
    C:\Documents and Settings\tjohnson\Application Data\Adobe\Acrobat\Privileged\11.0\JavaScripts\GetTabData.js
    2. The script cannot find your tab delimited data file, or it cannot
    extract the data. Did you add the data file in the correct location? The
    location from the script in the book would be c:\mydata\Contacts.txt
    Yes--the file is in the same path as the book.
    Below is my code that references the file.
    var cPath = "/c/mydata/Contacts.txt";
    the slashes in the book go in the direction of the text above--should they go in the direction that you have in your question?
    Also,  the name and email address need to be separated by one Tab character.
    They are. 
    3. The fields need to be named the same way as the columns in the data file (the two names are in the first line of the file).
    My headings are RevByFromTab and EmailFromTab--which match the names of the two fields on the stamp.
    So, check that you are not getting any errors in the JavaScript console
    (Ctrl-J or Cmd-J), and verify that the tab delimited file is in the correct
    location
    When I run in the java script console--and I just run the script on the stamp,
    it says
    TypeError: event.source is null
    17:Console:Exec
    undefined
    When I place the stamp on the page, the popup box is working, but when you click on the down arrow, there is nothing listed.  When I click OK, the RevByFromTab is populated by the first item in the file, but the EmailFromTab field says undefined.
    Thank you
    Message was edited by: tdjohnson7700

  • Flatten Page JavaScript Debugger problem

    I found a common solution online about flattening comments into a PDF:
    1) Press CTRL+J to open Debugger window
    2) Delete anything out of the console window
    3) Type this.flattenPage()
    4) Leave the cursor in the line and press CTRL+ENTER
    I tried this on two computers, each running Windows XP Pro SP3 with Acrobat Professional 9.1.1 It worked on one but not the other. The one that did not work gave this error message:
    this.flatten is not a function
    1:Console:Exec
    undefined
    Any ideas why it would work on one and not the other?

    this.flatten is not a function
    1:Console:Exec
    undefined
    The name of the function is flattenPages. Did you type a space after flatten?

  • Folder level javascript.

    how can i use getNthPageWord methode from folder level script.

    function SaveXml() {
    myFun = app.trustedFunction( function()
        app.beginPriv();
    if(this != 'undefined')
        try
           for(i=0;i<70;i++)
              var arr= new Array();
              arr=this.getPageNthWord(2,i);
              console.println(arr);
        app.endPriv();
              catch(e){
              console.println("error");
    }else
         console.println("undefined");
              console.show();
    and i am calling savexml methode in cExec: property of addToolButton.but it is not working please tell where i am making mistake.

  • Basics: Save Rights Enabled for Reader

    I have an involved Applescript that handles/creates pdfs for our clients. The only thing I need Acrobat Pro 9.4 to do is to create the Rights Enabled option for Reader and save as into a new file. Ideally, without having to use the GUI interface.
    Reading up on the API, every reference to Rights Enabled seems to be in the context of Forms, or Live Cycle. None of those would seem to be required? And there are several atomic levels that can be rights enabled, it seems, which is good. Even if I have none of these environments, is the effect of the menu command of "Enable Rights ..." the same as saving each of these options to a new pdf? I'm assuming this is an application level javascript?
    Starting to work the javascript examples in the API is frustrating because everything after "var jsNum = 10" fails to seem to work and the errors reported don't make sense in the context I'm seeing them. i'm not dumb, just inexperienced with javascript. Its frustrating when the examples copied and pasted error out, etc.
    Some pointers to guides that give me better context would be appreciated, so as not to clog the forum with newbie chatter, thanx, sam

    Thanks for explaining why I couldn't determine this.
    Thanks for the offer of explaining what I'm seeing with the basic API examples. The second one is here, from page 51, example 4.2 of the Adobe Acrobat SDK document:
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    newDoc.insertPages({
    nPage: -1,
    cPath: "Macintosh HD:tmp:1.pdf",
    // Insert doc2.pdf:
    newDoc.insertPages({
    nPage: newDoc.numPages-1,
    cPath: "Macintosh HD:tmp:2.pdf",
    // Save the new document:
    newDoc.saveAs({
    cPath: "Macintosh HD:tmp:11.pdf";
    // Close the new document without notifying the user:
    newDoc.closeDoc(true);
    SyntaxError: missing } after property list
    13:Console:Exec
    undefined
    OK, counting lines it appears to be after the newDoc.close statement. But to my way of thinking all the braces, parentheses are closed.
    I tried removing the returns after each cPath statement thinking perhaps I shouldn't have a return before the closing }); a long shot. Looking at my /tmp directory, I don't see a new pdf called 11.pdf.
    Clearly, there's something basic I'm missing here that I'm unaware of the context, thanx, sam

  • AddWatermarkFromText   syntax error

    I am trying to extract pages and add headers  with a script.
    I run the script by hitting cTRL+ENTER at each semicolon (in the acrobat_x_pro javascript window).
    The extraction and saving of files works just fine.
    But the header (this.addWatermarkFromText) will not work.
    I am getting a SyntaxError with this Source code  is:
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    //================================================
    this.extractPages(0,0);
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_fm.pdf");
    this.closeDoc(true);
    this.extractPages(23,48);
    var strFilename = "INST240_sec1_day1";
    this.addWatermarkFromText({
    cText: strFilename,
    nTextAlign: app.constants.align.right,
    nHorizAlign: app.constants.align.right,
    nVertAlign: app.constants.align.top,
    nHorizValue: -72, nVertValue: -72
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_day1.pdf");
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_day1_quiz.pdf") ;
    this.closeDoc(true);
    //================================================
    I get a similar error when I try to insert a page:
    this.insertPages ({
    nPage: -1,
    cPath: "/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_fm.pdf",
    nStart: 0
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    Help  would be greatly appreciated.

    Exactly, that's one of the problems with the code.
    Actually, Acrobat isn't always very consistent on this issue and it's best
    not to rely on the "this" object when working with multiple documents. In
    such cases I prefer to maintain a variable pointing to each document that I
    want to work with, since sometimes the "this" object changes during
    execution, and at other times it doesn't (and no, this is not very well
    documented).
    For example, if you extract some pages of a document to a new file, the new
    file is opened and becomes active, but is not pointed to by "this". So
    running this code (as a whole script!):
    this.extractPages();
    app.alert(this.path);
    Will show the path of the original file, not the newly extracted document.
    But if you run the same code one line at a time, the alert will show the
    path of the new temporary file created by the extractPages command...

  • Book List Widget

    I built a Book List Widget to promote a series of books available in the iBookstore and added it to my website, but I'm having some trouble getting the links to work properly in Internet Explorer 8 (I'm using version 8.0.6001.18702).  When I click a book link in the widget in any other browser, it opens more detailed information about that book within the widget, and then when I click "View," it takes me to the book's page in the iTunes store.  However, in IE, the links in the widgets do not work, and I get an error message with the following info:
    Message: 'console' is undefined
    Line: 638
    Char: 2
    Code: 0
    URI: http://widgets.itunes.apple.com/lib/itaffill.js?serial=9999999
    I found a couple other Book List Widgets on other websites, and they are giving me the same problem.  I can't find one that works with my version of IE.  The Apple announcement of the Book List Widget  said it works with "most all browsers," but doesn't go into specifics.  I'd expect all versions of IE to be supported, though.
    Has anyone else had this problem?  Please let me know if you've found a way to get the Book List Widget working in all browsers (a link to one that's working would be great), or if it might be something to do with my browser settings.
    Thanks for your help!!

    apps@sinhergy wrote:
    I am integrating the apple widget of my ibook in my website
    What is the url?

  • Receiving a "missing ; before statement" error message

    I cannot see what I'm missing on this one.  This is an Adobe form testing a checkbox (New) and if it has been checked it is required that at least one of the following checkboxes (A or B) is checked. If not, an error is to display on the form to the user.
    This is code in Adobe LiveCycle Designer:
    var BoxCount = xfa.resolveNode(''TopmostSubform.#subform[1].A'')A.rawValue  + xfa.resolveNode("TopmostSubform.#subform[1].B")B.rawValue
    if (new.rawValue==1) {
      if (BoxCount == 0) {
        (app.alert ("You must select at least on Building for Access");
    When running the debugger I get:
    missing ; before statement
    1: Console.Exec
    undefined
    Any help is appreciated!

    Thank you Paul -
    I now have:
    var BoxCount = xfa.resolveNode("TopmostSubform.#subform[1].A").rawValue + xfa.resolveNode("TopmostSubfomr.#subform[1].B").rawValue
    and get the following error:
    xfa.resolveNode("TopmostSubform.#subform[1].A") has no properties
    1:Console.Exec
    What am I missing?
    Thanks for your guidance!!

  • Unable to see download button when trying to download latest reader using IE8

    I was in ther process of trying to download the latest adobe reader, using IE8, after having rebuilt the mobile workstation. In the process of the download I got this series of error messages from the download page, I was not even able to see the download button as per page instruction.
    I do not get the download button appearing at all on the web Page, this is turning out to be too hard for something that is so simple  I just rebuilt the mobile workstation and all of the web page errors just keep appearing one after another with no possible way in accessing the download facility in order to update the Reader??? !!!!
    Copy of error messages attached:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
    Timestamp: Tue, 13 Aug 2013 08:00:22 UTC
    Message: Script error
    Line: 0
    Char: 0
    Code: 0
    URI: http://wwwimages.adobe.com/www.adobe.com/downloadcenter/js/live/polarbear.js
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
    Timestamp: Tue, 13 Aug 2013 08:01:36 UTC
    Message: 'debug' is undefined
    Line: 938
    Char: 21
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'omtrTagList' is undefined
    Line: 2284
    Char: 2
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
    Timestamp: Tue, 13 Aug 2013 08:02:03 UTC
    Message: 'debug' is undefined
    Line: 938
    Char: 21
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'omtrTagList' is undefined
    Line: 2284
    Char: 2
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'debug' is undefined
    Line: 2318
    Char: 2
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
    Timestamp: Tue, 13 Aug 2013 08:02:19 UTC
    Message: 'debug' is undefined
    Line: 938
    Char: 21
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'omtrTagList' is undefined
    Line: 2284
    Char: 2
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'debug' is undefined
    Line: 2318
    Char: 2
    Code: 0
    URI: http://helpx.adobe.com/support.html?promoid=JZEFP
    Message: 'console' is undefined
    Line: 19
    Char: 5
    Code: 0
    URI: http://helpx.adobe.com/etc/designs/support/js/helpHub.js
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)
    Timestamp: Tue, 13 Aug 2013 08:04:20 UTC
    Message: Script error
    Line: 0
    Char: 0
    Code: 0
    URI: http://wwwimages.adobe.com/www.adobe.com/downloadcenter/js/live/polarbear.js

    Download the offline installer from http://get.adobe.com/reader/enterprise/

  • Search and Remove Subordinate Bookmarks

    First off, I'd like to say that I have been trying to figure this out for the the past 2 weeks. This is my last resort.
    What I'm trying to do:
    -Search bookmarks to find any bookmarks that contain "Page"
    -Put those bm's into an array, to be deleted
    -Delete the array that was created.
    Example of BM:
    Decisions
          1A: Decision (01/01/2010)
                 Page 1
                Page 2
                Page 3
                Page 4
    ((Same way through 10A:))
    Transfers
          1B: Transferred (07/26/2010)
                Page 1
                Page 2
                Page 3
                Page 4
    ((And so on for multiple pages and Bookmarks))
    This is the script I have, but keep getting errors on:
    var bm=searchBookmarks(this.bookmarkRoot, 1, "Page");
    console.println("End" + this.bookmarkRoot.name);
    //bm.execute();
    function searchBookmarks(bm, nLevel+, bmName)
    if (bm = null) return null;
    if (bm.name = bmName)
    console.println("Set: " + bm.name);
    bm.remove();
    return null;
    if (bm.children != null)
    console.println("Trash: " + bm.children.length);
    var s=""
    for (var i = 0; i < nLevel; i+++) s += " ";
    for (var i = 0; i < bm.children.length; i+++)
    var BmToDel = "Page" //bm to delete
    var arr = new Array(0);
    var bm;
    RemoveBookmarks(this.bookmarkRoot);
    while (bm = arr.pop()) bm.remove();
    function RemoveBookmarks(bm)
    if (bm.children != null)
    for (var i = 0; i < bm.children.length; i+++)
    RemoveBookmarks(bm.children[i+]);
    if (bm.name = BmToDel) { arr.push(bm); };
    The error I keep running into is shown below. I have to be blind to keep missing the ")"
    SyntaxError: missing ) after formal parameters
    4:Console:Exec
    undefined
    Can someone please assist me in this script? It's driving me crazy.

    George,
    That's exactly what I am aiming to do. I want to remove any bookmark that containts the text "Page" anywhere in the Bookmark name. I still want to keep the pages in the file, but trim off the unneeded bookmarks.
    I'm going to keep researching this myself and see if I can't figure it out, but a little assistance would be nice.
    I've been using the following as my resources:
    -Acrobat JS API Reference
    -Acrobat JS Scripting Guide
    Any others I should try?

  • Combine PDFs (Error on using scripting guide snippet)

    Hi all,
    First of all, all apologizes if this topic has been discussed yet. I have looked in the archives without success.
    However feel free to give me the link if I missed it.
    Ok,
    I am trying to execute this snippet from the scripting guide. But there is no way I can get it working on the console:
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    newDoc.insertPages({
    nPage : -1,
    cPath : "/C/doc1.pdf"
    // Insert doc2.pdf:
    newDoc.insertPages({
    nPage : newDoc.numPages,
    cPath : "/C/doc2.pdf"
    // Save the new document:
    newDoc.saveAs({
    "/C/myNewDoc.pdf");
    // Close the new document without notifying the user:
    newDoc.closeDoc(true);
    newDoc is not defined
    1:Console:Exec
    newDoc is not defined
    1:Console:Exec
    undefined
    What do I do wrong ?
    TIA Loic

    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf
    returns undefined
    // Create a new PDF document:
    var newDoc = app.newDoc();
    // Insert doc1.pdf:
    newDoc.insertPages({
    nPage : -1,
    cPath : "/C/doc1.pdf"
    returns
    syntax error
    1:Console:Exec
    undefined
    syntax error
    1:Console:Exec
    undefined
    Hope it helps
    Loic

Maybe you are looking for

  • Photoshop CC will not print to my Epson r2400

    When I try to print from PS, I get the error window "There was an error opening your printer. Printing functions will not be available until you have selected a printer and reopened any documents". I am using a Mac OS X 10.10.2 and my Photoshop CC 20

  • Trouble with songs that have no albums

    Hey, I have a new video ipod, but I'm having a bit of trouble with the feature where, when you click on an artist with only one album, it goes directly to the list of songs in that album, instead of the list of the albums. The issue is with artists w

  • Trigger process chain using event

    Hi all, I’d like to know if someone ever faced this kind of situation. I have a process in R/3 and it must run every day, and when it’s finished I have to start a process chain in BW. I thought to do this using events. So, I created a Job that execut

  • Create Data Type from XSD

    Hey guys i need to create Data Type from and XSD,in the beginning i had an XML document which i converted to XSD using Altova ,then i imported this XSD in IR under External definition,now how should i go ahead with creating Data Type? my sample XSD i

  • Modifying VI - Vision Assistant

    I have images that consist of an area of particles and an aera of no particles. I am trying to fit a circle to the edge, between the regions where there are and are not particles. I want to use the find edge tool, and I want to find the pixel where t