piyush23424 Posted January 6, 2010 Share Posted January 6, 2010 hi i am using the following code to print list of records from the data base <table style="width:85%; height:auto;"> <tr> <td style="background-color:#d8eff8; text-align:center;">Pdf File</td> <td style="background-color:#d8eff8; text-align:center;">Name</td> <td style="background-color:#d8eff8; text-align:center;">Delete</td> <td style="background-color:#d8eff8; text-align:center;">Download</td> <!--<td style="background-color:#d8eff8; text-align:center;">test<td> --></tr> <div class="demo-show2"> <?php foreach($records as $list){ ?> <tr><td style=" text-align:center;"><?php echo $list->file_name; ?></td> <td style=" text-align:center;"><?php echo $list->name; ?></td> <td style=" text-align:center;"> <?php echo anchor("document/deletePdf/d/".$list->id,"delete"); ?></td> <td style=" text-align:center;"><?php echo anchor("uploads/pdfs/".$list->file_name,"download"); ?></td> <!-- <td style=" text-align:center;">action </td>--></tr> <? } ?> </div> at this moment the code is showing list in this way: Pdf File Name Delete Download test.pdf test delete download test1.pdf testing delete download test2.pdf testing123 delete download but now what i want is , i will replace the delete and download links with a new column action when user will mouse over the action text or image it will show the another div or layer having the delete and download link. Please guide me how can i do that , i have gone through many jquery examples but could not implement on my code. Thanks in advance Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted January 6, 2010 Share Posted January 6, 2010 do you mean like a confirm box ? or a dialog ? Quote Link to comment Share on other sites More sharing options...
piyush23424 Posted January 6, 2010 Author Share Posted January 6, 2010 i want another div ....not the pop up boxes like javascript alerts..... the div will contain two options "delete and download"... on mouseout event div will disappear..... the problem is positioning of div on each tr in the table Quote Link to comment Share on other sites More sharing options...
dhvani Posted January 12, 2010 Share Posted January 12, 2010 Hi , You can do one thing you can add div with uniq id which you get from database. or numeric like 1,2,.... Pass that particular id on mouseout event. in function hide div with passed id or show div with passed id and hide all other div s. I think this will help you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.