On Sat, Mar 28, 2009 at 6:57 PM, some_guy <[email protected]>wrote:

>
> Ok, forget the first part to do with only showing part of the price. A
> simple change of code to:
>
> CmdUtils.makeSearchCommand({
>  name: "AmazonUK",
>  url: "http://www.amazon.co.uk/s/ref=nb_ss_w_h_?url=search-alias
> %3Daps&field-keywords={QUERY}<http://www.amazon.co.uk/s/ref=nb_ss_w_h_?url=search-alias%0A%3Daps&field-keywords=%7BQUERY%7D>
> ",
>  icon: "http://www.amazon.co.uk/favicon.ico";,
>  parser: {container: "div.result",
>           title: "div.productTitle",
>            preview: "div.newPrice span",
>           thumbnail: "div.productImage"}
> });
>
> sorted it. Still like to know how to add more details to the preview
> section (or another section) and also if it's possible to show
> pictures (eg. the star ratings from amazon) in the preview section.
>
> Thanks!
>

First a tip: when dealing with markup that is less that ideal, the more
advanced css-selectors supported by jQuery might help you; stuff like
:nth-child() and :not() has proved useful to me...

Secondly, the preview is still a bit limited, but when I have the time, I'll
add the possibility to select more than one element and have the parser add
them all, instead of just the first, and also make it possible to pass
parser.preview a function which will be counted on to return markup (in a
string) when given a jQuery object (whatever parser.container returns) -
this will make it possible to do much more advanced previews, while still
having the advantages of the parser...

Best regards,
-- cers / Christian Sonne

--~--~---------~--~----~------------~-------~--~----~
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