codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Making Table Cell Fields Readonly  collu727 at 06:07 on Friday, September 15, 2006
 

I am trying to make certain rows in a table readonly. Because of the way the data is written back to the database I can'u use the "disable" function. Here is what I have done so far:


function disableRow (rowIndex) {
var table = document.all.mainTable;

var rowVolume = eval("document.all['" + idVolumeRow + eval(rowIndex) + " ']");

if (table) {

for (var c=0; c < rowVolume.cells.length; c++) {
rowVolume.cells[c].style.backgroundColor = "#1AA047";
rowAttend.cells[c].disabled = true;
//rowAttend.cells[c].readOnly = true;

}
}
}


The first two lines in the for loop work (background color and diabled) but the readonly doesn't.

Does anyone know where I'm going wrong








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Help: Trouble with z-Index and SELECT lists
•  enable listbox by selecting the radio button and redirect the page based on the selected index
•  Problem creating the xml from blog...
•  mouse click coordinates on a quicktime movie
•  Help : How to Sign Java Scipt....
•  check for folder on another server
•  Making Header Row fixed in a DIV Scroll Table
•  how to open a pagen in already opend window
•  Select index`s and HTML Forms


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006