It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

changing table cell class on button click

changing table cell class on button click

Postby asn1981 on Thu Oct 18, 2007 11:39 am

how can i change a table cells css class using javascript?

the difficult thing is i want the exact css class to be used to be detirmined by some AjaxMethod processing which woiuld return a string variable after some database processing

the javascript i have is something like the below so far:
<script type="text/javascript">
var lastLink ;

function mouseClick(type, subtype, colname, link, value)
{
lastlink = link;
AjaxMethods.FlipCellColour(type, subtype, colname, value, link, updateCell) ;
}

function updateCell(res)
{
lastLink.className = res.value ;
cell = lastlink ;
}
}

but i dont the table cells id is being found
asn1981
 
Posts: 0
Joined: Thu Oct 18, 2007 11:35 am

Who is online

Users browsing this forum: Google [Bot] and 3 guests