Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BIG PROBLEM WITH DOM MANIPULATION

Status
Not open for further replies.

darkling235

Programmer
Oct 30, 2006
24
US
Hi. I need to be able to make a new node, actually an empty tag and be able to wrap it around a node or textrange. Actually I need to be able to do both those things. I'm working primarily with GWT and javascript in the JNSI (if you don't know what that means assume I can use any JS command and we'll see if I can)

I'm working on IE

I only have 2 days before my deadline and I have no idea how to handle this. HELP PLEASE
 
What node type do you wish to create? To create a text node, you can use:

Code:
document.createTextNode('text here');

If you want a span element (for example), then you can use:

Code:
document.createElement('span');

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top