Hi Marc,<div><br></div><div>I started working on improving the "<b><i>Add a new user in db-> privileges</i></b>" by providing a dialog such as in "<b><i>Add a new user in Server->privilege</i></b>" option. </div>
<div>In that case I'm going to reuse the code in "(#<span class="Apple-style-span" style="font-family: 'dejavu sans mono', monospace; font-size: 11px; white-space: pre-wrap; -webkit-text-size-adjust: none; ">fieldset_add_user).click" action in </span>server_privileges.js file. The only modification I had to do is add the class="ajax" to link on db->privileges and now it pops up the dialog box. </div>
<div>The next part is, after adding a new user we have to add that user to the list table in db->privileges and then sort it according to the alphabetical order of user names. In server->privileges, "<i style="font-weight: bold; ">appendNewUser() in server_privileges.js" </i>method has used and it is sorting the rows be selecting the first character in the label and then according to that. It is okay because server->privileges table has same type of rows. But in "<b><i>db->privileges</i></b>" table it has used two type o<font class="Apple-style-span" face="arial, helvetica, sans-serif">f rows whe</font>re one shows columns related to "global" privileges and other is to database specific privileges corresponding to each user. So I cannot use the same "<i style="font-weight: bold; ">appendNewUser() in server_privileges.js"</i> method to add and sort the table. I came up with some approaches to overcome this problem. </div>
<div><ol><li>Change the table structure where do not use two rows but use same row and line break to get them down. In this case I'll be able to reuse the same method where I think more appropriate in this case. </li>
<li>Do a refresh to the "<b><i>db->privileges</i></b>" page so it reloads the table. </li><li>Keep the table as it is in current and develop a method to sort it.</li></ol>I'm confused with what method to use. So please can you clarify me on this problem. Thank you. </div>
<div><br></div><div>Regards,</div><div>Thilanka. </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><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>
</div>