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

Append new row when api detect income data #886

Open
stevenleesf opened this issue Jul 29, 2021 · 0 comments
Open

Append new row when api detect income data #886

stevenleesf opened this issue Jul 29, 2021 · 0 comments

Comments

@stevenleesf
Copy link

Hi there, I am trying to implement Footable into my websites, I encounter a problem with using append or prepend. Every time I append a new row into the data table. It did not redraw and check if the current page is fully occupied with data. How can I work around this error?

var html = '<tr class="bid-item bid-item-' + value.id;
        html += ' bid-item-customer-id-' + value.id + '" data-id="' + value.id + '" data-customer-id=" ' + value.customer_id + '">';
        html += '<td data-fb-user-id="' + value.fb_user_id + '" style="display: table-cell;"></td>';
        html += '<td style="display: table-cell;">' + value.from.name + '<p>(' + value.from.id + ')</p></td>';
                html += '<td style="display: table-cell;"><form method="post" class="form-bid-item-action" action="{{ config('app.url') }}/admin/bid/' + value.id + '/action">';
        html += '<input type="hidden" name="_token" value="' + value.csrf + '"><div class="input-group">';
        html += '</div></form></td><td style="display: table-cell;">' + value.message + '</td><td style="display: table-cell;">' + timeCreated + '</td>';
        html += '</td></tr>';

      $('.bid-list-table tbody').append(html);  

I am using a Facebook API to do this, where every income message is detected. it will send to my website and display. The problem is that it does not auto-paginate once it reached the max paginate value. only if I refresh my page then it will show correctly

Thanks for taking your time.

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