PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

Search for collapsibles in a page

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Search for collapsibles in a page

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

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

Search for collapsibles in a page

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!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Search for collapsibles in a page

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.

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

Search for collapsibles in a page

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Search for collapsibles in a page

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

PTR
Posts: 0
Joined: Fri Feb 07, 2014 2:07 pm

Search for collapsibles in a page

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Search for collapsibles in a page

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?

Return to “Issues”