Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data element creation

 
Sen George
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code does not seem to create a new text box as intended. Please help.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Study this line carefully:
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI: IE has an issue with setting name on an element like that.

Take a look at this: http://www.pascarello.com/examples/createElement.html

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yeah, I forgot about that too. So even if you correct the line I pointed out, you may still have issues in IE.

If you are going to be manipulating the DOM in this way, you are far better off adopting a library like jQuery that does all this for you with the nuances and browser differences already accounted for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic