473,322 Members | 1,778 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,322 software developers and data experts.

Change table row background color using Timer?

5
Hi everyone,

Im very new to javascript so please bare with me. I have a dynamic table in html that has information coming from SQL server. I would like to know how I can apply the "Timer" event to a row, and the background color changes.

for example


After a new row of data is added to the dynamic table within...

- 15mins table row changes yellow with black text
- 15-30mins table row changes orange with white text
- 30-120mins table row changes red with white text

Is this possible? Are the additional programming languages that should be used to handle this action?

Any help would be appreciated, thanks
Dec 13 '12 #1
1 2076
Dormilich
8,658 Expert Mod 8TB
it all depends a little and of course you can take various approaches.

Does the colour change only applies to the current page, or must the colour change also work between page loads?

is the table updated through AJAX?

are the newer event types (like DOMNodeInserted) supported?

you can probably get away with only using JS, though sometimes server help may lighten the work.
Dec 13 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Itay L. | last post by:
Dear all, I am trying to figure out how to change the background color of my menubar under Windows. I've tried the following: from Tkinter import * root = Tk()
2
by: Sean | last post by:
Hi all, I have a treeview and because I subclass the treeview and allow multiple selection to be done on the treeview, I have a problem changing the background color of the treeview. The...
3
by: lovely_angel_for_you | last post by:
Hi, I have following link. By visitng first in IE, and then in Firefox, you would get to know my issue. http://lovely.angel.for.you.googlepages.com/test.htm...
0
by: Bharathi Kumar | last post by:
Hi, Iam working in a windows application using .Net framework 2.0, VS.NET 2005 and CR X. Scenario : When we create a report using CR by default they will be assigned some background colors.
11
by: free4trample | last post by:
First of all let me say that I know very little about javascript. what i need to do is to write a javascript functin which will change the background color of the table rows based on entrees in...
1
by: DennisDoane | last post by:
I can't seem to find a way to change the background color of each tab in the SSTab control. How do you do this?
1
by: rengaraj | last post by:
Hello I have a question about create a Form on J2ME Midlet. How could we change the Background Color Of Form? Is it possible? Thanx a lot.
2
Death Slaught
by: Death Slaught | last post by:
what would you do to write a function that changes the background color if the if statement is true?i tried these no luck i dont really have a clue what ide use for it. <script...
2
by: kasem | last post by:
Hi... I need to change the background color of my webpage using xml file,so I can create an admin page where i give the admin options of different colors just by pressing a button....Do I have to...
1
by: raggwd | last post by:
I have a JTable that I am displaying in a JScrollpane. The JTable only displays a few rows of information in its grid. The space below the grid to the bottom of the JPanel, that contains the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.