Hello.
I have written a search plugin (OpenSearch format) and I'm trying to test it in Firefox 2.0.
It works ok, when I enter some name and hit search, but I'm trying to give suggestions as well - that doesn't work.
I use Tamper Data plugin to see the headers and when I type in the search box I can see that the request is sent:
0:36:36.810[791ms]
State: 200[OK]
GET http://myserver.pl/ajax/strs.php?type=json&q=Pole
flags: [LOAD_BACKGROUND ]
Size [-1]
Type Mime[text/plain]
Request:
Host[myserver.pl]
User-Agent[Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.8.1.8) Gecko/20071004 Iceweasel/2.0.0.8 (Debian-2.0.0.8-1)]
Accept[text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5]
Accept-Language[pl,en-us;q=0.7,en;q=0.3]
Accept-Encoding[gzip,deflate]
Accept-Charset[ISO-8859-2,utf-8;q=0.7,*;q=0.7]
Keep-Alive[300]
Connection[keep-alive]
Cookie[__utmz=214404104.1195070374.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=214404104.196409487.1195070374.1196731286.1196759403.15]
Response:
Connection[close]
Date[Wed, 05 Dec 2007 23:36:42 GMT]
Server[Microsoft-IIS/6.0]
X-Powered-By[ASP.NET, PHP/5.2.0]
Content-Type[text/plain;charset=iso-8859-2]
When I enter the url I see in GET, I have the response and suggestions in JSON format:
["Pole", ["Warszawa, Poleska","Warszawa, Poleczki","Milanówek, Poleska"]]
But the suggestion is never showed. Am I missing something? And why is the size stated as -1?
Thank you for any help.