Javascript link stopped functioning

For the last 3 years are so we have recieved CDs which contain multiple documents and a Table of contents file.  Within the TOC there is the following linked code which when clicked spawns the correct document.  This has worked for years and then magically stopped working a couple months ago.  I'm sure this has something to do with version upgrades because it still works on older machines.  Could anyone give me some pointers?  Here is the code:
  try{
    global.ADPreportPath = "B3051EC2.pdf";
    if ( app.viewerVersion < 8.0 )
        app.execMenuItem("ADP:OpenReport");
    else
        trusted_execMenuItem("ADP:OpenReport");
   }catch(e){}

It seems there could be a several possibilities based on the code you posted.
1. The value of the global variable does not match, or the global variable does not exist.
2. There is not "ADP:OpenReport" menu item on the machine. How does this menu item get added?
3. The function " trusted_execMenuItem" does not exist. It's probably included in a Folder-level JavaScript file.
4. There is some new security restriction.
Can you tell us exactly which version of Acrobat/Reader (e.g., 9.3.4, 9.4, etc) this does not work with?

Similar Messages

  • Javascript suddenly stopped functioning in Firefox?

    I'm working with a site that stopped working in Firefox randomly. This piece of code is populating into the html each time I try to update, and I'm trying to understand it. I haven't made any changes to the javascript used in the site but whatever this is has completely disabled all the site elements that use javascript. The kicker is that it only happens in Firefox. Chrome works perfectly. I've been poring over the html all day and this is the only thing that's wrong with it- I'm at my wit's end, any ideas?
    <script type="text/javascript" id="RTCEarlyScript"> window.oldSetTimeout=window.setTimeout;window.setTimeout=function(func,delay){return window.oldSetTimeout(function(){try{if(!document.documentElement.getAttribute('stopTimers ')){if(typeof func=='string') {var nfunc = new Function(func); nfunc();} else func();}}catch(ex){}},delay);};  window.oldSetInterval=window.setInterval;window.setInterval=function(func,delay){return window.oldSetInterval(function(){try{if(!document.documentElement.getAttribute('stopTimer s')){if(typeof func=='string') {var nfunc = new Function(func); nfunc();} else func();}}catch(ex){}},delay);}; </script>

    That was actually the first thing I checked and it's all enabled, but what you said sparked the idea that something else about the browser had to be interfering so I went down the line with the Firefox extensions on the computer I'm testing on, and sure enough, one of them was recently updated and has a bad string of code in it.
    -headdesk- Now if only I'd done this 8 hours ago.
    Thank you!

  • JAVAscript MM_goToURL iframe function has stopped working

    I've been using a piece of javascript generated as part of an old version of Dreamweaver for a few years now with no problems. However, I visited my site the other day and discovered that one of the functions for 'MM_goToURL' has stopped working. I use this function to travel between pages in the site as well as changing iframes located within certain pages. While the code still works for moving between pages, it no longer works for iframes (or at least not on this site).
    Could I ask for someone to look over my simplified code below and note any errors that may have crept in? Thanks.
    JAVAscript code: (file location: javascript/design.js)
    function MM_goToURL() { //v3.0
       var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
       for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    HTML:
    <!DOCTYPE HTML>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link  rel="stylesheet" type="text/css" href="css/food.css" />
        <script type="text/javascript" src="javascript/design.js" >
            </script>
    </head>
    <body>
    <div class="button" onClick="MM_goToURL('iframe','text2.html');return document.MM_returnValue" >Text</div>
    <iframe id="iframe" src="text1.html" frameborder="no" scrolling="no" ></iframe>
    </body>
    </html>

    I've now solved the problem by adding the criteria of 'name="iframe"' to the iframe code.
    All fixed! :-)

  • How do I code relative links as function parameters within Templates?

    I am a newcomer looking for best practices for a "How Do I?" properly code relative links as function parameters within an Adobe template (DWT) which accomodates page creation at 2 different level of folders. Dreamweaver doesn't appear to handle auto-correction of relative links as function parameters as far as I can see.  It's not clear to me what the best practice I should be following.  While this is not exactly a SPRY question, I am hoping that someone using the Spry.Data.XMLDataSet had already found the best practice to use.
    My Site
    -- Multiple pages at this level    and the parameter needs to be "_includes/UnitSideNavigation.xml"
    SubFolder
    -- Other pages at this level.       and the parameter needs to be "../_includes/UnitSideNavigation.xml"
    And this is the particular code snippet within a non edtable template area I would like to work for 2 levels of pages created from the template.
    <script type="text/javascript">
    var dsItems1 = new Spry.Data.XMLDataSet("_includes/UnitSideNavigation.xml", "/links/firstlevel");
    var dslinks = new Spry.Data.NestedXMLDataSet(dsItems1, "secondlevels/secondlevel");
    </script>
    My environment is Windows/Vista using latest CS4 dreamweaver.
    Any pointers appreciated. This is learn time for me. Hope I have made myself clear. Andy

    I use serverside includes instead of DWT for exactly that reason. Not only that, if you change anything within the template you must re-upload all of the files affected by the change; only the modified include file needs to be uploaded.

  • Copy and Paste Stopped Functioning

    So I know how to copy and paste information. I have been doing it for years and now it has stopped functioning for me on my mac book pro =(
    I can't even copy/paste things in word, text edit, skype, internet emails etc.
    This is really frustrating me. I use the shortcut keys or even using the edit menu and can not get it to work... I have tried repairing disk utilities....
    Someone please help!

    purduegirl wrote:
    --Sorry I am new to the discussion board and don't understand how to make sure this is in the OS X forum. =(
    When you are in one of the forums, near the top of the page it tells you the forum name. If you are on one of the pages that does not show the forum name (such as the page I'm on now doing this reply), there is a path such as "Apple.com > Support > Discussions > iWork '09 > Numbers '09" near the top of the page to let you know where you are.
    I moved the file com.apple.finder.plist to the trash (because drag and click is also not working) and restarted. This didn't fix the problem...
    Didn't previously know you were missing click and drag also.
    I have looked at other discussion threads. Very similar problem is at:
    http://discussions.apple.com/thread.jspa?messageID=9780753&tstart=0
    It sure sounds like the same thing. Your reply in the other thread said you don't have your install disks handy. You can, however, still reapply the combo updater and give that a shot. Here is a link for the 10.5.7 combo update:
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1057comboupdate .html

  • Extended My Sites has stopped functioning correctly

    I have recently extended MySites to an Internet Zone and it has stopped functioning correctly. 
    Previously, when i navigated to https://mysites it automatically navigated to https://mysites/my. Now, it stays on https://mysites and tells me i don't have permission to view this site. If i manually go to https://mysites/my it works fine.
    It is the same behaviour for the extended internet zone. this is set to https://mysites.domain.com and works fine if i navigate to https://mysites.domain.com/my, but not if a dont type the virtual directory. As stated, this has been working fine for months
    without the /my needing to be included, it has only changed since extending to the internet zone.
    Any help would be appreciated.
    Paul

    Hi   Paul,
    According to your description, my understanding is that My Sites had stopped functioning correctly after you extended MySites to an Internet Zone.
    For troubleshooting your issue, please refer to the blog:
    http://blogs.msdn.com/b/jorman/archive/2009/01/19/sharepoint-my-site-link-stops-redirecting-users-to-their-personal-site.aspx
    Also for extending web application to Internet Zone, you can have a look at the video:
    http://technet.microsoft.com/en-in/video/configure-an-alternate-access-mapping-in-sharepoint-2010.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Acrobat Web Capture cannot convert javascript links...?

    In Matrix (Multiple Listing Service) Acrobat Adobe 10 Standard won't convert javascript links in newly created PDFs Documents from Matrix.   The Error message is : Acrobat Web Capture cannot convert javascript links and the link often does not work correctly when opened in the web browser...  
    Is there any javascript download or work around program that can fix this problem?
    Thanks

    Probably not. Pretty hard for Acrobat to handle all of the web JavaScript and possible function calls that could appear on a web page and be located in another directory.
    If this is important to you, you can use the bug report/feature request page at adobe.com..

  • Suddenly audio device stopped functioning dv6 3127tx laptop

    What happend few days back my laptop dv6 3127tx  left speaker stopped working today suddenly audio device stopped functioning.It says when i take mouse there no speakers or audio plugged in.Did I lost both the speeakers.or any problem with the drivers.

    Hi tristh1,
    Thank you for your query, I will do my utmost to assist you.
    I grasp that you have lost the sound. You have tried installing sound drivers, but you got a message that"the hardware detected is not compatible with this IDT audio package".  You are unsure of the model number and were unable to confirm it.  Here is a link to How Do I Find My Model Number or Product Number? so you can verify the model.
    Here is link to No Sound from the Speakers (Windows 7),to aid in resolving this issue.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Button and JavaScript link (help)

    I would like to know how to make a link to open in to a new
    window and..., I have been using javascript links to open images in
    small windows; <a href="images/samples/SampleSC.gif"
    onclick="return popitup('images/samples/SampleSC.gif')"> These
    links work in the html, and I would like to add this link to a
    button(or something) in flash 8
    The following is in my html to make the links work, but if I
    just get the above link somehow imbedded in to a button I think it
    will work from there
    <script language="javascript" type="text/javascript">
    function popitup(url) {
    newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
    if (window.focus) {newwindow.focus()}
    return false;
    </script>
    I am so new to this. I have tried adding the following to the
    action script but it did not work;
    homepage_btn.onRelease = function () {
    getURL("
    http://www.macromedia.com",
    "_blank");
    I found the following ways to do this
    http://www.abcpchelp.com/temp/URL2.htm
    but either I did not know how to use them or they did not work
    The flash file I am working on is here:
    http://www.msresume.com.au/Default1Draft.aspx
    (the links will be in the sample thumbnails)
    Thank you, your time is appreciated!

    michael- wrote:
    > I would like to know how to make a link to open in to a
    new window and..., I
    > have been using javascript links to open images in small
    windows; <a
    > href="images/samples/SampleSC.gif" onclick="return
    > popitup('images/samples/SampleSC.gif')"> These links
    work in the html, and I
    > would like to add this link to a button(or something) in
    flash 8
    >
    > The following is in my html to make the links work, but
    if I just get the
    > above link somehow imbedded in to a button I think it
    will work from there
    >
    > <script language="javascript"
    type="text/javascript">
    > function popitup(url) {
    >
    newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
    > if (window.focus) {newwindow.focus()}
    > return false;
    > }
    > </script>
    >
    All you need is one simple line in flash an none of the HTML
    stuff.
    getURL("javascript:n_name=window.open('page.htm','thewin','width=720,height=490,scrollbars =yes');void(0);");
    Take note tho, this might not work tested locally. You need
    to upload to server and
    test it online.
    Now, if you have multiple windows, change the "thewin" to
    something like "thewin1" "thewin2" etc...
    If you keep requesting window with same name, you end up
    loading other content into it.
    New name assure new object and new window made.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • The keyboard and trackpad on MacBook Air (13-inch, Mid 2013) computers may stop functioning at the Personalize step when installing Windows 7 64bit

    The keyboard and trackpad on MacBook Air (13-inch, Mid 2013) computers may stop functioning at the Personalize step when installing Windows 7 64bit.

    1. Reset PRAM.  http://support.apple.com/kb/PH4405
    2. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    If this does not help, contact Apple.

  • HT5055 Just updated to lion and my cctv access has stopped functioning all I get is a white screen in the middle of the control panel where the camera shots should be.  I think it is caused by JAVA but am confused as when i view on snow leopard it works 

    Just updated to lion and my cctv access has stopped functioning all I get is a white screen in the middle of the control panel where the camera shots should be.  I think it is caused by JAVA but am confused as when i view on snow leopard it works  can you help

    Open "Java Preferences" either from spotlight or your utilities folder...it's probably going to say you need to install a java runtime. Then just click install!

  • Trying to load a javascript link from text file into a dynamic textfile

    Can anyone help me with this problem? Im trying to load in a
    newsfeed from freshcontent.net into my text field. If i put this
    javascript link on an html page, the page shows correctly, which is
    im supposed to get 3 dynamic links with news content headlines.
    Please view the link to see what i mean:
    http://www.freshcontent.net/directory/real-estate/real_estate.html
    Now, i cannot get this same type of display behavior in my
    text field if i just paste into my text file the javascript link
    thats supposed to bring up the 3 headlines. It is my understanding,
    that flash cannot do this without some sort of specific
    actionscripting, that involves asfusion, and/or externalInterface.
    Im not sure exactly how to go about setting this up to make this
    work. My current code looks like this:
    If anybody could tell me where im going wrong and what i
    should change in order to get the desired result im going for, Id
    very much appreciate it. Thanks

    well sorry there fanmap - but I don't think you're going to
    be able to get this to work. here's why: the link points to a php
    file - which gathers dynamic info from a DB - the return from the
    php is generating a string that is based on the DOM and
    'constructs' a javascript method that in turn writes to the html
    document. although we can embed html into a textField in Flash
    there are a limited number of supported html tags - and JS methods
    will not operate internally. in addition, (i'm not certain someone
    correct this if i'm off) there's no way to 'change' the output of
    the php call, therefore you will not be able to read the return
    because it is designed to use the DOM and write solely to the
    current document. Even if you were to access the JS method from the
    swf file (which one can) it will still only write the content of
    the php return to the html document - and the output is not
    compatible with the textField class.

  • Javascript links don't work on my 2010 Macbook Pro

    I've had this issue for a while now.
    Javascript links such as "void", "loadmore" etc.. do not work on my 2010 Macbook Pro.
    They are enabled in all browsers, (chrome, ff, safari) and do not work in any of them.
    Specifications:
    Mid-2010 Macbook Pro
    OS X Lion 10.8.2
    13.3"
    Any help?
    Thanks

    ......

  • MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?

    The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one.  If the battery was questionable, the firmware update was really not too important.
    You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
    The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity.

  • I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. After long hours, I discovered that if I change the name of the mailbox, the content works.

    I found the solution to a Mavericks bug on the Mail program. How can I share it? Several of my mail boxes stopped functioning properly when I updated to Mavericks. The title of the mails stored in the mailbox appear, but the content was unavailable.
    After 4 long hours at the phone with the Apple staff unable to help me, I discovered that if I change the name of the mailbox, the contents of the mails stored there become available.
    Please, make this solution available to other people!

    You have found the the way to share it.   Include your problem and its solution in a forum post in the Mavericks forums.   Then mark you own post with a green solved star.
    Note.  You won't get any points for that; points are only awarded where you mark someone else's post as either helpful or solved.

Maybe you are looking for

  • Doubt in alv top of page

    hi, I am trying to pass top of page to my alv report. DATA : TY_EVENTS TYPE SLIS_ALV_EVENT, IT_EVENTS TYPE SLIS_T_EVENT. CLEAR TY_EVENTS. TY_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE. TY_EVENTS-FORM = 'TOP_OF_PAGE'. APPEND TY_EVENTS TO IT_EVENTS. CALL FUNCTI

  • Xsu12.jar and '...could not be resolved'

    On an NT machine, running 8.1.7 I have gotten XSU12 installed and operational, however on a Solaris machine running 8.1.6 I am unable to get the xsu12.jar loaded properly. Starting with OracleXMLStaticSave and onward get the dreaded ORA-29534 ...coul

  • NIC teaming - Server 2008 R2 DC combined with other Software

    Hello! I've been searching all morning for an answer of what we have in mind to do at work.... We've got a server installed with Windows Server 2008 R2 and have 4 NICs on it. We want to make it a DC (with DNS, DHCP and print services) and also want t

  • Poor graphics on export.

    I am creating a project in FCP and I have imported a psd. file to fade in and out at the beginning and end. My sequence settings have a frame size of 320x240 and my graphic file is created in the same resolution in Photoshop before I import it. The g

  • Books purchased on ipad not syncing with itunes

    I have a purchased around 20 or so books on my ipad. I bouth them over time. The books that I purchased earlier in the year synced as normal and show up in tunes. The last 10 or so books will not show up in itunes?