Hello everyone,
I am working on a new website for a cable and internet company. Their website needs a dynamic, and sort-able channel lineup table, much like hidden link.
Has anyone worked on something like this before?
You'll notice on this table, you can click the header to sort based on each column.
You'll also notice that there are a couple of drop-down selects that allow you to switch the table's lineup based on the cable package (small, medium, large, etc.), and the channel type (comedy, sports, travel, etc.).
Can this type of table be fully built, or even partially built with Toolset?
I am trying to avoid building multiple separate tables, as well. I looked into this example's code, and when various options are selected, the table data changes, but it is still the same table.
Please ask me any questions if you need clarification.
Thanks so much!
Hey guys,
I have been working on this, and I am so very close!
I have everything working except for one little thing. I was hoping you might have a reason this is happening.
I have a parametric search using AJAX to change the table without refreshing. Then I put a checkbox in with manual HTML. Using jQuery, I am monitoring when the checkbox is checked and unchecked. I am using jQuery to display: none or display: block on one of the table columns (HD Channels) according to the checkbox state.
My issue ...
When I first refresh the page, this checkbox functionality works great.
As soon as I filter the table with the parametric search, my jQuery checkbox functionality stops working.
Does anyone have any insight into this?
Thanks!
You will need to fire your JS after the AJAX event happens.
In your JS Editor you have a Button named "Front End events".
Use this button to wrap your custom JS Function in the exact callback where you want it to fire again (in your case ""The custom search results have been updated")
This should work and solve the issue you see.
Beda,
Thanks for the reply. Using the wrapper worked to enable the jQuery after the trigger event happens, but I also want my jQuery to be functioning on the first visit/page reload.
Does this mean I have to have my custom jQuery twice, once outside of this wrapper, and once inside?
Thanks!
Usually, those wrappers are used to fire again some code that is provided already by certain frameworks but is not fired on AJAX events, so yes, if your JS Code is not present anywhere in the Theme you would need to add it twice.
Does this work?
Thanks, that answers my question!