You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manolo Carrasco 65101f27de Increase snapshot versions. Include archetype module so as we deploy it at the same time than gquery. 10 years ago
..
samples This is the first jQuery plugin working with jsQuery. It needs cleanning and maybe BundleGenerators to have the js in an external file 12 years ago
src/main Implement some methods which are in jquery but they werent in jsquery and gquery 11 years ago
README.txt README changes 12 years ago
pom.xml Increase snapshot versions. Include archetype module so as we deploy it at the same time than gquery. 10 years ago

README.txt


This gwt module (JsQuery) allows to export gquery to javascript so as the exported
javascript can be used as a substitute of jquery.

* Compile:
- mvn package

* Usage
- Copy the content of the folder target/_version_/jsquery to your webserver
- Include the script jsquery.nocache.js in your html files instead of jquery.js


This is an experimental feature and not all of the methods in jquery are available yet,

Performance could be worst or best than jquery depending on the cases:
- Gwtexporter needs to compute many runtime operations in order to figure out
which method signature to execute and how to wrap gwt objects to js objects and viceversa.
- Once gwtexporter has selected the aproppriate method, gquery performs better in many
cases like selectors or many operations in IE.

There are many advantages in exporting gquery to js, but the main goal is to use jsni
code from jquery plugins in gwt without porting this code to java. So developers could
create gquery plugins taking the javascript code of the original plugin, putting it in
a jsni method, and coding in java only the wrapper methods to access the plugin.

Right now most methods in GQuery class are exported via JQ class, but plugin developers
could select just the methods they need for their plugins and reduce the final size of
the generated js code.

First working example using jsquery.js is at:
http://gwtquery.googlecode.com/svn/api/samples/zoom.html


- Manolo