Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table is expanding past the right edge of jquery tab #7

Open
nam797 opened this issue Jul 6, 2011 · 0 comments
Open

table is expanding past the right edge of jquery tab #7

nam797 opened this issue Jul 6, 2011 · 0 comments

Comments

@nam797
Copy link

nam797 commented Jul 6, 2011

I'm calling ajax request and it's returning the fixedHeaderTable with data and everything. on certain pages it extends past the right side of the jquery tab. I have tried to adjusting the width and that gives me more horizontal scrolling. this is the code that generates what is being return.
this is the ajax call:
$.ajax({
url: 'ajax_dash.php?action=emp_stats_data&beg='+begining+'&end='+end,
type: "GET",
success: function(feedback){
$('#cont').html('');
$('#cont').html(feedback);
}
});
this is what is happening at the call:

<script> $(function() { $( "#begining" ).datepicker({ dateFormat: 'yy-mm-dd' }); $( "#end" ).datepicker({ dateFormat: 'yy-mm-dd' }); $('#instats').fixedHeaderTable({ width: '100%', height: '250', footer: false, cloneHeadToFoot: false, altClass: 'odd', themeClass: 'fancyTable',autoShow: false }); $('#instats').fixedHeaderTable('show', 700); //$( "#add_remid" ).button(); }); </script>
               <table id="instats" cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th>Caller</th>
                            <th>Leads Issued</th>
                            <th>Wages</th>
                            <th>Hours Worked</th>   
                            <th>Lead Cost</th>  

                        </tr>
                    </thead>
                    <tbody>
                        <?php
                            $q = "SELECT EmployeeID FROM empmain WHERE Department = 80 and Status = 'Active'";
                            $dResult = mysql_query($q) or die(mysql_error());

                            $num = mysql_num_rows($dResult);;
                            if ($num < 1)
                            {
                                echo "<tr><td>No Records Found</td><td></td><td></td><td></td><td></td></tr>";
                            }
                            else
                            {
                               while ($row = mysql_fetch_array($dResult))
                               {
                                   $num_leads = $database->get_leads_by_date_inside_sales($row['EmployeeID'],$date_start,$date_end);
                                   $rep = $database->GetEmpNameCell($row['EmployeeID']);
                                   echo '<tr>';
                                   echo "<td>$rep[EmpName]</td>";
                                   echo "<td>$num_leads</td>";
                                   echo "<td><input class=\"text ui-widget-content ui-corner-all\" type=\"text\" name=\"wages\" id=\"wages\" /></td>";
                                   echo "<td><input class=\"text ui-widget-content ui-corner-all\" type=\"text\" name=\"hours\" id=\"hours\" /></td>";
                                   echo "<td>$</td>";

                                   echo '</tr>';
                               }
                            }
                        ?>
                    </tbody>
               </table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant