delay

jQuery function callbacks and animation timing.

I'd like to have a DIV fade in after fading another out. Because the one DIV is inside of the other, I need the parent DIV to fade out completely (clearing any other content that might be showing) before the child DIV then fades in. I tried using the jQuery callback function in my code below to no avail. $('#viewer a').click(function(e)...

Delay a snippet of code

var ajaxRequestqqq; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequestqqq = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequestqqq = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequestqqq = new ActiveXObject("Microsoft.XMLHTTP"); ...

When is it appropriate to intentionally delay an application's actions?

I was in a discussion in another forum where I disagreed with the purpose of intentionally delaying an application's actions, and I'm hoping someone can clarify where doing would be considered acceptable design. The scenario presented by the developer was that in their application, they add a delay of "a second or so" when updating a re...

how to read/write a register

I see some code which are going to read/write some peripheral registers. I see the write operations are all followed with some delays. It seems to me that SW needs to wait for the value takes effect on HW. Some web page say register will get update every clock cycle. I guess that's the reason for waiting. Well, my questions are: Does r...

Preload UIView To Minimize Delay While Running Iphone App

I have an iphone app that has one view that needs to fetch a lot of data off of a variety of internet sites. Therefore, the amount of time required for it to load is unacceptable. I was wondering if there is any way to load the view during the 'applicationDidFinishLaunching' method so the delay is at the startup of the app instead of m...

Delay load of data for 2 seconds in jQuery ajax

I'm loading the search results via jQuery ajax in a div container. I would like the results to be shown to the user after a 2 second delay or after the user has entered at least 3 letters/characters in the textbox to search. How would I do this? jQuery code: $(".bsearch").keydown(function() { //create post data var postData = { ...

jQuery delay() works after effect, but not before?

I'm showing a line of text using a typewriter effect [http://plugins.jquery.com/project/jTypeWriter]. I want to: 1) Delay 3 seconds 2) Show typewriter text 3) Delay 4 seconds 4) Fade out But step 1 doesn't happen with this code: $('blockquote').delay(3000).jTypeWriter({duration:1}).delay(4000).fadeOut(); Why does delay() not work at t...

Want to put time gap between two events in Android application

Hello friends, I want put delay between two flips of the same image on ImageView. i.e. (1). Image loads with Animation (2). Wait for 1 or 1.5 seconds (3). Image changes with animation on the same ImageView. I tried to set Thread.Sleep() , didn't work. And yes, these all things I want to be done on android. ...

Delay added to sound

I'm going to write an application in Silverlight that consists of 2 threads, one that plays sound and another that records sound. And whatever is recorded will be what was played plus some ambient noise. The problem is that Silverlight adds a delay to the sound to be played, and because I don't know how much is this delay, I would not k...

UDP minimum delay.

Hi, I have two computers (Client/Server) transferring video frames with UDP on 1G Ethernet. I use socket size as ~ 1.5k. If I make less then 10ms delay between data sending there is data loss, which is very slow for me if I want live video broadcast. If there formula to calculate time delay needed between data sending? Can I test if HW...

Is setTimeout with no delay the same as executing the function instantly?

I am looking at some existing code in a web application. I saw this: window.setTimeout(function () { ... }) Is this the same as just executing the function content right away? ...

How to delay jquery animation?

I can't seem to delay the showing of a div. I want to delay the animation by about 20 seconds is this possible??? $("#microcharcounter").delay(10000).show(); ...

android render issue causing delays ?

Hi, I'm developing an Android game and I've got the garbage collection to the point where it GC's only about once every 5 minutes or so, which I think is acceptable, for now. The problem is that, every once in a while, I'll see this message in the logs: 08-29 09:58:46.410 W/copybit ( 1912): stretch_copybit::run_render fail 08-29 09:59...

PHP : Delayed database request also without live page

So for example I click a button what will send something to the database after 1 minutes, but I want to send it also if I leave the page :) So if I leave the page when 30 seconds left from the 1 minutes the countdown will continue until reaches 60 seconds, then sends the data to the database. Hope it's clear. I think that I should use...

Big delay in debug mode on application start when custom splash is defined In Visual Studio 2010. WPF application.

Hi, I have a very strange problem, that seems like a Visual Studio 2010 bug. I have Windows 7 OS. Framework 3.5, VS 2010. I have a simple splash, defined in property of some image. I run in debug mode WPF application, that is used NHibernate and ActiveRecord (unmanaged code). The application is freezes for some time (depends of amount...

jQuery: append() object, remove() it with delay()

hey guys, what's wrong with that? $('body').append("<div class='message success'>Upload successful!</div>"); $('.message').delay(2000).remove(); I want to append a success message to my html document, but only for 2sec. After that the div should be deleted again. what am i doing wrong here? regards ...

Delay automatic url redirect with jquery?

I need a transition page that will display for 2 seconds before automatically redirecting to the home page. How do I do this? I can't seem to get delay to work for me. ...

Help needed with submenu functionality, Timeout

Hi All, I'm working on this menu for a intranet system. I have a menu system which is partially working. I have added the code to here: http://jsbin.com/eloxe3/8 The menu items with a light grey background have a submenu...whereas the others do not. I need some help in making the submenu disappear after I hover over a link without a s...

Delay page change on Submit - jQuery

Header $(document).ready(function() { $('#user_box').animate({width: "263px"}, "slow"); $('#submit').click(function(){ $('#user_box').animate({width: "0px"}, "slow"); }); }); Content <div id="user_box"> <form name="login_form" id="login_form" method="post" actio...

fopen file locking in PHP (reader/writer type of situation)

I have a scenario where one PHP process is writing a file about 3 times a second, and then several PHP processes are reading this file. This file is esentially a cache. Our website has a very insistent polling, for data that changes constantly, and we don't want every visitor to hit the DB every time they poll, so we have a cron proces...