• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Changing Contents of A Web Page's Table Cell

Hello Experts,

I created an aspx web page that uses a table for layout. I'd like to change the contents of a particular cell every 10 seconds or so, somewhat in the same way that the aspx AdRotator control is able to change it's contents. Is this a difficult thing to do? As far as I've read, the AdRotator control works only with images (not a tiny weather widget script which is what I'd like to change) and only when a page is reloaded. I'm thinking the fact that I'm using a table is probably irrelevant and that my question boils down to "how can I change my page's content in the manner described?" Thanks in advance for any light you can shine my way.
0
efz
Asked:
efz
1 Solution
 
shishir_sriCommented:
You can assign a specific id to the table cell, and then use the innerHtml property to change its content whenever required.

Eg:
<td id="someName"></td>

in Javascript:
document.getElementById('someName').innerHtml = 'New content';
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now