Click here to Skip to main content
16,015,393 members

Comments by khanishfaq82 (Top 4 by date)

khanishfaq82 8-Dec-10 7:01am View    
Dear Manfred..
What i realize at the end of the day is that IE does not support the hiding property on the <OPTION> tags of a <SELECT> statement. That was the issue.
But Alhamdulillah managed to break through a way so that it works the same way as required but you can say that the coding part became very complex. :-)
Thanks for your time.
khanishfaq82 7-Dec-10 2:47am View    
Thanks Manfred.
I tried the same but it is working in firefox but not working in IE(All Versions).

Here is the code which i used:
<script>
function mySelected(jobFamID) {
$("#"+jobFamID).click(function(){
var elSelected = $(this).children("option:selected");
$(elSelected).each(function() {
var id = $(this).attr("value");
var self = this;
$(self).click(function() {

$("#selectbox").children("option").each(function(){
if ($(this).attr("title") == id) {
$(this).show();
} else {
$(this).hide();
}
});
});
});
});
}
</script>
//This is the selectbox in which the contents will be. And on selection of one of the elements from this selectbox the list in another selectbox should be filtered.

<select style="background-color:#FFC; color:#C03; font-weight:bold;width:300px" multiple size="10" name="selectbox4[]" id="selectbox4" önChange="mySelected(this.id)">

//This is the selectbox which contains the default positions which have to be filtered.

<select multiple name="selectbox[]" id="selectbox" size="10" style="width:300px" önDblClick="slide()">
totalrows;$i++)
{
?>
<option style="background-color:#FFC;" title="" id="sesscursor[$i]['family_code'];?>" value="sesscursor[$i]['job_code'];?>">sesscursor[$i]['job_desc']." - ". $postList->sesscursor[$i]['job_code'];?></style></option>

</select>
khanishfaq82 28-Aug-10 4:54am View    
Dear Sen,
Thanks for realizing the pain i have been through in writing this script but it is something that was required for reporting coz this single procedure is capable of generating more than 35 reports by passing individual parameters or combination of parameters.. So even if it had a performance hit, it was ok as long as the boss was satisfied. :-)..
khanishfaq82 6-Jun-10 3:42am View    
Yes i am trying on with Ajax and jQuery and have benefited myself a bit bt still long way to go.
I am new to Ajax and jQuery thats why finding it hard to use.