![]()
Unifying the Java and Javascript Tribes
under a Clarion NationHave you wanted your users to use your web application without the Java download wait,
but ...
you still wanted to have Java functionality in other procedures of the same application? A real pain, right? Until now!Below is a link to an example of using Clarion Internet Connect with a customize Internet Connect template (First, many thanks to the intrepid Tony Goldstein and Troy Sorzano of the CWSuperpage ! See Tony Goldstein's article: "Inside Internet Connect: Enhancing, Overriding, and Replacing the Internet Builder Classes".). My example below builds on Tony's example, but, demonstrates selective use of Java within the same web application. You may use Java in one procedure by checking a checkbox for that procedure. You may choose not to use it in another procedure by not checking that check box (Yes, mix and match Java and non-Java procedures in a new way).
For instance, you may not need your main procedure to load Java so your users can start to use your applications immediately. Somewhere else in your application you can inform them (read warn them) about the next procedure, that is, how long it may take to download, why the added functionality is needed, etc. But they have already used your app and gained some benefit without waiting as long, so they may be more tolerant of the download time for the Java classes at this point.
Also, I have included an example (in the same web application) of using the OnClick Javascriptevent for the non-Java procedure (Select-N-Go). Another Javascript procedure (non-Java as well) demonstrates the OnSubmit event. This is useful when validating data on a form for submission. You may enable the OnSubmit event by checking a checkbox for that procedure.
Take a look and send me comments and questions.
(If you are using Microsoft Internet Explorer 4.0x you may have a bug that needs to be fixed. Go to http://support.microsoft.com/support/kb/articles/q180/1/76.asp
for the details.
There is a Service Pack for IE4.01 that is supposed to
fix this bug available at
http://www.microsoft.com/ie/download/sp1.htm.
Parts of my example may not work if you have not fixed the bug.)Mike Pasley
Team Topspeed - Internet Connect
Questions? Comments?
Email MikePasley at mpasley@logicentral.com