ClearInterval() not working, problem with scope

Hi.
I have the following javascript code:
var ivScroll;
function scrollHoriz (nScrollX)
if (window.scrollX < nScrollX) {
window.scrollBy(10, 0);
} else {
clearInterval (ivScroll);
function scrollMe (nScrollX, nInterv)
nInterv = setInterval ("scrollHoriz("+nScrollX+")", 10);
When I do scrollMe (300, ivScroll), the part where it should
clear the interval doesn't work. I've checked and it does get to
the else clause, so the problem is that the ivScroll variable being
used is not the one I defined globally. I'm fairly new to
javascript, so can someone please solve this scope problem for me?
Thank you.
João

Try starting your computer in Safe Mode (holding down the Shift key while restarting) then see if the computer will sleep.  If it will sleep, then restart your system and repair your permissions with disk utility. 

Similar Messages

  • My iphone 5 does not remember the password of my home network. Well this is ot the case with my ipad. The wifi gets disconnected every 2 minutes. Its not any problem with my wifi router as my ipad and other devices work fine. So how do i fix this problem?

    Well my iphone 5 does not remember my home network. This is not a problem with the wifi router as the ipad works absolutely fine. The wifi loses it connection in just 2 minutes. So could you please fix this problem.

    Not unless the modem is causing a problem.
    What you want to do is get it to work reliably over Ethernet first, then tackle wifi. Power off the modem. On your macbook, delete the Ethernet configuration and the Wifi configuration. Power up the modem, then connect the mac via Ethernet. Create the new Ethernet configuration and see if you can connect.

  • When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    I have exactly the same settings in Options (in both computers)
    for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
    It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
    Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
    so I changed 4 settings in about.config
    browser.tabs.warn on close true
    browser.warn on quit true
    browser.warn on restart true
    browser.show.quit warning true
    but the problem with sessions appeared only 1 week ago.
    So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :(

  • Remote not working properly with Apple TV...sporadic fuctioning

    Hello,
    I have no idea what caused this to happen, but both my remotes (I have one from my MacBook Pro and one from my AppleTV) seem to not work properly with AppleTV. It sometimes works but it is extremely frustrating as it only registers about 1 out of every 10-20 clicks then continues to remember the previous clicks therefore making it essentially impossible to select the desired menu/item. Basically it just seems like it's out of control!
    I tested whether it was the remote or AppleTV that was causing the problem by running Front Row on my MacBook Pro and both remotes seem to navigate Front Row perfectly fine. They both act the same way with AppleTV, whether they are paired or not. It seems as though something happened with my AppleTV. This problem occurred randomly, with no specific cause I can think of.
    Please let me know if any of you have ever experienced this problem and what your solution was, if any!
    I have tried restoring to factory conditions, resetting settings, ran diagnostics, unplugged and replugged it, and nothing seems to be working!
    Oh, and I just replaced the battery on one and have tried swapping batteries, etc.
    HELP PLEASE!
    Thank you,
    Travis

    The menus have never been as responsive as they used to since the 2.0 update in my opinion - basically AppleTV seems to cache/buffer remote click if it is busy or perhaps waiting for something to stream from itunes, and when resources become available it suddenly executes all command rapidly which makes it behave wildly in menus.
    Usually happens I find after restarting the unit or if streaming drives have gone in to power saving modes and there's a delay while they wake up to feed the AppleTV.

  • HP computer will not work properly with an HP printer

    I have the following two items that I am trying to use together:
     - HP 23" TouchSmart Desktop, T6500 2.1GHz 4GB DDR3, 500GB HDD (Windows 7)
     - HP OfficeJet 6500 Multi-Function Printer/Scanner/Fax
    When I try to scan to Adobe Acrobat Professional 9.0, the document goes through the scanner, however the dialog box that I would expect (e.g. "Next Page" or "Done") never shows up.  At this point, the system is unresponsive with respect to Adobe or the printer.
    I suspect that it is waiting for the input from the dialog box that never showed up.  I tried to move the other windows to see if the dialog opened in the background, however I am not able to select any of them (they remain frozen).
    I contacted HP Support, only to have them tell me it must be the driver, and I have an "old" printer.  (I did not realize that a 9 month old printer was considered "old").  I have tried all of the possible drivers that are available (original disk, downloads, other downloads from HP tech support), none of these resolves the problem.
    In any case, they were unable to resolve the problem of having an HP computer work properly with an HP printer.  (The printing function seems to work, just very slowly).
    Has anyone else heard of this?  Is there a resolution?

    Update: I am still looking for a solution to this problem - the scanning portion of the Multi-function OfficeJet 6500 does not work properly with the HP TouchSmart computer.
    I have not been able to find anyone in HP that can tell me when (or if) new drivers will be released for this printer.
    I decided to investigate upgrading to a newer version of printer since HP told me the 9 month old printer I have was "obsolete", only to find that the identical printer is still on sale in many stores.  Hmmm....
    I feel like I am getting the run-around from HP.
    I have since tried several more driver/software combinations, but every time I have the same problem (as described in the previous post).
    If anyone has any ideas or suggestions, I would be most happy to hear them.
    Thank you.

  • Klipsch S4i headphones do not work properly with iPhone 5

    I've got a really weird issue with my iPhone 5.  I previously purchased an iPod Nano 16GB as well as Klipsch S4i headphones.  The headphones has a console with 3 buttons.  The topmost button is to increase volume and conversely, the lowest button decreases volume.  No problem with either of these buttons.
    The center button is operated by the number of times you push it.  One push pauses the track (song) being played.  A second push resumes play.  Two pushes in a row causes the iPod to advance to the next track in the playlist.  Three pushes in a row cause the iPod to go back to the beginning of the track being played.  If you push three times consecutively then you go back to the track prior to the track which is being played, and so forth depending upon the number of times you keep pushing three times.  With me so far?  So the S4i console works just fine with the iPod.
    However, the S4i console does not work well with the iPhone 5.  I went to the Apple store this evening and they restored (reset?) the iPhone 5.  I then restored the data to it from my computer once I got home.  So the state of the S4i console is this.  Push the center button once and it pauses.  That is okay.  Push the center button again and it resumes play.  Still good.
    Push the center button twice in a row and it sometimes advances to the next track.  Not always unless you are very fast at depressing the button.  Push the button three times and it may or may not go back to the beginning of the track.  This seems to be a function of 'how fast' you are pushing the button.  Literally, you have to be like Quick Draw McGraw on the darn button.  That is not the case with the iPod Nano.
    Pushing the button multiple times does not necessarily take you forward to the next track or at the start of the one playing or to the track before.  While typing this, I managed to get the center button to work better so I thought maybe it is going out.  But I don't experience that same problem with the iPod Nano and it was not a problem on the two tech's iPods/iPhones at the Apple store when tried with my S4i headphones attached.  So I don't think there is any issue with the center button on the S4i's console or those headphones in general.  I also don't think it is a hardware issue as the headphone jack does not seem loose.  I have only been using my iPhone 5 for about a week.
    In fact, I was able to get the advance function as well as the reverse function for going back to the beginning of the track to work by depressing the center button quickly but if you want to jump back a track then you really have to hit it quickly multiple times.  In trying to go back to the beginning of a track or jumping back another or multiple tracks, then if the track you went back to the beginning of begins to play then the pushing three times maneuver does not work.  I have no clue what is going on other than it has got to be a programming issue with the iPhone 5.  Call me a cynic but I have my doubts that exchanging my new iPhone 5 is going to make a difference.
    Moreover, on a number of occasions (more than 5) while playing tunes on the iPhone 5, it suddenly and randomly stops.  This happened before the device was restored this evening and I have not had the opportunity to really test it out besides seeing if there is still an issue with the S4i headphones and the iPhone 5.  I swear I did not touch or brush against the screen or depress any buttons when this occurred.
    Has anyone got an idea what might be the problem?  If so, I would be grateful if you could clue me in here.

    Maybe it's a safty issue. You should not be able to watch movies while driveing anyway. Does it work when the car is in netral or park and the emergency brake is on. In my lexus thats the only way the front DVD will work.

  • New FocusTraversalPolicy Mechanism Does Not Work Well With OO Designs

    I would like to complain about the new focus traversal mechanism not working well with object-oriented GUI designs.
    Specifically, we have many reusable panel classes that can be swapped in and out of reusable dialog classes. On some of these panels, the default focus traversal is not what is desirable, perhaps because one component on the right side of the window is just slightly higher than a component on the left side, maybe due to the component on the right having a label on top, and so the default focus goes to the component on the right instead of the left. So we have a need to be able to explicitly define the order of components in some panels.
    If I try to define a focus traversal policy in the panel's constructor, a NullPointerException is thrown because the panel's focus cycle root is null (the panel has not been added to any dialog or frame yet).
    If I try to associate a focus traversal policy at the dialog level, it would have to explicitly reference its child panels' inner components, which would break the encapsulation of the panels. It would also make it hard to have generic dialog classes into which various reusable panel objects can be swapped.
    Someone suggested making each panel a focus cycle root. This makes it hard to "break out" of one panel to move on to the next panel in the dialog. Special keys would have to be assigned to try to cycle out, and these keys would have to be different than the normal traversal keys, making them inconsistent and nonintuitive to the user. Also, the focus policy would have to know if the dialog had more than one panel, what order the panels were in to know whether to cycle to the next panel or not, etc. This is a mess.
    Does anyone have any idea how to get around these problems? I have tried using a global focus policy with a global hash map of prev/next component key-value pairs, but we are still running into trouble with some deeply nested tabbed dialogs. It's just not possible to always have the focus cycle root in existence at the point where you want to explicitly define traversal between two components, or when you are trying to establish the default component for a panel in a tabbed pane.
    Has anyone else run into similar issues?
    Robbie Gilbert
    [email protected]

    I agree completely. One of the popular consultants on this forum stated that the new focus mechanism was more versatile and only a little more complex. I would say it's more than a little complex given the trouble average programmers are having understanding how it works...at least at first...and after understanding it realizing that they are going to have type their fingers off to update their code. Oh, and the dread of maintaining this awful mess.
    I'm currently having the same problem as you Robbie. Some of my reusable panels need special tab ordering...that's not usually a problem, in most programming environments, till now. Now I have to go around the world and back just to get my stupid cursor to be in the right place when I hit the tab key??!!! and special key mappings just to get out of a focus cycle...lame.
    And how is an IDE graphical designer going to work with this? It's not, that's how...ok maybe if some kind person or company creates a custom focus traversal policy editor of some kind, I don't know.
    Good grief Sun! We need something to help us meet our deadlines, not solutions that force us to spend 80% of our time customizing every stinking bit of UI functionality we need!!!
    JTables are even worse. I've mastered most of the garbage that is JTable after many months of pain and I don't know how I'm going to help my peers understand them in any short amount of time. Most of them were Oracle Forms programmers, not that that is any great solution either. But they will likely have problems.
    In conclusion, I wish I had chosen another UI technology for our new product client, and may yet.

  • MY FIREFOX NEW TAB NOT WORKING NIETHER WITH + NOR WITH RIGHT CLICKING ON TAB OR DOUBLE CLICK ON TAB

    MY FIREFOX NEW TAB NOT WORKING NIETHER WITH + NOR WITH RIGHT CLICKING ON TAB OR DOUBLE CLICKING ON TAB

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Why does my phone keep popping up messages "This cable or accessory is not certified and may not work reliably with this iphone" when there is no cable connected?

    Why does my phone keep popping up messages "This cable or accessory is not certified and may not work reliably with this iphone" when there is no cable connected? This has been happening since IOS7 was installed and has become worse with 7.1. I have reset the phone several times with no change.The phone charges properly & I have never used anything but an Apple Lightning cable.

    I already cleaned the port with compressed air before submitting the problem. I since cleaned it with a toothpick and dug out some more lint. this seems to have just about fixed the problem since I have only had the error pop up 3 times since then and i was getting the error constantly before.

  • HT1218 router will not work anymore with new update- how do I fix this?

    I just updated to the current software and now I have no connection. I have tried to reset the airport extreme but I cannot get it to recognize my laptop, Ipad2 and iphone.  I have earthlink as my internet provider.   I have talked with them, but they could not help.  I think that some of the numerical addresses are messed up.  My computer works fine at work on a different airport extreme- so I know that it is not a problem with my laptop. 

    That is because Apps are tied to the apple id that was used to purchase or download it.  So you will have to use your old apple id and password to update the app.
    You can try deleting the app and then downloading it with your new id - not 100% sure this will work.

  • I recently got a charging case for my iPhone 5s, but it says it isn't certified and may not work reliably with my iPhone. What can I do to fix it?

    I recently got a charging case for my iPhone 5s, but it says it isn't certified and may not work reliably with my iPhone. What can I do to fix it?

    Buy one that is certified. Your current case might work without problems, and then might stop working in the future.  iOS 7 is especially "sensitive" to uncertified peripherals. With this iOS release they have started to clamp down on "pirate" peripherals.

  • My garage band will not work properly with new lion upgrade..HELP

    My garage band will not work properly with new lion upgrade..HELP
    I have tried to open old session i have done in garage band and many of the effects and instruments I have used will not show up. The system seems to have a bug.

    If the graphical user interface looks broken, that is quite often a problem of corrupted user preferences - have you tried to remove the preferences file, as described in the FAQ
    http://www.bulletsandbones.com/GB/FAQPages/OddBallProbs.html
    Here is again the short version:
    Quit GarageBand, if it is running.
    Open your User Library in the Finder. It is hidden in MacOS X Lion, so use the Finder's "Go" menu:
    Finder > GO    hold down the "Options" key, until the library appears in the menu, select it.
    In the window that opens, open the folder "Preferences" and remove the file:com.apple.garageband.plist and com.apple.garageband.plist.lockfile
    Then try again to run GarageBand and download the loops.
    The preferences file stores all you user settings that you set using the "Preferences" panel in GarageBand, also the layout of the GarageBand window and the location of your recent projects. You will have to enter these settings again after removing the file.
    Regards
    Léonie

  • Help, web cam is not working properly with win vista

    Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its
    lenovo easy capture 2.5...so if u cud suggest me anything...
    Moderator note; subject edited

    re-install drivers and try again. ( also easy capture )

  • Since I downloaded the upgraded software, my charger that came with my phone says "this cable or accessory is not certified and may not work reliably with this iphone"  It worked before but now it doesn't...I don't think I should have to buy a new one...

    since I upgraded to the new operating system my charger no longer works...
    It says"this cable or accessory is not certified and may not work reliably with this iPhone"

    Try checking your cable socket/lightning cable for dirt, grime, pocket lint, etc. I could not find the solution to this issue myself and after much searching I found someone stating that cleaning this out helped them immensely.
    After taking a wooden toothpick (making sure the phone was OFF first) and gently clearing out the edges and inside of the lightning socket this went away.) It is worth noting that I had a significant amount of dust or lint buildup along the edge rails which I think was causing the iphone to believe it was plugged into something when it was not.
    Try it and see, ensure you are very careful and do not use any conductive tools to clean the area in question. Compressed air also does wonders here.

  • HT1476 upgraded my IPOD 5 to iOS 7.0.2 and will not charge battery. when plugged in gives message "This cable or accessory is not certified and may not work reliably with this IPOD".

    Just Upgraded my IPOD 5 to iOS 7.0.2 and it will not charge the battery anymore.
    When I plug it in, it now gives the message "This cable or accessory is not certified and may not work reliably with this IPOD".
    Anyone else have this issue after they upgraded the iOS system?
    Thanks,

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

Maybe you are looking for

  • Upgrade Weblogic9.0 to 9.2

    Hiall, Is there any patch available to upgrade weblogic9.0 directly to 9.2 rather than installing 9.2 afresh. Thanks in advance, Ruchi

  • Can I download and install Creative Suite 6 Design Standard from the Adobe site?

    I purchased cs6 standard when I bought my laptop so I have the hard copy of the program. However, my laptop does not have a disc drive so I was looking to download the file online then enter my product code and serial number. Am I missing something o

  • File Security

    I'm looking for a application that will allow me to encrypt a folder and its contents. I have several documents that I would like to secure without encrypting my entire account or computer. Any suggestions?

  • MRNB Issue

    Hello Sir, I have execute T code MRNB , the difference amount is coming,how to create a credit Memo or Invoice for the difference amount,so that the payment can be made, Thanks in Advance harshad Gugale

  • Problem in Integrating Oracle Forms10g and Graphics 6i

    Hi , everybody.. I have Installed Oracle Developer Suite 10g and Oracle Graphics 6i on the same machine , in seperate directories , of course. I have done all the necessary modifications of the file default.env - concerning this type of integration.