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

Can some one see what is wrong with this Java Script

Can some one see what is wrong with this Java Script

Postby ajoo on Fri Jun 27, 2008 10:36 pm

<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>
ajoo
 
Posts: 5
Joined: Thu Jun 26, 2008 8:40 pm

Postby rangana on Fri Jun 27, 2008 10:46 pm

What do you want to do? Is this remotely different to your first thread where in fact you gave no response?
display-rows-in-table-on-change-of-dropdown-vt10914.html?highlight=
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby ajoo on Sat Jun 28, 2008 4:41 am

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
ajoo
 
Posts: 5
Joined: Thu Jun 26, 2008 8:40 pm

Postby rangana on Sat Jun 28, 2008 4:49 am

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.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby ajoo on Mon Jun 30, 2008 2:46 pm

Thanks,
The problem was I had white spaces. Thank for your help You have a great day
ajoo
 
Posts: 5
Joined: Thu Jun 26, 2008 8:40 pm

Postby rangana on Tue Jul 01, 2008 12:05 am

No problem, glad to help ;)
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 4 guests