Hi Marc,<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
as Rouslan said, please rewrite this function in jQuery, probably<br>
passing to it the form name as a parameter. Then move it to js/functions.js.<br>
<br>
Then you'll be able to call it from tbl_structure.js in your Ajax logic;<br>
you'll be able to call this function also from indexes.js at load time.<br>
<br>
Finally in tbl_indexes.php, instead on the "onchange", use jQuery in<br>
indexes.js to bind to changes in select_index_type.<br>
<font color="#888888"><br></font></blockquote><div><br></div><div>I did the above mentioned changes and pushed the changes to the repo. Please check that. Thank you. </div><div><br></div><div>Regards,</div><div>Thilanka. </div>
</div><br clear="all"><br>-- <br><div><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px"><div style="text-align:left">L G Thilanka Kaushalya     <br>Computer Science & Engineering,    <br>
<div style="color:rgb(80, 0, 80)">University of Moratuwa,<br>Sri Lanka<span></span><br>                          <br></div></div>Connect with me at,<br>      Gmail        : <a href="mailto:lgtkaushalya@gmail.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@gmail.com</a><br>
      Twitter       : @thilanka_k<br>      Facebook  : Thilanka Kaushalya<br>      Yahoo       : <a href="mailto:lgtkaushalya@yahoo.com" style="color:rgb(0, 0, 204)" target="_blank">lgtkaushalya@yahoo.com</a></span></div>
<div>      Blog          : <a href="http://coders-view.blogspot.com/" target="_blank">http://coders-view.blogspot.com/</a></div><br><br>