aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Data element creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Data element creation" Watch "Data element creation" New topic
Author

Data element creation

Sen George
Ranch Hand

Joined: Sep 21, 2005
Posts: 76
The following code does not seem to create a new text box as intended. Please help.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Study this line carefully:


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61433
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data element creation