This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Invalid argument error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Invalid argument error" Watch "Invalid argument error" New topic

Invalid argument error

Tokai Moshai

Joined: May 24, 2006
Posts: 16
var sTable = document.getElementById('DataTable1').rows[0].cells;
sTable[0].rowSpan = '1';

I have a table named DataTable1. When I try to use that code in a function to change the rowspan of first row, I get an error message, invalid argument.

please help.

how can I change the colspan of a table using javascript?

an example would be really helpful. Thanks.
[ September 21, 2006: Message edited by: Tokai Moshai ]
Tokai Moshai

Joined: May 24, 2006
Posts: 16
function setColSpan(){
var x=document.getElementById('myTable').rows[0].cells

I found this example in a website, but I'm trying to use it in a .XSL document. Is there any compability issue?
I agree. Here's the link:
subject: Invalid argument error
Similar Threads
more math stuff
HTML table
building a dataTable from java code
How to play audio using this code in Grid View
strutsutils is not defined