Introduction to JsJava2.0(http://www.jsjava.com)
JsJava2.0 comes to being on Sep 10th 2007.It's completely based on the Javascript's prototype mechanism and build most usefull data strutcture and class libraries.It references to J2SE1.4.2 and J2EE1.4 and some other opensource Java project such as apache commons.
I now introduce the main contents of JsJava2.0.
JsJava2.0 implements much of collections framwork similar to Java collections framework.It implements BitSet,Hashtable,Iterator,List,Properties,Set,Stack,Enumeration and so on,with which we may deal well with data strutures.e.g as follows:
JsJava2.0 implements xml parser.It is the browser xml document parser which is compatible among IE,Firfox and Opera.Moreover,you can use xpath with Jsjava2.0 .
JsJava2.0 implements some calculation of advanced mathematics,such as matrix,distribution,statistics and so on.With in-built Math object and JaJava math solution,you can resolve more math problems.
JsJava2.0 implements date format with provided pattern.e.g as follows:
JsJava2.0 implements number format with provided pattern.e.g as follows:
JsJava2.0 implements data validation,which is useful in form.It contains number validator,string validator, mail validator,url validator and so on.Futhermore it implements locale validator.For example it provides oicq validator,here oicq is chat tool popular in china.
JsJava2.0 implements web page animation solution.You can read the chapter 3.
JsJava2.0 implements main function of Ajax,which is popular along with web2.0.
JsJava2.0 implements I/O(Input/Output) mechanism,which is very important. Of course,Javascript itself can not operation server I/O and we don't want to operation server I/O either.But I/O is a universal concept,so you can use it on the web in another form or way. Example as follows:
JsJava2.0 implements blog parser,which is very useful on the web2.0.With JsJava2.0, you can parse a blog rss to serials of JsJava objects,which are easy to use.Example as fllows:
JsJava2.0 implements page print component,with which you can print part of a page.Moreover it can be used in IE,Firefox.Example as follows:
JsJava2.0 implements cursor operations.With JsJava2.0,you can move cursor to specified position in a textarea and you also can calculate the cursor position in a textarea.Example as follows:
JsJava2.0 implements clipboard operation,with which you can copy text to system clipboard and get text from clipboard.It can work in IE and Firefox. Example as follows:
JsJava2.0 implements color operation,with which you can operate RGB color and convert between RGB value and Hex value.Example as follows:
With JsJava2.0,you can finish more and more web page solutions!