R
Roedy Green
I wrote a pair of Applets to compute sales tax. I did some looking at
web hit stats and discovered the Canadian Tax calculator is my most
popular piece of software. It would be nice if it could
automatically default configure itself to the province/state of the
user.
I can get the country from Locale.getDefault().getCountry(), but not
the state/province.
It does not have to be 100% accurate.
It might be done with some rough IP table ranges, ideally something in
pure Java. Any ideas?
I know there are commercial IP categorising services and tables, but I
have no budget. This, like all my software is free.
I suppose I might do a cookie or Preference to record the last choice,
but that would require signing the Applet, which scares people off.
web hit stats and discovered the Canadian Tax calculator is my most
popular piece of software. It would be nice if it could
automatically default configure itself to the province/state of the
user.
I can get the country from Locale.getDefault().getCountry(), but not
the state/province.
It does not have to be 100% accurate.
It might be done with some rough IP table ranges, ideally something in
pure Java. Any ideas?
I know there are commercial IP categorising services and tables, but I
have no budget. This, like all my software is free.
I suppose I might do a cookie or Preference to record the last choice,
but that would require signing the Applet, which scares people off.