<div>Hi all,</div>
<div> I am using the following piece of code in my java script file to retrieve the ids of checked check boxes from a div named "list".</div>
<div>I am appending the arrays of ids in the url using the "location.href = location.href+"?array=true&0="+course;" etc. I can see the array in the address bar but using $REQUEST or $GET does not help me fetch the values. </div>
<div> </div>
<div>Please have a look at my code and help me as soon as possible. This problem has already taken a lot of my time.</div>
<div>Thanx in advance.</div>
<div> </div>
<div>function ApplySelectedChanges()<br>{ <br> var Checked_tables_ids = new Array(); <br> <br> var div = document.getElementById("list");<br> var input_fields = div.getElementsByTagName('input');<br>
var x = input_fields.length;<br> var i;<br> var append_string;<br> for (i=0; i<x; i++) {<br> if (input_fields[i].type == 'checkbox') { </div>
<div> if (i == 0) {<br> append_string = "?abc="+1234+"&"; <br> } else {<br> append_string += "&"; <br> }<br>
Checked_tables_ids[i] = input_fields[i].id;<br> append_string += i+"="+input_fields[i].id; <br> }<br> } </div>
<div> location.href += append_string;</div>
<div>}<br></div>
<div> </div>