| View previous topic :: View next topic |
| Author |
Message |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
| |
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
|
i do:
Var txt = document.createTextNode(str);
Comments.appendChild(txt);
Reply with quote
|
| |
|
|
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
|
Should I create all markup as elements ?
My 'str' lookadamat like '<p> aaa <b>mmm</b>'
Reply with quote
|
| |
|
|
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
| |
Peter Pitt Enthusiastic Coder
Joined: 20 May 2006 Posts: 114 Location: Egypt
| |
kadamat Enthusiastic Coder
Joined: 01 Jun 2006 Posts: 88
| |
Roombor Enthusiastic Coder
Joined: 02 Jun 2006 Posts: 111
|
You should indeed create all markup as elements. The DOM is the way forward. :)
Reply with quote
|
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|