Wednesday, December 23, 2009

Pokemon Frigo Return Rom

jsp


jQuery is a javascript library that is being using far
one of the features of this library is its well
compressed version shares many characteristics of prototype
(one difference is the method call).

explained in a previous link some ajax and if there is any doubt
would be good to see this topic, plus I have a link for further
over the issue.

http://ungranoparajava.blogspot.com/2009/05/empezando-con-ajax.html

ajax understand if we already have or want to go directly to what we view this practice
jquery manual very good (in
official website there is much documentation and even in English)

http://www.librosweb.es/ajax/capitulo10/la_libreria_jquery.html

in the above link can also find a manual
ajax prototype and is very good about this link.

now let that bring us together lol, what fun it is to
code.

as always we will use our
netbeans and the first thing we do is a web project, which does not include any
framework (such as hibernate, jsf, struts, etc.
but can be used with jsf, struts, spring etc.) .

as we see our project has a js folder, create it in this
new-> other-> carperta. To work with this library
have to download the file jquery-1.3.1.js, this is
version but we can work with the former being the well 1.2.1
are many. This file is saved in the folder you created in
js our project is so simple.

and now work as one does with javascript, but we must define our jquery
in the code.


\u0026lt;% @ page contentType = "text / html"%>

\u0026lt;% @ page pageEncoding = "UTF-8"%>

\u0026lt;! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN "

" http://www.w3.org/TR/html4/loose.dtd ">

\u0026lt;html>

\u0026lt;head>

\u0026lt;script src="js/jquery-1.3.1.js"> \u0026lt;/ script> \u0026lt;script type="text/javascript">



$ (document). ready (function () {

alert ("loaded");}

);

\u0026lt;/ script>

\u0026lt;meta http-equi = "Content-Type" content = "text / html; charset = UTF-8 ">

\u0026lt;title> JSP Page \u0026lt;/ title>

\u0026lt;/ head>

\u0026lt;BODY>

\u0026lt;h1> JSP Page \u0026lt;/ h1>


can see in the above code
a small example of how to implement the jQuery library in netbeans

The following link
can see what we can accomplish with this library;
good examples

Now let's take a link from this example that's great, the idea is to communicate
jquery jsp and. date only because I found this link
very good example to begin and the idea is not to copy but reusing code
jejejej the idea is to give a hand to COMUDES java.

http://rekkeb.wordpress.com/2009/03/15/comunicar-jsp-y-jquery/

as the topic is interesting I think we will create another entry on the subject, with more interesting examples.




0 comments:

Post a Comment