Extraordinary!
Thanks a lot.
Dovi

On Oct 21, 9:31 am, Christian Sonne <[email protected]> wrote:
> Hi Dovi!
>
> You're in luck, I just finished the first draft of a full reference to
> makeSearchCommand:https://wiki.mozilla.org/Labs/Ubiquity/Writing_A_Search_Command
>
> It is important to note that some features require the latest development
> version of Ubiquity, but most of it applies to the current stable version
> too.
>
> You need to know a bit about jQuery and it's oddities to do what you want,
> so I've done it for you this time :-)
>
> CmdUtils.makeSearchCommand({
>   name: "Julian day calc",
>   url: "http://aa.usno.navy.mil/cgi-bin/aa_jdconv.pl";,
>   postData: "FFX=2&ID=AA&jd={QUERY}&ZZZ=END",
>   preview: function(pblock, args) {
>     $.post(this.url,
>            this.postData.replace("{QUERY}",args.object.text),
>            function(d)
> {$(pblock).html($("<div>"+d+"</div>").find("pre"));});
>   }
>
> });
>
> Best regards
> -- cers / Christian Sonne
>
> On Wed, Oct 21, 2009 at 5:09 PM, Dovi <[email protected]> wrote:
>
> > Hi all.
> > I have no real knowledge of JS, and no real motivation to learn,
> > except for ubiquity...
> > I would like to take that simple command below, and make it throw the
> > result in the preview window, in addition to the execution. I have a
> > feeling it is pathetically simple for those who know.
> > Many thanks in advance.
>
> > CmdUtils.makeSearchCommand({
> >  name: "Julian day calc",
> >  url: "http://aa.usno.navy.mil/cgi-bin/aa_jdconv.pl";,
> >  postData: "FFX=2&ID=AA&jd={QUERY}&ZZZ=END",
> > });
--~--~---------~--~----~------------~-------~--~----~
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