> _Jane D_, venerd́ 17/set/2004:
>
>> I have become more and more pleased with what bookmarklets can
>> do for me on my opera browser.
>>
>> Just to really make me really happy I would love to find a
>> bookmarklet which automatically added VAT (very similar to
>> sales tax in the US) to a price shown on a web page.
>>
>> It could work it one of two ways:
>>
>> (1) Maybe the bookmarklet would need the user to highlight
>> the price and then when the bookmarklet was actioned, it would
>> popup a new price inclusive of VAT (at 17.5% for the UK).
>> [...]
MLC <(E-Mail Removed)> wrote:
>
> Hi Jane,
> I've made for you a bookmarklet of the (1) kind.
> It is at the bottom of this page, called vatIncl:
>
> http://fido.altervista.org/bm/bookmarklets.php
>
> I've tested it on FireFox, then let me know if it works on
> Opera too, so I can add its icon. For sure it doesn't work on
> Internet Explorer, I still have to look into it.
Your bookmarklet works just fine on my Opera 7.5. Thank you very much for
making such a bookmarklet.
Can I politely suggest two small improvements?
ONE is to round the output number to 2 decimal places. There must be little
demand for any greater accuracy than that.
TWO is harder. When I select a price on a webpage for your bookmarklet then
I find it easiest to double click the price. This usually means that the
currency symbol before the digits also gets selected with the following
number.
Would it be possible to have your bookmarklet ignore the leading character
if it was non-numeric? (If you wanted to be really very clever then you
could reinsert the currency symbol to precede the output number!)
>
> Last note: you in UK are lucky, we in Italy have IVA (our VAT)
> at 20%!
We are lucky that we pay more but at least you can calculate the IVA more
easily in your head! :-)
>
> Ciao,
>
> X'Posted to:
> opera.general,alt.comp.freeware,uk.comp.vendors,uk.
> comp.homebuilt