Open Search Description (press tab to search)

Asked

Viewed 63 times

1

I made a system of extensions for the company and wanted to implement in this system the "press guide(tab) to search" that I see on various sites. I’ve done it every way I can, and I can’t bring myself to do it.

the xml code I use is like this: Código xml

I’ve made sure the link is right.

Here is the example of what I want to happen:

Tab to search (aperte guia para pesquisar)

And finally, a system print, with the example of searching in the url

Sistema

And another question I have, this Opensearchdescription works on the localhost, or only on websites on the internet?

1 answer

1

You need to put the path of XML in the tag <head> of its application:

<head>
    ...
    <link href="<%= Url.Content("~/Content/OpenSearch.xml") %>"
        rel="search"
        title="Pesquisa no Meu Sistema de Ramais"
        type="application/opensearchdescription+xml" />
    ...
</head>

And another question I have, this Opensearchdescription works on the localhost, or only on websites on the internet?

It’s supposed to work on both.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.