it works!!
Thanks

On 27 Jan, 15:00, Abimanyu Raja <[email protected]> wrote:
> Hey Henrik,
>
> Try "http://www.platekompaniet.no/sok.asp?
> frmquery=" + search_string +
> "&mediatype=all&x=0&y=0<http://www.platekompaniet.no/sok.asp?frmquery=dungen&mediatype=all&x=...>
> "
>
> This should work.
>
> Cheers,
> Abi
>
> 2009/1/23 Henrik Marstrander <[email protected]>
>
>
>
> > I picked up this multisearch from Axel Boldts (?) multi-search
> > The problem is that it only works when the searchterm is in the end of
> > the url
>
> > /* cdvd-multi */
>
> > CmdUtils.CreateCommand({
> >    name: "cdvd",
> >    takes: {"search_string": noun_arb_text},
> >    description: "Searches platekompaniet and cdon",
>
> >    author: { name: "Axel Boldt", email: "[email protected]"},
> >    homepage: 
> > "http://math-www.uni-paderborn.de/~axel/<http://math-www.uni-paderborn.de/%7Eaxel/>
> > ",
> >    license: "Public domain",
>
> >    preview: "searches platekompaniet and cdon",
> >    execute: function( directObj ) {
> >       var search_string = encodeURIComponent(directObj.text);
>
> >       var windowManager = Components.classes["@mozilla.org/appshell/
> > window-mediator;1 <http://mozilla.org/appshell/window-mediator;1>"]
> >         .getService(Components.interfaces.nsIWindowMediator);
> >       var browserWindow = windowManager.getMostRecentWindow
> > ("navigator:browser");
> >       var browser = browserWindow.getBrowser();
>
> >       browser.loadOneTab("http://cdon.no/search?q="; + search_string,
> > null, null, null, false, false);
> >       browser.loadOneTab("http://www.platekompaniet.no/sok.asp?
> > frmquery=" + search_string, null, null, null, false, false);
> >     }
> >   });
>
> > the last url should have been
> >http://www.platekompaniet.no/sok.asp?frmquery=dungen&mediatype=all&x=...
> > but then you get the searchterm "dungen" in the midle, and I dont know
> > how to integrate the end with the current structure
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" 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/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to