You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be possible the following way:
Enable parsing the search sequence from an URL GET-style request in javascript, e.g.: http://kipoi.org/groups/?s=tensorflow
This could be parsed by a javascript function that is triggered by e.g. $( document ).ready() in jquery which then puts that in the search bar and triggers the search.
The barcharts can then generate the URL simply by writing the GET request URL
@krrome you are right. DataTables library allows entering the pre-search string that is used to filter down the result set when initializing table on page load.
Just the JS logic of reading from and updating the URL is needed and then we have a solution allowing to link to arbitrary subset and also automatically generating reflecting URL for any search query.
Activity
krrome commentedon Mar 13, 2018
I think it would be possible the following way:
Enable parsing the search sequence from an URL GET-style request in javascript, e.g.: http://kipoi.org/groups/?s=tensorflow
This could be parsed by a javascript function that is triggered by e.g.
$( document ).ready()in jquery which then puts that in the search bar and triggers the search.The barcharts can then generate the URL simply by writing the GET request URL
zupan commentedon Mar 15, 2018
@krrome you are right. DataTables library allows entering the pre-search string that is used to filter down the result set when initializing table on page load.
Just the JS logic of reading from and updating the URL is needed and then we have a solution allowing to link to arbitrary subset and also automatically generating reflecting URL for any search query.
krrome commentedon Mar 15, 2018
Perhaps this is useful, but maybe an overkill as we don't need full mapping/parsing of a get-request: https://stackoverflow.com/questions/8486099/how-do-i-parse-a-url-query-parameters-in-javascript
zupan commentedon Mar 15, 2018
True. There are simpler snippets made exactly for this features that we can adapt: wet-boew/wet-boew#6622 (comment)