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

Make the barcharts clickable #56

Open
Avsecz opened this issue Mar 12, 2018 · 4 comments
Open

Make the barcharts clickable #56

Avsecz opened this issue Mar 12, 2018 · 4 comments

Comments

@Avsecz
Copy link
Contributor

Avsecz commented Mar 12, 2018

No description provided.

@krrome
Copy link
Contributor

krrome commented 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
Copy link
Contributor

zupan commented 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
Copy link
Contributor

krrome commented 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
Copy link
Contributor

zupan commented Mar 15, 2018

True. There are simpler snippets made exactly for this features that we can adapt: wet-boew/wet-boew#6622 (comment)

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

3 participants