JavaScript code to run search within my website?[FIXED]

This forum is for all Flare issues not related to any of the other categories.
Post Reply
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

JavaScript code to run search within my website?[FIXED]

Post by M33R4 »

Top of my page has a ToolBar.

This ToolBar sits just above the Breadcrumbs and contains some icons - Print, Back, Next, Search.

When the user clicks the magnifying glass icon, I want them to be taken to a page that allows them to search the content of the website:

ToolBar.PNG

I presume I need JavaScript in the Skins > ToolBar > Styles > Search > Event > Click: field?[/color]
ToolBar_Search_Event_Click.PNG
How do I do that please :?:

Help from you savvies much appreciated.
You do not have the required permissions to view the files attached to this post.
Last edited by M33R4 on Wed Oct 06, 2021 8:09 am, edited 1 time in total.
Newbie to MadCap Flare
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: JavaScript code to run search within my website?

Post by NorthEast »

The search that Flare provides can be run in two ways:
(1) Use the search box in the skin header area.
(2) Use the Search Bar Proxy, which allows you to include insert a search box anywhere inside a topic.

Not sure why you'd want to start a search from the toolbar when there's already a search in the skin header.
But you could add a search bar proxy in a topic, and then link to that topic from the toolbar icon - to do that, see your previous question: viewtopic.php?f=6&t=33157
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Re: JavaScript code to run search within my website?

Post by M33R4 »

Dave Lee wrote:......
But you could add a search bar proxy in a topic, and then link to that topic from the toolbar icon - to do that, see your previous question: viewtopic.php?f=6&t=33157
How do I link the Toolbar icon to the topic page please Dave? Is it via Skins > ToolBar > Styles > Search > Event > Click ????

Thanks
.
Newbie to MadCap Flare
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Re: JavaScript code to run search within my website?

Post by M33R4 »

Dave Lee wrote:The search that Flare provides can be run in two ways:
(1) Use the search box in the skin header area.....
Not sure why you'd want to start a search from the toolbar when there's already a search in the skin header. .....

Started off with that and it worked fine.

However colleague suggested, as we have a Toolbar on the top of our Masterpage (Toolbar contains Print, Next, Previous), why not lose the search bar from the other areas and just add it to the same Toolbar. Hence, the question as how to make that work if it was in the ToolBar.
Newbie to MadCap Flare
M33R4
Sr. Propeller Head
Posts: 128
Joined: Wed Oct 07, 2020 7:58 am
Location: UK

Re: JavaScript code to run search within my website?

Post by M33R4 »

Issue was fixed here: viewtopic.php?f=6&t=33157
Newbie to MadCap Flare
Post Reply