HighDots Forums  

insert cells in runtime - Hebrew

alt.html.dhtml alt.html.dhtml


Discuss insert cells in runtime - Hebrew in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eitan
 
Posts: n/a

Default insert cells in runtime - Hebrew - 11-26-2004 , 06:46 PM






Hello,
In a table element
How can I insert cell in their order (A, B, C, D ...) on javascript runtime,
but see the cells inserted from right to left.
I am doing :
myTable.row(0).insertCell(0) // cell A
myTable.row(0).insertCell(1) // cell B
myTable.row(0).insertCell(2) // cell C

What I want to see is the cells visible at the html in the order of :
C , B, A.

<TABLE dir = "rtl" .... />
// What else should I write above

Thanks



Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: insert cells in runtime - Hebrew - 11-27-2004 , 09:46 AM






Eitan wrote on 27 nov 2004 in microsoft.public.scripting.jscript:

Quote:
Hello,
In a table element
How can I insert cell in their order (A, B, C, D ...) on javascript
runtime, but see the cells inserted from right to left.
I am doing :
myTable.row(0).insertCell(0) // cell A
myTable.row(0).insertCell(1) // cell B
myTable.row(0).insertCell(2) // cell C

What I want to see is the cells visible at the html in the order of :
C , B, A.
Call all thre with insertCell(0)

======================
<table border=1>
<tbody>
<tr id=myTR></tr>
</tbody>
</table>



<script type='text/javascript'>

addTD("A")
addTD("B")
addTD("C")

function addTD(text){
newTD = document.getElementById("myTR").insertCell(0)
newTD.appendChild(document.createTextNode(text));
}

</script>

======================



Quote:
TABLE dir = "rtl" .... /
I think that is only for strings ??


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.