Exploring blueimp's jQuery-File-Upload Demo has been occupying my time recently. After studying it for several days, I feel like I've gained a solid grasp of how it functions. However, as someone with limited experience in web development, there is one particular issue that is piquing my curiosity.
Within the Basic-UI-Plus section of the demo, files queued for upload (those selected via the Add button) are displayed using JavaScript-Templates.
<table role="presentation" class="table table-striped">
<tbody class="files"></tbody>
</table>
The template is rendered and its output is placed within the block designated by the "files" class, which in this case is the "tbody" block.
However, when attempting to include the table tags from the template as well:
<div class="files">
<!-- Template's output appears here: containing <table></table> -->
</div>
While FireBug's DOM viewer indicates that everything is rendering correctly, the table itself remains invisible. Through experimenting with different layouts, I discovered that removing the "fade" class from the "tr" element generated by the template would make the table visible. Yet, doing so causes disruption to the functionality of the demo, rendering neither of the start buttons operational.
I have provided links to two jsfiddles:
The functional one correctly displays the table of queued files. Upon clicking either of the 'Start' blue buttons, an attempt to upload will occur resulting in the expected server not found message.
The perplexing one fails to display any table at all, despite appearing correctly in firebug. By either eliminating the "fade" class or incorporating the "in" class as recommended below, visibility is restored – but both start buttons cease to be effective.
If anyone can shed light on this enigmatic behavior, I would greatly appreciate it! Thanks!