Is it a practical approach or any issues with it.
Note: If you are interested, visit my 2006 Tax Calculator applet at
[ April 24, 2006: Message edited by: bestonlinetaxpreparation.com ]
[ April 24, 2006: Message edited by: Joshy ]
Welcome to JavaRanch.
On your way in you may have missed that JavaRanch has a policy on display names, and yours does not comply with it - please adjust it accordingly, which you can do right here. Thanks for your prompt attention to this matter.
Since your display name is advertising for your web site, you need to change it very quickly, or your account will be closed and the posts deleted.
For updateable applications, the standard solution is Java Web Start, which is a sort of sandboxed application host with applet-like download/upgrade features.
Don't reinvent the wheel!
Thank you for posting your comments. I created this applet http://www.bestonlinetaxpreparation.com/2006TaxCalculator.html to distribute it free (downloadable from most of the freeware sites) and any webmaster interested in displaying a 2006 Tax Calculator can use it in their website. The calculator is not a link to my site where applet is displayed; it is aimed at all tax related websites owned by tax professionals for their visitors.
Now to your point, the tax laws change every year and this applet will not work for 2007 tax year. The user of this applet needs to come back to me for 2007 version of applet or I have to trace them and re-distribute it again. I think it is lots of pain..with no gain..You can think of this as website operational problem. (((I just want their visitors to visit my site. not maintain their website..just kidding )).
So, I started thinking about a maintenance free applet.. If I can pass all tax law parameters in HTML parameters , It is possible to solve this problem, but webmasters need to edit their html and set the parameter values. The problem with approach is webmasters can mistake and calculator will display wrong results and it will damage the reputation of the calculator. Again I need to trace them. This approach is used by some of existing calculators including the commercial ones..
I don�t want to sign the applet as well.
This is my idea.. The problem is I am new to AJAX and hence I want to know whether it is a practical idea.. Anybody did something like this before. Issues of parsing an XML inside the applet..
[ April 27, 2006: Message edited by: Joshy Thomas ]
Originally posted by Joshy Thomas:
[ April 28, 2006: Message edited by: Joshy Thomas ]
You may want to check this property "document.domain = 'mydomain.com'"
We used the XMLHTTPRequest sometime ago and I remember at some point
we started getting security warnings that we solved using the property
I am not sure for other browsers
You could also just let the Applet make a URLConnection to your server and do the same thing when it loads. You'll just need to adjust the security constraints of the applet accordingly.
[ May 11, 2006: Message edited by: Gregg Bolinger ]
Dynamic Html and Xml: The XMLHttpRequest