473,387 Members | 3,750 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,387 software developers and data experts.

For VK - Revisiting Insertion of HTML into JavaScript

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


Jan 28 '07 #1
1 1802
VK
On Jan 28, 9:47 pm, "Serious_Practitioner"
<Serious_PractitionerNOS...@att.netwrote:
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.
You are welcome, but where is the question? It is a rather detailed
project description. Do you have some particular coding problem?

P.S. Usenet is not e-mail so stay-alone personally addressed messages
are commonly not welcome.
If you believe that I am the best and the only one person to help
you :-) then you can e-mail me. This address is valid.

Jan 28 '07 #2

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

Similar topics

1
by: phatnugs420 | last post by:
Hi all, thanks for all your help last time.. Unfortunately I couldn't get any of the suggestions to work and because of time constraints I had to go to something that I knew worked... But I'd like...
4
by: jeffyen | last post by:
Hi there, thanks to anyone in advance who can help me with this. I am creating an HTML page with extensive CSS and table formatting; one thing that is driving me absolutely bats**t crazy is that...
3
by: Alex | last post by:
I am trying to insert Javascript code with grease monkey so it would insert to a page a call to a parent frame function al() I tried (portion of the code): x.document.createElement('script');...
28
by: Peter Michaux | last post by:
Hi, I'm playing with dynamic script insertion to make a request to the server for a JavaScript file to be automatically run when it arrives in the browser. It works but... The page caching...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.