File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes  Create dynamic input text type in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " Create dynamic input text type in a table " Watch " Create dynamic input text type in a table " New topic
Author

Create dynamic input text type in a table

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
I am trying to create input fields in a table format after getting the info from the user regarding the number of rows. Number of columns remains constant as 2. I am attaching the script as below. I am not able to generate the input fields and throw some javaScript error. I am checking my code in IE6 version. Please let me know what went wrong. Thanks.

Can anyone tell what the mistake is?

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
any expert advice on this?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61190
    
  66

and throw some javaScript error.
I imagine that people are waiting for you to details what the specific error is.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
My complete program is as below:



My error is pointing at the line cell.appendChild('inpElem'); saying Type mismatch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create dynamic input text type in a table