Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 13-03-2010, 07:07 PM   #1 (permalink)
Alpha Geek
 
Join Date: Jun 2009
Posts: 841
Default Delay Javascript Execution


The Script needs to do the following:-

1. Accept the input from the user
ie. The user tells the amount of time by which the execution should be delayed.
2. Delays the execution of the script by that amount of time
Aspire is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-03-2010, 07:30 PM   #2 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: Delay Javascript Execution

Read and Rip
http://pastebin.fosspowered.com/view/78152815

Alternatively you can use window.prompt() for getting input but forms and events is a better way.
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline  
Old 15-03-2010, 12:36 PM   #3 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: Delay Javascript Execution

let the script be in a function.
get the time delay and then use the setTimeout()
nims11 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put a delay in execution in a C program? ionicsachin Programming 9 29-09-2009 07:40 AM
$10,000 Mac hack affects Windows too nepcker Technology News 72 01-05-2007 10:09 PM
Microsoft Security Bulletin Summary for February, 2007 Ankur Mittal Technology News 1 15-02-2007 11:58 PM
WindowsXP update released (Nov 8, 2005) - link and review hcp006sl Software Q&A 29 09-11-2005 09:52 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2