FAQ Database Discussion Community


Delay fadeOut menu jquery

jquery,menu,delay,fadeout
I am new at Jquery and I am trying to make a menu to show up on hover with fadeIn and when the mouse leaves to start a delay and then close the menu with fadeout. My code so far... I made a jsFiddle too JSFIDDLE $('#menu > li').on('mouseover', function(e){...

IPN delay and SAAS application

paypal,delay,paypal-ipn,saas
I have a SAAS web application that works through a subscription fee. If the subscription is valid everything works fine, otherwise the app goes in read-only mode until the customer renew the subscription. I've developed the payment flow with the PayPal API. The problem is that PayPal Documentation says this:...

Objective C for loop delay

objective-c,for-loop,cocos2d-iphone,delay,grand-central-dispatch
I have a for loop that I want to add a delay between iterations. I have changed waitUntilDone to YES and get the same results. My array only has two numbers in it and both are called after the five seconds instead of: 0s - nothing 5s - Block called...

Delay when changing screen in libGDX

java,libgdx,delay
I'm new member in libGDX . i want delay screen when changing screen Here my code myStage.addAction(Actions.sequence(Actions.delay(1), Actions.run(new Runnable() { @Override public void run() { // TODO Auto-generated method stub game.setScreen(new GameOverScreen(game,MYSCORE)); } }))); But the game not change the screen which i want. It stop at current screen ....

Delay for all value in loop

ios,objective-c,iphone,arrays,delay
Once the button is tapped after a delay of 5 seconds the total values in the array gets executed. - (IBAction)testButton:(id)sender { NSArray *array = [NSArray arrayWithObjects: @"Hefeweizen", @"IPA", @"Pilsner", @"Stout", nil]; for (NSIndexPath *anIndexPath in array) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 5 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ NSLog(@"INDEX PATH %@",anIndexPath); }); } How...

Wait before function can be executed again

javascript,jquery,scroll,delay
I'm playing around with some javascript and JQuery. I'm trying to do something specific each time the user scrolls. It works fine when I use a mouse with a scollwheel. But when I use the trackpad on my laptop it goes incredibly fast. I think it's because it executes the...

function wait to execute

matlab,events,delay
In Matlab functions can be started at events,but occasionally, like with the resize function, the events are called in rapid order and the function is called many times in succession, which can cause weird behavior and lag. Is there a way to have it listen for the event but only...

Add class to each div in a container after interval, and remove previous

jquery,timeout,delay
I'm attempting to add a 'hovered' class to each <a> within a div inside a container in turn. There should be a short delay between each class being applied, and as the class is applied to the next div it should be removed from the previous. After the same delay...

How to use time delay in MobileFirst adapters

timer,delay,mobilefirst,mobilefirst-adapters
Has anyone tried introducing Delay/timer into the MobileFirst Platform Foundation adapters? is there anyway to introduce specific amount of delay? I tried setTimeout() but that doesn't work because of window object will not available in Adapter.js...

Why Jenkins does not run a job as scheduled?

jenkins,delay,server
I have this 'Build periodically' option with the following 'Schedule': H 6,13 * * * Meaning that I want this job to be run everyday at 6:00 and 13:00. I noticed that it does not run at the specified time but 34 minutes later instead. These are the last builts:...

jQuery - call a function from another function after 3 second delay

jquery,function,animation,delay,timing
I'm trying to run a quick animation on scroll, however I can't get the desired effect to repeat when necessary. I have a little cartoon guy appear on my site when the document is ready: Var SpriteVis; jQuery(document).ready(function tele_in($) { // function to make sprite appear. $("#sprite").animate({bottom: '0px'}, 400, 'linear',...

What's the harm in having a long maxDelayTime?

javascript,delay,web-audio
I'm building a live-looping application that uses several delay nodes. I initialize the delay nodes by setting the maxDelayTime to be slightly longer than the delayTime, because this seems like the right thing to do. I don't know if it actually makes a difference, but it seems wasteful to set...

Cordova splash screen - run code after splash is hidden

cordova,delay,splash-screen
I'm building an app with Cordova and have managed to set-up splash screens on Android fine using: <preference name="SplashScreen" value="screen" /> <preference name="SplashScreenDelay" value="5000" /> in my config.xml and this works perfectly. The splash screen is displayed for the 5 second duration specified then hides. I have got the app...

Delay execution of code in method Java

java,android,delay,jdk1.6
I want to generate random number after every 2 seconds in my java (Android) program continuously for at least 10 minutes. But I just want to pause/delay execution of code in only one method and not the whole program. I tried using Thread like this - boolean stop = false;...

Delay lineTo in for loop

javascript,jquery,for-loop,canvas,delay
I'm having a div (#option1) in the shape of a dot animating a graph using an array, Option1[], in which all the heights of the several 'dots' are included. I'm using a for loop to create space between two dots (left: '+=5px') and get the height for the next dot...

How to change button color and after a delay

html,button,delay
When I click the button on my webpage, I'd like that button to change color to red, and after a specific time period, the button has to change to green. This way the visitors can easily see which button is active again so they can click it again and again....

Automatically calling an init function whenever an object is used for the 1st time

c#,load,delay,auto,init
I have an object that only initializes itself with barebones data when constructed (fast), and loads itself for real (slow) when first accessed. The idea is that I'm creating a lot of these barebones objects at startup and hash them into a map, then fully load each object whenever it...

How to change element text in jQuery, pause, and reset original text

jquery,timeout,delay
The HTML: <a href="#" class="change">Old Text</a> <a href="#" class="change">Old Text</a> I want to change the "Text" with jQuery, delay two seconds and set it back to the original. I've tried timeout and delay unsuccessfully. The page has multipe items that have the same text "Add to cart", and switch to...

Run multiple functions at different time intervals

javascript,jquery,function,loops,delay
I have four functions, functionOne(); functionTwo(); functionThree(); functionFour(); All I want to do is to call these functions for different time durations, that is, // run functionOne functionOne(); // delay for a duration of 200ms //run functionTwo functionTwo(); // delay for a duration of 600ms // run functionThree functionThree(); //...

How to delay a jquery event that isn't an animation? [duplicate]

javascript,jquery,timer,delay
This question already has an answer here: jQuery: Can I call delay() between addClass() and such? 5 answers I have a jquery event that I want to occur only after a certain amount of time. Apparently, delay only works with animation events. Is there an alternative to delay I...

delay, setTimeout - how to do 2 things delayed on click?

click,delay,settimeout
it should be so easy but i'm blind ;( What i want to do is: I click on a button. I do some clickstuff, but i also want a blur-transition-css-effekt on another element. so I add a class und then with delay (because this is a nice effect) another class...

I need a delay when I change some text

javascript,jquery,delay
I need a hint! I want to change some text with a delay in it. With .delay it isn't working because it isn't a queue. Then I tried it with .setTimeout. That worked, but only for one textbox. When I add another one, it doesn't work properly. Can anyone help...

Iterate over an object with delay

javascript,object,recursion,delay,delayed-execution
I am trying to iterate over nested children of an object, but need have a delay after every child. Normally I would just write a recursive function and use that to iterate over an object, but this happens near instantly. How can I do this with a delay? I thought...

How to create delay function in QML?

javascript,qml,delay
I would like to create a delay function in javascript that takes a parameter of amount of time to delay, so that I could use it do introduce delay between execution of javascript lines in my QML application. The javascript lines I am talking about would trigger animation of some...

RecyclerView : How to create insert animation effect?

android,animation,delay,recyclerview
I have a ReyclerView working with a LinearLayoutManager and an Adapter<ViewHolder>. I have a list of items I would like to display in the recyclerview with the insert (slide in) animation. How do I go about this ? I would like to display the animations with a linearly increasing delay...

JQuery - delay and show text issue

javascript,jquery,each,delay,settimeout
below i got some code, which should delay 2 seconds and hide previous span and show the next span, but i cant seem to get it to work. <style> span{ display:none} </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"><script> <div id="text"></div> <script> var text = [ "<span>Sent A blabla</span>", "<span>sent B</span><span>sent b bbb cont....</span>", "<span>Sent...

Loop every five seconds in Javascript

javascript,jquery,loops,delay,settimeout
I'm trying to write a simple loop in JS (or JQuery) that updates an image every five seconds, for a total of 15 seconds (so three loops), and then quits. It should go like this: Wait five seconds Execute Wait five seconds Execute Wait five seconds Execute Quit But setTimeout...

How to add a time delay before a label appears in tkinter?

python,tkinter,delay,tk,timedelay
I am trying to recreate the Pokemon red fight scene and I need a 5 second delay between the first character appearance (the good guy) and the second (the bad guy). I have tried the time.sleep() method however it just waits 5 seconds (sleep time) before launching the program. #Add...

Trying to make a div slideshow

html,css,css3,animation,delay
I'm trying to make an automatic DIV slideshow with CSS but I have a problem. I have this code but the animation delay seems like it isn't working or they fade at the same time. Here is the HTML <div class="cosafancya"> <div> <div class="espacioimagen"> <div class="fancyosoleche"> <p class="fancytext"> About us</p>...

Swift - generate random Integer between 0.1 and 0.6

ios,swift,time,int,delay
I'm having trouble with Swift trying to generate a random number between 0.1 and 0.6 I want to introduce a micro delay into a simple game to make it look like the iPhone is having to "think" before responding. I have found various snippets to generate a random number (none...

Python - creating a delay that takes in account the execution time

python,image-processing,time,delay
i am writing a function that reads N (800*600) frames from a bin file in one sec. the FPS is user controllable import time def getFrame(file,N): #read N frames per second, 800X600 pixels each from file start = time.time() delay = (1/float(N)) while N: frame = file.read(480000) time.sleep(delay) N -=...

how to daly send request after user stop typing using angularjs

javascript,angularjs,delay
I am trying to find away to delay send request to WebApi after user stop typing using Angularjs 500 or 800 millisecond right now my code will send what user type and query data. I am thinking to delay send request but I don't know how to do it <label...

C - Timer logic for error condition

c,timer,pthreads,delay,multitasking
I'm working on a project where I have to deal with several sensors, and print out error values to a textfile. Currently I'm doing random generators, to just generate some dummy values. The thing here is that the same errors are stored into the textfile, since the code is running...

Possible to delay a segue?

ios,objective-c,storyboard,delay,segue
I have an app with many segues built in the storyboard and I would like to delay them to show a quick animation on the clicked button. Is it possible to delay a segue without using segueWithIdentifier ? Using segueWithIdentifier means to delete all segues in storyboard for recreating them...

Unity delay in sending the current value when using sockets

c#,sockets,tcp,unity3d,delay
The client.cs in Visual Studio. private void SendToServer(string HeartRate) { SetHRTest(HeartRate); try { s = client.GetStream(); StreamReader sr = new StreamReader(s); StreamWriter sw = new StreamWriter(s); sw.AutoFlush = true; sw.WriteLine(HeartRate); } finally { if(Environment.HasShutdownStarted) { s.Close(); client.Close(); } } } The server.cs in Unity using UnityEngine; using System.Collections; using System.Net.Sockets;...

jQuery tooltip random appear

jquery,random,tooltip,delay,show
I am developing this "logo colors". I need the tooltip to appear in a DIV where id is #show after I click (this is OK). But after hover the buttons the tooltip is appearing anywhere it wants. Visit my problem here: http://web-stranky.org/pro_dementa/ $(document).ready(function () { $( document ).tooltip( { content:...

jQuery append delay

javascript,jquery,append,delay
Can someone explain why the rows in the console are appending all in one time? I want them to get append one by one. row is an array of strings in the program and here is the code: var dodajRed = function(redenBroj) { setTimeout(function() { $('.console').append('<p>' + row[redenBroj] + '</p>');...

time delay in an else statement for multiple method calls?

objective-c,if-statement,timer,delay
I have an If - Else Statement. When the Else Statement is called, i want to delay all method calls in the else Statement. Looks like this: if (xy) { [self.method1]; [self method2]; } else { [self.method3]; [self method4]; [self.method5]; [self.mehtod6]; } I tried it with call every method (3-6)...

clojure future vs delay

clojure,delay,future,core
I have been reading through Programming in Clojure and found thing text (defn get-document [id] ; ... do some work to retrieve the identified document's metadata ... {:url "http://www.mozilla.org/about/manifesto.en.html" :title "The Mozilla Manifesto" :mime "text/html" :content (delay (slurp "http://www.mozilla.org/about/manifesto.en.html"))}) if callers are likely to always require that data, the change...

Delaying function in swift

ios,xcode,function,swift,delay
I don't have a code to sample or anything, because I have no idea how to do it, but can someone please tell me how to delay a function with swift for a set amount of time?

Need help incrementing a parameter in UIView.animateWithDuration in swift

ios,swift,delay,increment,animatewithduration
thanks in advance for any help. I have an IBOutlet Collection of buttons that I am trying to present on screen sequentially. They all start off screen fine, but as they animate in, I'd like each button to be presented on screen 0.05 seconds after the previous button. I can't...

CSS, Javascript or jQuery blinking element on load

jquery,css,delay,fade,pageload
This is what should happen. Page loads It does nothing for 1 second Then it makes the element "blink" four times (with about 600 ms delay) Done! Language to use Use CSS, Javascript or jQuery to solve it. It should work on common browsers and devices. The blink With blink...

Why udelay and ndelay is not accurate in linux kernel?

timer,linux-kernel,linux-device-driver,delay
I make a function like this trace_printk("111111"); udelay(4000); trace_printk("222222"); and the log shows it's 4.01 ms , it'OK But when i call like this trace_printk("111111"); ndelay(10000); ndelay(10000); ndelay(10000); ndelay(10000); .... ....//totally 400 ndelay calls trace_printk("222222"); the log will shows 4.7 ms. It's not acceptable. Why the error of ndelay is...

Can javascript open a secondary window before the full document is loaded?

javascript,delay,window.open,immediate-window
I am writing a CGI application which sometimes takes up to one minute to run, but not always. In the cases I am able to predict the delay, I would like to open another window warning the user of the expected delay. My first attempt was to have my CGI...

Performing action every few seconds, no matter what happens in running loop

ruby,loops,delay
I have a little problem. I want to iterate loop every time there is new line from socket, so I use this loop: until @socket.eof? do #something end And I also want to perform one action every 10 seconds, so I did something like this: until @socket.eof? do do_something if...