Recursive setTimeout becomes inactive through JavaScript console

Hi,
I'm using setTimeout() recursively in functions which stops working completely as soon as I trigger an alert-box (alert()) from the JavaScript console. Calling alert() from the document's code itself does not have this effect. Refreshing the site F5 or hard refresh Ctrl+F5 reloads the page but doesn't start the timers. The only way to restore the site completely and get setTimeout() to work again is to close and open the tab or browser again. This seems to be a bug, I think. I'm using Firefox 15.0.1 on Win 7 64-bit.
See example below. The code below keeps displaying the time in the window's title after clicking the button. If you execute "alert('');" from the JavaScript console instead, it stops all setTimeout() functions and does not reactivate them even if you reload the page.
Edit: Sorry, heres the code:
<html>
<head>
<script>
function init()
callself();
function callself()
var now = new Date();
document.title = now.toLocaleString();
setTimeout("callself()", 100);
</script>
</head>
<body onload="javascript:init();">
<button onclick="javascript: alert('');">click me</button>
</body>
</html>

Thanks for the info! Very useful to not become crazy while debugging it

Similar Messages

  • How to make BEX Customer Exit Variable inactive through Customer Exit Code

    Hi,
    I had created two variables VAR1 and VAR2 as Customer Exit variables
    If VAR1 is entered then it should automatically make the VAR2 as NO Entry Variable.
    vice versa also required.
    can u help me with any code in CMOD so that we can make it inactive through Customer Exit Code.
    Thanks in Advance.
    Sunil.

    What i want is not commenting the code
    I want to make the BEX Variable as inactive by using the Customer Exit Code
    EX : If value in VAR1 is entered  then VAR2 should become automatically inactive.
           If value in VAR2 is entered  then VAR1 should become automatically inactive.
    how can this be done
    Thanks in advance.
    Sunil

  • Outlook Add-in becomes Inactive randomly

    Hi
    We have created a VSTO Add-in for Outlook.  The add-in is intended as a plugin so that the other third parties can write their own "providers" that our addin can utilize.  As an example the add-in shows a grid of Items.  Anybody
    can write a "provider" and display their own items in our grid.
    To do this our add-in in made up of a three projects. core , common and library. The Library contains the public interfaces.
    At run time the add-in uses MEF to load any provider assemblies.
    This has been working quite successfully at numerous client sites with many users for some time.  However last month a client reported that when they start Outlook the Add-in was going inactive.  No attempts to re-active it would work it always
    went back to inactive.
    We turned on VSTO_SUPRESSDISPLAYALERTS and found that the issue seemed to be because the assemblies were not being loaded when the Add-in initialized.
    Checking the assemblies that were being dynamically loaded we found that two of them were unsigned.  We subsequently signed the assemblies, re-applied and everything worked.
    So far so good.  We patted ourselves on the back and made the assumption that some MS security Patch had been applied that stopped unsigned assemblies from being loaded at run time.
    We could not however replicate the issue in house , not could we find the patch that might have caused the issue.
    The problem however continues....
    Our installations team took a draconian approach to this issue and started installing the signed assemblies on all our customer sites regardless of whether or not they had the original issue.
    For most clients everything was fine.  The add-in worked with or without the signed assemblies.  However at one client site on a number of users pc's the add-in was still inactive.  removing the signed assemblies and putting back the unsigned
    assemblies resolved the issue.  To say this is weird is an understatement. The complete opposite behavior.
    Now this week they have reported another user has suddenly found the add-in is inactive and using neither the signed nor unsigned assemblies works.
    We are at a complete loss what to look for next.
    To summarize.
    Our add-in dynamically loads assemblies at run time using MEF
    It was working fine at all sites until recently.
    Add-in randomly becomes inactive and cannot be re-activated either manually or through the registry.
    Signing the Assemblies works at most sites
    At one site unsigned assemblies work and signed assemblies do not
    At the same site one user reports neither set of assemblies will activate.
    We have run Caspol and cannot see anything amiss
    We have used Caspol to apply Full Trust - no affect
    We can not replicate in house
    Things we are trying
    Machine comparisons between working and non working pc's
    Removal of all other add-ins
      If anyone has any other suggestions what could be causing such behavior it would be much appreciated.
    Nick

    Hello Nick,
    I do not believe the issue depends on the signed/unsigned assemblies. Check out the Trust center settings to make sure that Macro security settings are not applied to add-ins. Also pay special attention to the Trusted Publishers list.
    Anyway, Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event
    handler in your add-in is executing.
    Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event
    handler is executing.
    When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in
    again.
    You can read more about that in the
    How to: Re-enable an Add-in That Has Been Disabled article in MSDN. Most probably the add-in fires an exception at runtime and Outlook disables the add-in silently.
    Also pay special attention to the
    Performance criteria for keeping add-ins enabled . Outlook 2013 monitors add-in performance metrics such as add-in startup, shutdown, folder switch, item open, and invoke frequency. Outlook records the elapsed time in milliseconds for each performance monitoring
    metric.
    For example, the startup metric measures the time required by each connected add-in during Outlook startup. Outlook then computes the median startup time over 5 successive iterations. If the median startup time exceeds 1000 milliseconds (1 second),
    then Outlook disables the add-in and displays a notification to the user that an add-in has been disabled. The user has the option of always enabling the add-in, in which case Outlook will not disable the add-in even if the add-in exceeds the 1000 millisecond
    performance threshold

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • SOA services become inactive after bouncing SOA

    Hello Experts:
    Environment:
    SOA 11.1.1.6.0
    Web Logic 10.3.6
    2 Node Cluster
    Node1 --> Admin Server, Node Manager, Managed Server 1
    Node2 --> Node Manager, manager Server 2
    http Proxy Host --> node.domain.com
    2 managed servers and 1 VIP pointing to BOTH node1 node 2.
    For example:
    Managed Server 1--> node1.domain.com
    Managed Server 2 --> node2.domain.com
    VIP (http proxy) --> node.domain.com
    (This points to node1 and node2)
    We are able to create service, deploy and use it successfully. The issue is, Once we bounce the SOA server, the services become inactive and the ONLY way to make ti work is to re-deploy!!!
    Note:
    This issue happens ONLY when we use the VIP
    Anyone seen this before??
    Any help is appreciated..

    @Sri_Sonti
    In the Admin Console, I can see both users in the security realm with the following configs:
    weblogic:
    all atributes with the "value" column blank
    groups: Administrators
    OracleSystemUser
    all atributes with the "value" column blank
    groups: OracleSystemGroup
    Also I have not found the system-jazn-data.xml file you mentioned. In that folder there's only a readme.txt file.
    Best Regards,
    luismcs
    Enter Cookie as format:
    (ex: name=val;) separate with ';'
    OKCancel

  • Camera Raw loses system focus and becomes inactive

    While working in ACR if I hover over any of the command buttons, Save Image,  Open Image, Cancel, or Done for a few seconds the "tool tip" for the button displays and as soon as I move the mouse again the whole Camera Raw windows loses system focus and becomes inactive (every tab, control, menu, etc., becomes greyed out).  To regain the system focus I must move the mouse to the windows 7 taskbar and then back into Camera Raw.  If the fullscreen checkbox in Camera Raw is active the only way to regain system focus is to press the Windows Key twice on the keyboard and move the mouse out of the taskbar tray.  This gets pretty frustrating.  Any clues?

    It doesn't normally do this, I can assure you.  Normally the tooltips just pop up and Camera Raw stays active.
    Do you have any desktop management software installed, besides what Windows provides?
    Are your video drivers up to date?
    -Noel

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

  • Acrobat Reader X / 10 - javascript console problem / crash

    Hi,
    I develop adobe interactive forms and need javascript console badly!
    My system:
    Windows XP Prof.
    Acrobat Reader 10 (free)
    Internet Explorer 8
    Adobe Livecycle Designer ES 9 (latest version)
    The javascript console works just fine if I start an adobe form "native" = with Acrobat Reader X directly.
    But if I use Adobe Livecycle Designer (latest version) [the issue also described here], the console just crashes / disappears right after it started.
    The same happens if I open the pdf-file (adobe interactive form) with Internet Explorer.
    E.G:
    - When using Acrobat Reader "native":
                 console will open up on javascript syntax errors or by klicking a button (   javascript = console.show();    )
    -  When using Internet Explorer or Adobe Livecycle Designer:
                  the same pdf file cannot view the javascript console. it just "disappears immideatly" / crashes
    There is any technical support for Acrobat Reader expect this forum - so I was told when I called adobe hotline.
    I hope anyone could actually help me here.

    Hi,
    Don't open the console just the reader application. and then open the console from your script as you do.
    I have noticed in the past that sometimes the console appears for a very short period of time and then vanishes and this appears to be caused by the console window being associated with the open Adobe Reader application ( when it has no documents open) rather than the open PDF file in the preview or browser.
    Just a thought
    Malcolm

  • Change in Fiscal Year Variant Causes Cube to become inactive

    In Maintain Fiscal Year variant, we attempted to change the Fiscal Periods to reflect the 2007 Fiscal Calendar. When we saved it, it caused the Update Rules for our Infocube to become inactive. I need to know how to reactivate them or what to do. The Error message is saying that there is no routine created for the object. How do I recreate the routine and reactive the Update Rules?
    We are using BW 3.1

    Hi David,
    Whenever you change a MetaData Object, BW will automatically deactivate everything that relies on that object to prevent system instability.  In this case, your Update Rules and InfoCube (and MultiProviders if you use them) were deactivated.  In most cases, simply reactivating them will correct the problem. 
    Judging from your post, this isn't the case.  What did you do to the InfoObject that required reactivation of the InfoObject?  You may want to check inside the Update Rules to see if BW removed the connection that you had before.  I've seen that happen as well.
    Adam

  • Didnt find Javascript console in Acrobat 9.1

    Hi
    I want to use acrobat javascript editor but i didnt find any javascript console or javascript editor to start javascript in Acrobat.
    I didnt get debugger also . Searched in Advanced tab and also enabled Javascript editor--> Editor-->preferences--> Javascript
    I am using Acrobat 9.1
    Thanks
    Santosh Patil

    Acrobat Standard, Pro, or Pro Extended ?
    In Acrobat Pro you can activate the debugger with Ctrl+J.

  • How to Call the Acrobat plug-in through javascript

    Is it possible to call the acrobat plug-in through javascript? Kindly help me with any samples.
    Thanks,
    Prabudass

    I have found the way to open the plugin menu "Documents-->OCR Text Recognition-->Recognize Text Using OCR" through javascript. Now i have to select the settings and set the values like the below options:
    1.Primary OCR Language : English (US)
    2.Pdf Output StyLe : Formatted Text & Graphics
    3.Down Sample Images : Lowest (600 dpi)
    which are listed in the "EDIT" menu of the "Recognize Text" form, and also to activate the "OK" button. Is it possible to do the above through Java Script. Please kindly provide any samples.
    Thanks,
    Prabudass

  • Pages wont load, links become inactive

    Hello, I have had this issue for a while and I have finally decided to ask for some help, usually I can find answers to my problems but am a bit stumped on this one.
    My issue is this:
    I do a search, right click link and open in new tab - works 80% of the time. ok other 20% page wont open just stuck. Whats interesting though is I have found if I refresh the google search page I can then open the link fine, - the first open page is still sitting there spinning around, sometimes when the link opens this will kick the first try into finding the site. Now it has been getting worse. Now links on web pages becoming inactive as in i click on the link and nothing happens, right click and it does not have open in new tab ect. Its as though the page has lost all of it connections to the internet. sometimes when i refresh the page after a link not working it will open the linked page? bizarre.
    I have done a lot of research on this and have done things like clear the cache,
    uninstalled and reinstalled firefox,
    changed to new profile,
    and a myriad of other things mainly in regards to pages wont load.
    does this happen in other browsers, I barely use other browsers so haven't noticed that it does.
    I use ghostery and ad block plus, ad block pop up, ad block is set to exclude google.
    does this happen on other computers with firefox on my wireless network? not as much sometimes pages wont load but can put that down to internet or wireless issues.
    I cant rule out it being a browser issue because when pages wont load from google links i can open bookmarks and the pages load as well as links from them out to the internet, and the page open via google still sits on spinning, try the link again and again and still wont load.
    Could it just be a bad link? it happens far too often for the internet to have that many bad links.
    other clues,
    Ad block plus and ghostery have used this and updated for a long time with out these issues.
    Issues only started with the last couple of firefox updates.
    something of interest is that this issue started around the time we upgraded to adsl 2+ from adsl and got a new modem, but the internet is still connected and I can still surf from the bookmarks so that could be just a coincidence so I still cant rule out a browser issue.
    oh does the page time out - eventually yes but takes a long time, I do see it saying waiting for fonts.google or other such things but tried all of those fixes and nothing helps.
    I hope I have been able to get my issue across.
    Any help would be greatly appreciated
    Soleous75

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Weblogic 10 doesn't start through admin console

    Hi,
    While starting a managed server on WebLogic 10.3 through the admin console I get the below error. However when starting the same managed server with a script I can successfully start it up.
    <Sep 30, 2010 10:31:52 AM EEST> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at http://10.123.456.78:7001.>
    <Sep 30, 2010 10:31:52 AM EEST> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
    <Sep 30, 2010 10:31:52 AM EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    Sep 30, 2010 10:31:55 AM EEST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
         at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40)
         at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35)
         at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
         at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
         at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    java.net.UnknownHostException: myServer: myServer
         at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
         at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
         at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35)
         at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
         at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
         at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The environment had been up and running for many months, have done many successfull restarts occasionally. But after an ungraceful shutdown (database connection was down and managed server wouldn't shutdown through admin console) of the managed server & admin server, the startup through admin console stopped working. No configurations had been modified and we have two other systems working with similar configurations.
    The log is stating that "<The admin server could not be reached at http://10.123.456.78:7001.>" but it actually is listening at that IP and port and I can connect to it with other means. I'm able to ping the hostname, IP, localhost etc... and network connection shouldn't be an issue even though the log states so.
    Does anyone have any ideas what is broken? Thanks for any help in advance!

    Hi,
    With script I meant the startManagedWebLogic.cmd script (on Windows). The managed server is running on the same machine as the admin server.
    The hosts file has also been checked, it has the same content as two other environments which are working fine. But anyway we tried adding the IP & hostname there, but it didn't fix the issue. Nothing is wrong with the DNS either.
    I'm also able to ping the address:port, with the command you gave I get the following result:
    Sending 1 ping of 100 bytes.
    RTT = ~0 milliseconds, or ~0 milliseconds/packet
    When I'm trying to restart the managed server through admin console (on my laptop), I can see on the server side that there is a connection to the IP:port of admin server from my laptop's IP:
    C:\>netstat -an | grep 7001
    TCP 10.123.456.78:7001 0.0.0.0:0 LISTENING
    TCP 10.123.456.78:7001 10.164.51.33:3965 ESTABLISHED
    I again want to say that no changes have been done to any configurations in the environment. It was working fine before the "ungraceful" shutdown, where the connection to DB (that the managed server uses) was down and neither the managed or admin server would shutdown through admin console, but were shutdown by closing the cmd prompt window(used to start admin server) and java.exe task from taskmgr (managed server).

  • JavaScript Console Problem (only in LS preview mode)

    Hello,
    my JavaScript console "crashes" in preview-mode in lifecycle designer. It just appears for a "millisecond"´, well I see it flicker at last.
    It doesn't matter if there is a syntax error or if I try to start the console by clicking a button ( Event click => console.show(); )
    The console just flickers.
    If I save the pdf file everything works fine. Console shows up on errors or if it told to do so (e.g. my button is clicked).
    I cannot afford to save the pdf-file every time for some reasons (livecycle designer is used in sap gui, I have to run the whole process to get the PDF ...)
    By the way, the same problem is present in Livecycle Designer if I use it "native", not called from within the sap.
    I have already tried to close the acrobat reader tasks. There are two of them, when adobe reader 10 starts (native or in livecycle-preview).
    But by closing one of the tasks, the second one closes, too. Therefore there is no help this way.
    I use Adobe Lifecycle Designer ES 8.0 (8.01.2008.1.380548) and Acrobat Reader X (10.0.1)
    The PDFs output in LS is set to Acrobat 8 (dynamic)
    In Acrobat Reader javascript console/debugger is set as active, as well as to show errors etc.
    It might be a problem realted to sap gui.
    I just ran the pdf-preview in sap gui. And Console didn't show up again.
    I have saved the same document from the sap print-preview on my local hd drive. Then started it with adobe reader and everything worked just fine.
    Please do not blame sap only. As I have told before: the same problem occurs if I use livecycle designer "native", not within sap gui

    nikg-fh schrieb:
    it seems the problem is caused directly by adobe reader X.
    I just have started a new descussion here (adobe reader forum).
    If anyone could help me, feel free to do so!
    my configuration:
    windows xp pro
    adobe reader x
    adobe livecycle designer 9 ( therefore it is not an version 8 issue )
    admin rights on the pc ; )
    I might add that you are not alone!
    I am having the same problem (LSD ES2 (version 9.0.0....) and Adobe Reader X and Acrobat Professional 8)
    Whenever I save a form as PDF and open it with Reader or Acrobat I get to see the console.
    But never when I view the form in Designer preview!
    That used to work until I installed Reader X.
    Same as you I checked all configurations in Reader and Acrobat: all perfect.
    I really do hope that someone finds a solution for this.
    PS. This problem should be discussed in THIS forum. It is clearly a Designer problem!

  • Unable to Start MDM Server through MDM Console

    Dear All,
    We have issue to start MDM through MDM Console , MDM instance is up and running SAP console.
    I have already mounted MDM Server but its show MDM is not started , we are try to start manualy while right clicking.
    It shows below error .
    error starting 'sap1024.sap.xxx.com (MDM Server)'
    Call to SAPWebServiceStartInstance failed with error .A connection attempt failed because the connected party did not properly respond after a period of time , or established connecton failed bacause connected host has failed to respond.
    Kindly suggest to resolve the above issue in MDM.
    thanks

    Closing the thread , same thread post in MDM .

Maybe you are looking for