Page 1 of 1

Search for collapsibles in a page

Posted: Wed Feb 12, 2014 10:52 am
by PTR

Hi

I have a page with with one Search component and 30 Collapsibles.

What i need the search component to do is to take me to a Collapsible if i search for it, similiar to Ctrl+f.

Could you please help me with that?


Search for collapsibles in a page

Posted: Wed Feb 12, 2014 11:24 am
by Maryna Brodina

Hello! Not sure I understand, do you need something like this https://developer.mozilla.org/en-US/d...?


Search for collapsibles in a page

Posted: Wed Feb 12, 2014 11:33 am
by PTR

Hi Maryna

I'll giva an example.

i have 30 Collapsibles on my page. One of the collapsibles has the text "Disney World". If i type in "Disney world" in the search component and press enter, i need the search to take me to the part of the page where the Collapsible "Disney World" is placed.

Basicly i need the search component to do exactly what a ctrl+f does in any webbrowser.

Thanks for answering!


Search for collapsibles in a page

Posted: Wed Feb 12, 2014 4:37 pm
by Kateryna Grynko

Hi Peter,

Please follow the link we provided. This is what you need. Find a needed Collapsible using JavaScript, and call scrollIntoView on this collapsible.


Search for collapsibles in a page

Posted: Wed Feb 19, 2014 10:02 am
by PTR

Hi

Please can you help med with this one. Can you give me a detalied explenation of how to make this work. I've tried for a week and i cant get it to work.


Search for collapsibles in a page

Posted: Wed Feb 19, 2014 10:55 am
by Kateryna Grynko

Sure. Could you please show us what you tried? What exactly doesn't work?


Search for collapsibles in a page

Posted: Wed Feb 19, 2014 11:34 am
by PTR

I've tried all sorts of combinations,i dont remember them all. But nothing i tried works so far. Could you be explain to me how to make this work? Its probably my last step to finish the app


Search for collapsibles in a page

Posted: Wed Feb 19, 2014 9:11 pm
by Maryna Brodina

Hello! We don't know your page structure so it's hard to say how to find necessary collapsible. Are you able to find needed collapsible?