| View previous topic :: View next topic |
| Author |
Message |
ajoo
Joined: 26 Jun 2008 Posts: 5
|
Posted: Fri Jun 27, 2008 11:36 pm Post subject: Can some one see what is wrong with this Java Script |
|
|
<html>
<head>
<title>RiskClassEditor</title>
<base href="">
<link href="/isis/isis.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--this is the header table-->
<table WIDTH="100%" CELLPADDING="0" CELLSPACING="5" BORDER="0">
<tr>
<td VALIGN="top">
<a HREF="http://compass/"><img SRC="http://logo.swissbank.com/logo.gif" BORDER="0" ALT="go to The Compass"></a>
</td>
<td ALIGN="right" VALIGN="bottom">
<a HREF=""><font SIZE="1" FACE="Arial, Helvetica, sans serif" COLOR="#000000"><b> Home</b></font></a>
</td>
</tr>
<tr>
<td VALIGN="top" COLSPAN="2"><hr NOSHADE SIZE="1">
</td>
</tr>
</table>
<!--end of the header table-->
<table border="0" cellspacing="0" width="100%">
<tr>
<td align="center" width="100%" bgcolor="#003399">
<font color="#FFFFFF" size="2" face="Arial, Helvetica, sans serif">
<b>ClassReport</b>
</font>
</td>
</tr>
</table>
<table>
<tr>
<td align=left valign="top">
</td>
<td align=left valign="top">
</html>
<script language="JavaScript">
function displayLastCellsMatching(showType, allValue, tableId)
{
// alert(showType);
// alert(allValue);
// alert(tableId);
var otable=document.getElementById(tableId)
crows=otable.rows;
for(var i=1, checkidx; i<crows.length; i++)
{
if(showType==allValue)
crows[i].style.display="";
else
{
checkidx = crows[i].cells.length-1;
crows[i].style.display=(crows[i].cells[checkidx].firstChild.nodeValue===showType)?"":"none";
}
}
}
</script>
<form name="riskClassReportForm" action="/isis/IsisRetroForm.do" method="post">
<INPUT TYPE="HIDDEN" NAME="Operation">
<INPUT TYPE="HIDDEN" NAME="Context" VALUE="RiskClassEditor">
<table align ="center" border="1" width="50%" cellspacing="0" cellpadding="4">
<tr>
<select name="mylist" onChange="displayLastCellsMatching(this.value, 'All', 'username')">
<option value="All">All
<option value="No Owner Assigned">No Owner Assigned
<option value="Active">Active
<option value="Not Found">Not Found
</select>
</tr>
</table>
<table align ="center" border="1" width="100%" id="username" cellspacing="0" cellpadding="4">
<tr class="tabletitle">
<td class="tabletitle">RCID</td>
<td class="tabletitle">Risk Class</td>
<td class="tabletitle"> Owner</td>
<td class="tabletitle">HR Status</td>
</tr>
<tr class="light" >
<td class="white" >95</td>
<td class="white" >3601</td>
<td class="white" >
r
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >112</td>
<td class="white" >3600</td>
<td class="white" >
h
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >1126</td>
<td class="white" >STIZ</td>
<td class="white" >
segerh
</td>
<td class="white" >
Active
</td>
</tr>
<tr class="light" >
<td class="white" >67</td>
<td class="white" >STIR</td>
<td class="white" >
h
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >1230</td>
<td class="white" >STIQ</td>
<td class="white" >
h
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >1253</td>
<td class="white" >SGPB</td>
<td class="white" >
h
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >5239</td>
<td class="white" >STIL</td>
<td class="white" >
segerh
</td>
<td class="white" >
Active
</td>
</tr>
<tr class="light" >
<td class="white" >3313</td>
<td class="white" >CR60</td>
<td class="white" >
a
</td>
<td class="white" >
No Owner Assigned
</td>
</tr>
<tr class="light" >
<td class="white" >5379</td>
<td class="white" >STIC</td>
<td class="white" >
freyha
</td>
<td class="white" >
Active
</td>
</tr>
<tr class="light" >
<td class="white" >2319</td>
<td class="white" >FAKE</td>
<td class="white" >
Paul Shah
</td>
<td class="white" >
Not Found
</td>
</tr>
</table>
</form>
<html>
</td>
</tr>
</table>
</body>
</html> |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
|
| Back to top |
|
 |
ajoo
Joined: 26 Jun 2008 Posts: 5
|
Posted: Sat Jun 28, 2008 5:41 am Post subject: Re: Can some one see what is wrong with this Java Script |
|
|
I am sorry I didnt see my previous post. .
Thanks for your reply, If I copy the script you have written in the previous post in the above HTML code this doest work.
Thanks |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Sat Jun 28, 2008 5:49 am Post subject: Re: Can some one see what is wrong with this Java Script |
|
|
Excuse me, but I've tested the codes I've given on IE, FF, Safari and Opera, and it was working as suppose.
What's the error thrown on your part? I'm not recieving any.
Up the code that is erroneous and don't quote on mine. |
|
| Back to top |
|
 |
ajoo
Joined: 26 Jun 2008 Posts: 5
|
Posted: Mon Jun 30, 2008 3:46 pm Post subject: Re: Can some one see what is wrong with this Java Script |
|
|
Thanks,
The problem was I had white spaces. Thank for your help You have a great day |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Tue Jul 01, 2008 1:05 am Post subject: Re: Can some one see what is wrong with this Java Script |
|
|
No problem, glad to help  |
|
| Back to top |
|
 |
|