Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


changing table cell class on button click



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
asn1981



Joined: 18 Oct 2007
Posts: 1

PostPosted: Thu Oct 18, 2007 12:39 pm    Post subject: changing table cell class on button click Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap