dkim18
asked on
Changing bean message without reloading page
hi!
I am trying to change bean message without reloading page upon button click event. Is there any way of doing it?
++++++++++
<table align="center" width="25%" cellspacing="0" cellpadding="0">
<tr>
<th span class="entrycolor"><bean:m essage key="firstentry" /></span></th>
</tr>
</table>
++++++++++++
Or, is there any way of changing font and color of html:text value just like bean message?
thanks,
I am trying to change bean message without reloading page upon button click event. Is there any way of doing it?
++++++++++
<table align="center" width="25%" cellspacing="0" cellpadding="0">
<tr>
<th span class="entrycolor"><bean:m
</tr>
</table>
++++++++++++
Or, is there any way of changing font and color of html:text value just like bean message?
thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(ignore the div stuff there, that's left over from a previous testbed...)
split between lhankins and bloodredsun
--------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>test</title>
<style type="text/css">
*.entrycolor {
background-color: white;
color: black;
}
*.highlightedcolor {
background-color: yellow ;
color: black;
}
</style>
<script type="text/javascript">
function handleSpanClick(anElement)
{
if (anElement.className == "entrycolor")
{
anElement.className = "highlightedcolor";
}
else
{
anElement.className = "entrycolor";
}
}
</script>
</head>
<body>
<div class="outer">
<div class="floatRight">
<table>
<tr>
<td><span class="entrycolor" onclick="javascript:handle
</tr>
<tr>
<td><span class="entrycolor" onclick="javascript:handle
</tr>
<tr>
<td><span class="entrycolor" onclick="javascript:handle
</tr>
</table>
</div>
</div>
</body>
</html>