• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invalid argument error

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
function setColSpan(){
var x=document.getElementById('myTable').rows[0].cells
x[0].colSpan="2"
x[1].colSpan="6"
}

I found this example in a website, but I'm trying to use it in a .XSL document. Is there any compability issue?
 
reply
    Bookmark Topic Watch Topic
  • New Topic