Thank you, VK, for your note. More info -
The information that I want to present this way is about classes or seminars
that will take place on given dates. For each seminar, I'd like to make the
comparison to the date, then, if the date has not passed, build a table with
one row and three (or four) cells; one cell would be the name of the class,
the next cell would be a description, the next cell would be the date and I
forgot what I wanted the fourth cell for. I realize that the date of the
class would have to be in the code for the comparison. And I know it's a
little awkward, because we would need similar code blocks for each class. I
can't take the time now to learn enough about MySQL and PHP to do this using
those tools - that's a few months away. This is a stopgap solution.
Thank you again.
Steve E.
"VK" <sc**********@yahoo.comwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
On Jan 25, 1:38 am, "Serious_Practitioner"
<Serious_PractitionerNOS...@att.netwrote:
>I would like to use a script to determine if a date meets a condition,
and,
if it does, then create a table row with a couple of cells, and then put
some text in the cells.
var deadline = new Date(2006,1,1);
// year, month, day where month goes 0-11
// (0 - January, 11 - December)
// day goes in the regular way 1-31
// silly, I know ;-) so just memorize
var now = new Date();
// current date
if ( now.getTime() < deadline.getTime() ) {
// here I'm not sure: if you want to insert the row
// right on page load then use document.write();
// otherwise DOM methods will be needed.
// More info would help.
}
>The second question is how might I search for info through a search
engine
for this? Any suggestions on terms?
javascript scripting dynamic table insert row DOM