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


Can some one see what is wrong with this Java Script



 

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



Joined: 26 Jun 2008
Posts: 5

PostPosted: Fri Jun 27, 2008 11:36 pm    Post subject: Can some one see what is wrong with this Java Script Reply with quote

<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
View user's profile Send private message Yahoo Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 627
Location: Cebu City Philippines

PostPosted: Fri Jun 27, 2008 11:46 pm    Post subject: Re: Can some one see what is wrong with this Java Script Reply with quote

What do you want to do? Is this remotely different to your first thread where in fact you gave no response?
http://www.devppl.com/forum/display-rows-in-table-on-change-of-dropdown-vt10914.html?highlight=
Back to top
View user's profile Send private message Yahoo Messenger
ajoo



Joined: 26 Jun 2008
Posts: 5

PostPosted: Sat Jun 28, 2008 5:41 am    Post subject: Re: Can some one see what is wrong with this Java Script Reply with quote

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
View user's profile Send private message Yahoo Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 627
Location: Cebu City Philippines

PostPosted: Sat Jun 28, 2008 5:49 am    Post subject: Re: Can some one see what is wrong with this Java Script Reply with quote

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
View user's profile Send private message Yahoo Messenger
ajoo



Joined: 26 Jun 2008
Posts: 5

PostPosted: Mon Jun 30, 2008 3:46 pm    Post subject: Re: Can some one see what is wrong with this Java Script Reply with quote

Thanks,
The problem was I had white spaces. Thank for your help You have a great day
Back to top
View user's profile Send private message Yahoo Messenger
rangana
500+ Club


Joined: 27 Feb 2008
Posts: 627
Location: Cebu City Philippines

PostPosted: Tue Jul 01, 2008 1:05 am    Post subject: Re: Can some one see what is wrong with this Java Script Reply with quote

No problem, glad to help Wink
Back to top
View user's profile Send private message Yahoo Messenger
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