-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to add the JavaScript function setTimeout() to my jQuery expression. Without the setTimeout() my function loads a partial view with updated information when I enter text into my textbox. But, it loads the information with every keystroke. My logic is that if I can put in a timer then…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've got this simple function which displays a message to the user. If I add the timeout parameter it will slide back up automatically if not the user has to click it to get rid. But the timeout bit isn't working.
function feedback(text, timeout){
$('#feedback').text(text).slideDown('fast');
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Alright, I thought I had this whole setTimeout thing perfect but I seem to be horribly mistaken.
I'm using excanvas and javascript to draw a map of my home state, however the drawing procedure chokes the browser. Right now I'm forced to pander to IE6 because I'm in a big organisation, which is probably…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Im using jQuery and working on a notification system for my site. The notifications automatically fadeout using the setTimeout function.
How can i stop the timer of the setTimeout call?
For example i would like to pause the setTimeout call while the mouse is over the notification and continue the…
>>> More
-
as seen on Geeks with Blogs
- Search for 'Geeks with Blogs'
Originally posted on: http://geekswithblogs.net/Aligned/archive/2014/08/21/mock-the-window.settimeout-in-a-jasmine-test-to-avoid-waiting.aspxJasmine has a clock mocking feature, but I was unable to make it work in a function that I’m calling and want to test. The example only shows using clock for…
>>> More