Closed Thread Icon

Topic awaiting preservation: DHTML Gurus? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8193" title="Pages that link to Topic awaiting preservation: DHTML Gurus? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: DHTML Gurus? <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 05-30-2002 19:41

Hey dudes.... any of you DHTML Gurus?
I need help with replicating (copying) an existing row. I need to use this existing row (and all of its cells) as a *template* for inserting new rows in my table.

Does anyone have a handle on this?

Karl

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 20:22

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 20:31

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 05-30-2002 20:51

Eeessh.... the intent of my original post was not as it was received. Sorry about that, and sorry about the lose grammar.

Truly was not meaning to offend anyone.

Yes, I need a row template (including the cells within the row template). I am looping through the results of a recordset, and outputing the results to a table. I am using DHTML (VB and MSHTML) to alter the HTML page.

I'm not sure how to insert a new row, the code I am using isn't working. Here is part of it:

elm2.insertAdjacentElement "beforeEnd", newRow

I'm confused, looking for answers, and hope someone can help.

Karl


InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 21:51

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 22:12

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 22:50

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 05-30-2002 22:57

Thanks for the help guys.

Could someone offer direction on copying an entire row (an existing row)... a row which has TD's , and TD's which have class definitions, styles, attributes, etc... -so- how to copy existing <TR><TD>....</TD></TR>.

Thanks!

Karl

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 05-30-2002 23:07

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 05-30-2002 23:19

That does make sense... I'm off to try it!

Karl

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-31-2002 00:29

I'm willing to bet that won't work as expected, since in JavaScript all objects are copied by reference, not by value, so you're not really making a *copy* of the table row, though browsers may figure out what you really mean.

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 05-31-2002 00:38

Hmmm... I feel as if I am close, but something is missing (not working).
I am coding this in VB, the webrowser, and MSHTML. Here is the VB code that loops and inserts rows:

For x = 0 To 10
Debug.Print tbl.rows.length
Set newTR = tbl.insertRow

Set newTR = tr
Next x

Notice the "debug.print" line, it is there to show the progress of the script. The result of this is:
1
2
3
4
5
6
7
8
9
10
11

So indeed, the row collection of the table is being incrmented, but I'm not getting a display of any sort.
Actually, it looks like one blank row is added, but no more.
I'm going to take a look at the *source* now...
After looking at the source, I see just one TR. Any ideas?

Karl

« BackwardsOnwards »

Show Forum Drop Down Menu