advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

WebKit


<SCRIPT LANGUAGE="JavaScript" SRC="webkit.js"></SCRIPT>

This line calls a separate file that includes the javascript used in this example. You can use your own javascript to manipulate the input file any way you like.

<FORM NAME="MyForm">
<INPUT TYPE="TEXT" NAME="MyfileName" VALUE="test.txt">
<INPUT TYPE="BUTTON" VALUE="ReadFile"
OnClick='read(document.MyForm.MyfileName.value, "\\n", "MyFunction");'>
</FORM>

This section displays the simple form used to call the applet. The text input is the name of the input file. The button input calls the applet

<APPLET CODE="AcuteSoftWebKit.class" NAME="Ask" Width=0 Height=0>
<PARAM NAME="DC" VALUE="0">
<PARAM NAME="URLS" VALUE="">
</APPLET>

AcuteSoft Web Kit 1.0 is the first commercial Java applet in the World which allows you to read a file from a server by simply calling a Javascript function. So it's aimed to be easy (next version will even include wizards for non-programmers)! It works on most browsers that allow communication between Java and Javascript (that is to say above 3.X versions for Netscape and Internet Explorer).

There are three reasons why we have created such an innovative technology:

  1. One reason is many people can program in Javascript but are not java skilled enough for crafting their own applets.
  2. Second reason is to allow every people hosted on free homepage services with no cgi permission to have data-live site.
  3. Third and best reason is that Java technology alone can't do document formatting with as much great flexibility as HTML language so by combining Java with Javascript thanks to our technology it will become at last possible.

Traditionnaly when you want to read database file and show it on a page browser you have to do one of two things:

  • write a CGI program in C, Perl, ASP,... that runs on a server
  • write a JAVA applet then compile and make it run on the client browser

The drawbacks of those traditional approaches are:

  • For CGI you must have permission from your provider to run CGI program because of security violation. The montly fee asked is then often much more expensive for you.
  • For CGI you must test your program remotely or you must install a server on your own machine. If your platform is Windows you must retest or even recompile your program if your host platform is Unix. So the process of coding, testing, debugging can be rather long and of course you must support high local communication fees in some countries (France,...).
  • CGI and Java are simple for experienced C programmers but are still new to others that do traditionnal programming and of course to novice programmers that just know a few html and javascript which are more quick to learn.
  • Java is not well suited for complex page presentation. Some components exist to emulate basic HTML formatting capabilities but of course you just have a few ones and the applet can be very long to load on client browsers.

The idea of combining Java with Javascript is obvious: Javascript cannot read file on a server but a java applet can. So the applet will pass the text from the file to Javascript so that Javascript can format it in HTML with the well-known document.write function.

The problem is not conceptual but technical: if you try to do so you will get a security violation from major browsers. So we solved the problem for you and you don't have to worry about future support of our applet from next versions of those browsers because the solution of the problem is purely conceptual and we have used vital functions of Java and Javascript that won't never be retrieved.

Of course we couldn't violate the most fundamental security features of java applet: writing data on the server will be impossible (so you must still have CGI to do that).

We assume that you know a little HTML and Javascript. If not so in next features of our AcuteSoft Web Kit you will have assistant to do that job for you.

We have joined a HTML file template (click to see a functional demo) to demonstrate how you could do that. It's very simple if you just know a little Javascript (sorry for others but soon we will also target non-programmers people):

  1. Copy the HTML file template which contains our Javascript function Read that will bind your function with the applet. You don't need to understand or even read all our complex codes.
  2. Write your own Javascript function with one parameter for the text to be received <LI>Call Read(<filename>,<lineseparator>,<yourjavascriptfunction>)

<filename> is the ascii text file name that you want to read <lineseparator> is usually "\\n" for new line. <yourjavascriptfunction> is the name of your one parameter function that will process the text formatting.


Back to the WebKit applet page.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Avaya DevConnect Center
 Service Component Architecture/Service Data Objects Solution Center
 Intel Go Parallel Portal
 Internet.com eBook Library
 IBM Software Construction Toolbox
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 53
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Red Hat Takes on HPC Market, Microsoft
Python's New Release Bridges the Gap
No Flash Seen on iPhone Horizon
Apple Yields to Complaints Over iPhone NDA
Microsoft Shows Some Ankle With Visual Studio
Gentoo Linux Cancels Distribution
It's Official: Windows 7 at PDC, WinHEC
Oracle Keeps Building on Spoils From BEA
Intel, Oracle Head For 'The Cloud'
Oracle Focuses on Grid, Developer Tools

eCryptfs: Single-File Encryption in Linux
CCXML in Action: A CCXML Auto Attendant
Ballmer: Current Woes Won't Halt Tech, Microsoft
Microsoft Uses VMworld to Hype Its Hypervisor
Microsoft Charges Ahead in Virtualization
Microsoft Shows Some Ankle With Visual Studio
Top 5 Reasons to Adopt SQL Server 2008
Make Application Development Easy With Software Plus Services
SharePoint Applied: 10 Things You Wish They Had Told You?Part 2
Introducing Zend_Search_Lucene

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES