Hi Benjamin, First thanks for the explanation. I'm aware of the same origin policy and the branding requirement from GDS.
What if I issue the search through browser plugin, e.g., ActiveX control(IE) or Plugin(FF)? Is that possible? Thanks Roy On Jul 2, 7:33 am, "Benjamin [API Guru]" <[email protected]> wrote: > Plugins are not exposed to the web browser. The plugins are able to > use ActiveX objects for advanced features. > > To search the index you can use the Query API. However, due to > security restrictions, search queries can only be issued from the same > machine Google Desktop runs on (Since it only listens on localhost). > If you want to search a Google Desktop search index from another > machine you would have to develop a proxy application that listens to > search requests and forwards them to Google Desktop. Searching > directly from within the browser using Javascript is not possible > because of the same-origin policy, which only allows XMLHttpRequests > to the same domain on which the Javascript is run, and I think this > includes the port (so Google Desktop localhost is different than a > local apache webserver). > > Searching the local machine should be possible if you > a) Have a proxy application running on every machine > b) Send the machine IP to the server with the search query > c) Issue the search request from the server, through the proxy on the > machine to Google Desktop > d) Return the results from the server - maybe processed to match the > layout > > I'm not sure if this applies (since this might only be used > internally) but you might also bound by the Branding > Guidelineshttp://desktop.google.com/dev/brandguide.htmlfor your query and > results pages. > > Best regards, > Benjamin > > On Jul 1, 8:25 pm, Roy <[email protected]> wrote: > > > > > GDS query API supports native plugins and scripting plugins, so it > > gives me the impression that the plugins are exposed to web browser. I > > thought in IE I could create an ActiveX control then use javascript to > > send search query to the localhost. Yet it doesn't seem to work. > > > Is this possible? Am I heading the wrong direction? > > > If not, what are the options out there? I basically need to search the > > machine that the web browser runs. The server is not on the > > localhost. > > > Thanks > > > Roy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
