Solved

Dynamically replacing content in a cell

Posted on 2000-05-05
8
176 Views
Last Modified: 2010-04-09
I have a table with 2 cells. Cell #1 contains hyperlinks only and Cell #2 contains information about a schedule. The schedule changes every other day or needs to be updated each day. Can I set up a cell content file (file contains headline, detailed info and possibly a picture in HTML format) so that I dont have to update the web page every time the schedule changes, instead, the web page gets the content file from a designated directory and pastes onto the table cell just like a function or procedure call???
0
Comment
Question by:ppmb
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 2781515
I'm not gonna bother to try to make such a thing, but I do have some tip for you. How about using a database for this, so that the page retrieves all the values out of the database itself.....it's WAY easier.

0
 

Author Comment

by:ppmb
ID: 2781566
how??? Any example???? Site with example, source code??? Pls let me know! Thanks!
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 2781584
What can you use? ASP?
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 3

Expert Comment

by:fibdev
ID: 2783839
here is a page I'm working on for my site that creates cells with search results inside a static table.  I agree with CJ on this.

http://fibdev.com/help_center.htm

just leave the field blank and press the search button.

There isn't that must in the way of data in the database right now, but you can get an idea.

This example uses cgi, so I'm not going to bother puting up source code, if you can't use cgi, but you can get an example of how you should use tables and cells with your dynamic data.
0
 
LVL 3

Expert Comment

by:fibdev
ID: 2783843
The results page will look like just another web page, but it was in fact created dynamiclly, just enter a keyword, or keywords to see what I'm talking about, try searching for the word "c-guard" or "connection"  You will only get information on one product.
0
 
LVL 3

Accepted Solution

by:
davlun20080 earned 50 total points
ID: 2785188
I do not know what the real difference between updating a separate file or updating the html file itself.  The main reason I have encountered for this is when someone other than yourself will be maintaining the data.

That being said, a simple file include would let you do most of this, later that include file can be updated to pull the data from a database instead.

However, what you want to include will involve html programming in SOME FILE since you want to have links and possibly pictures.

To use an include file use the following syntax, placed in myfile.htm where you wish the info to be inserted:
<!--#INCLUDE virtual="path/to/myincludefile.inc" -->

Let us all know here the full scenario, maybe there is a really simple solution if we had the whole deal.

davlun
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 2786809
If you are not worring about cross-browser compatibility (not mentioned in the question) This looks pretty good:
-=-=-=-=-=-=-=-=-=-=-==-
<HTML><HEAD>
</head>
<body>
<table border=2>
<tr>
<td> here's dt 1</td>
<td> <iframe HEIGHT=300 WIDTH=500 src="http://www.microsoft.com" FRAMEBORDER=0></iframe>
</td>
</body></html>
-=-=-=-=-=-=-=-=-=-=-==-
Add SCROLLING=NO if you design the source file so it can be seen without scrolling.

Now you can update the contents of the SRC= page at any time and it will be visible immediately.

-- dan


0
 

Author Comment

by:ppmb
ID: 2791128
I tested the code provided by davlun20080 and DanRollins and found that the "#include" file fit in my web page the best. Not that Dan's code didnt work but the "#include file" works very nice on my web page. So I have to give credit to davlun20080.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP:Radiobuttonlist/asp:RadioButtonListItem custom styling 1 42
html input type 3 32
Else condition 9 19
Hide cell in a table 2 14
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question