473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Help: Simple Timed Text Replace

Hi, I have the following in my HTML document...

<span id='prompt'>File Saved</span>

All I want to do is replace the above "File Saved" text on my page with
"Upload File" after about 5 seconds after the page loads again.

Does anyone have simple code that can do this, or know of a place that has
this code? I've scoured a bunch of sites, but, because this is probably a
simple task, couldn't find any scripts that do exactly this.

Thanks!!

Monty
Jul 23 '05 #1
4 1356
Monty wrote:
Hi, I have the following in my HTML document...

<span id='prompt'>File Saved</span>

All I want to do is replace the above "File Saved" text on my page with
"Upload File" after about 5 seconds after the page loads again.

Does anyone have simple code that can do this, or know of a place that has
this code? I've scoured a bunch of sites, but, because this is probably a
simple task, couldn't find any scripts that do exactly this.


Search the archives for setTimeout and read the FAQ (down until Monday
after lunch) with regards to dynamically changing a page.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
> Search the archives for setTimeout and read the FAQ (down until Monday
after lunch) with regards to dynamically changing a page.


The FAQ isn't there. Monday's too late anyway.

Anyone else have any suggestions, please?
Hi, I have the following in my HTML document...

<span id='prompt'>File Saved</span>

All I want to do is replace the above "File Saved" text on my page with
"Upload File" after about 5 seconds after the page loads again.

Does anyone have simple code that can do this, or know of a place that has
this code? I've scoured a bunch of sites, but, because this is probably a
simple task, couldn't find any scripts that do exactly this.


Jul 23 '05 #3
Monty wrote:
Search the archives for setTimeout and read the FAQ (down until Monday
after lunch) with regards to dynamically changing a page.

The FAQ isn't there. Monday's too late anyway.

Anyone else have any suggestions, please?


Search the c.l.j archives at groups.google.com

You can find the FAQ there as well, posted in plain text.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #4
JRS: In article <5M********************@comcast.com>, dated Sun, 15 Aug
2004 19:34:57, seen in news:comp.lang.javascript, Randy Webb
<Hi************@aol.com> posted :
Monty wrote:
Hi, I have the following in my HTML document...

<span id='prompt'>File Saved</span>

All I want to do is replace the above "File Saved" text on my page with
"Upload File" after about 5 seconds after the page loads again.

Does anyone have simple code that can do this, or know of a place that has
this code? I've scoured a bunch of sites, but, because this is probably a
simple task, couldn't find any scripts that do exactly this.


Search the archives for setTimeout and read the FAQ (down until Monday
after lunch) with regards to dynamically changing a page.

Any reasonable News service will still have the News version of the FAQ
which was posted last Friday; indeed should have all articles from at
least a week or two back.

Perhaps some of those whose sigs refer to the newsgroup FAQ and are not
already full might add a reference to the FAQ in News? It requires only
one line; see below.

The code could be obtained by simplifying the start of my js-date2.htm;
to which I have added an example using DynWrite from the newsgroup FAQ.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
FAQ is posted in <URL:news:comp.lang.javascript> thrice weekly in two parts.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Derek | last post by:
Hi, I've built a rather large CGI that dumps a lot of data and a fairly complex javascript app out to the client's browser. Granted this may be poor style according to someone web design...
2
by: Chuck Haeberle | last post by:
I have an interesting regular expression challenge for someone more experienced with them than I for a data layer class... I need an expression to search a SQL statement (any type, SELECT INSERT...
5
by: Tim::.. | last post by:
Can someone tell me how I convert this simple SQL statement so I can use it in ASP.NET??? I have an issue with the quotation marks and wondered if there is a simple rule for converting the sql...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: zxo102 | last post by:
Hi there, I have a python application (many python scripts) and I start the application like this python myServer.py start in window. It is running in dos window. Now I would like to put it...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
8
by: pamelafluente | last post by:
I am beginning aspNet, I know well win apps. Need a simple and schematic code example to start work. This is what I need to accomplish: ---------------------- Given button and a TextBox on a...
2
by: Alex Maghen | last post by:
This is a bit of an abuse of this group. Just a nit, but I'm hoping someone really good with Regular Expressions can help me out here. I need to write a regular expression that will do the...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.