znivek
04-13-2004, 12:41 AM
hi im a newbie in js, i wonder if it's possible to edit contents in a table on my webpage, such as adding/deleting rows and cells and editing the text inside it, help!!
|
Click to See Complete Forum and Search --> : need help on table editing!! znivek 04-13-2004, 12:41 AM hi im a newbie in js, i wonder if it's possible to edit contents in a table on my webpage, such as adding/deleting rows and cells and editing the text inside it, help!! JayDie 04-13-2004, 01:52 AM Yes you can. You can change the text inside a TD. You need to get the specific TD you want to change (give an id or something) and can change the text (innerText) Check the MSDN Library (http://msdn.microsoft.com/workshop/author/dhtml/reference/objects.asp). You can also add TD or TR. There is a 'createElement' method. Search for it in the MSDN Library (web dev - html - methods). insertAdjacentElement, etc. JayDie znivek 04-13-2004, 06:38 AM do u know where i can get the source? is it available on the web? help please... znivek 04-13-2004, 11:56 AM i have another question, actually i'm making a webpage, with a login function, 2 login profiles, normal user and admin. is it possible to make a table only editable by the admin, to be viewed by the normal user. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |