Welcome to WebmasterWorld Guest from 107.20.20.39

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Problem with Open Search Description

URL not well formed

   
8:26 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Example</ShortName>
<Description>Example search</Description>
<Url type="text/html" template="http://www.google.de/cse?cx=partner-pub-example&q={searchTerms}&sa=Suche"/>
<Image width="16" height="16">http://www.pege.org/favicon.ico</Image>
<Developer>Jettero Heller</Developer>
<Contact>Jettero.Heller@example.com</Contact>
</OpenSearchDescription>

When I open the file with Firefox, I get an

Error
URL not well formed just after the first "&".
When I use the file to add an search provider
"There is a problem with the information provided"

When I remove the 2 "&", the XML, it shows in Firefox,
I can use the file to add an search provider by

<a href="javascript:window.external.AddSearchProvider('http://www.example.com/search.xml');">add the engine</a>

But natural, Google tells, the 400 Bad request

So what's wrong with the URL?

8:33 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Use
&amp;
instead of
&
.
8:38 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Thanks!

Now makes the mystic MSIE error message sense

Missing semicolon

8:54 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Senior Member jetteroheller is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



One problem remaining:

This should work for German users.

When I enter in the search box a search term with German special characters like
This characters are wrong in the search.