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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add text to layer 1

Status
Not open for further replies.

ThomasJSmart

Programmer
Joined
Sep 16, 2002
Messages
634
Iv made this script. Theres a layer with some textfields. Then theres a button that adds more textfields to the layer with this simple, working fine in IE, script:

contentDiv.innerHTML = contentDiv.innerHTML + morefields;

works lovely in IE, the fields that are already in the layer are left as they are, all filled in, and some new fields are added at the bottom. However in every non-IE browser although the new fields are added nicely the textfields that where already there are made empty again -_-

Please tell me theres an easy solution to this... ?

Thanks





I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
yea i was just looking at appendChild via google.
what would i append it to tho?

can i append content to already existing content in the existing div layer? or would i need to first make a new layer?



I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
cool, i'll use span to fix that then :D

thanks!

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top