Maybe someone can help me, too.
I'm a Perl programmer with only a bit knowledge of JavaScript.
I've had a look at Ubiquity and found it quite interesting.
Creating new search commands is pretty easy, too with the "create
search"-command.
But here my problem starts. How do I add a preview? I've had a look at
the commands that come right with Ubiquity, like the google command.
As far as I understand it, the google command and modified it so that
it works with google.de instead of google.com .
Basically I exchanged google.com with google.de and thats it.
As far as I understand it, the command uses some kind of AJAX template
provided by Google to create the preview text and renders it with DOM-
routines into a custom css design.
Isn't there an easier way to do this? Like some variable (or object)
containing all the information the website returns.
For example I want to create a search command for GamesCom.de.
The generated one with create search looks like this:
// generated by create search command
CmdUtils.makeSearchCommand({
name: "gc",
url: "http://gamescom.de/suche/wPages/index.php?
action=showResult&searchTerm={QUERY}",
});
Now I can add a preview with preview: function() {}
So what do I now to add a preview for this website?
What does the preview function needs from me so that it can return the
search results and displays them in the Ubiquity window?
Thanks for any help in advance. :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---