aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Prototype and script.aculo.us. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Prototype and script.aculo.us." Watch "Prototype and script.aculo.us." New topic
Author

Prototype and script.aculo.us.

Oggi Olli
Ranch Hand

Joined: Oct 11, 2007
Posts: 83
I just recently started using protoype in my web-app and I am completely new to its features. For one thing, the form-autocomplete is a feature I'd really like to implement. However, I guess I would need some knowledge on Ajax as well in order to achieve this feature, so I was basically just wondering whether your book provides some examples on this and if so, whether it has Java examples to go with it as well?

Good luck with your book release!
Christophe Porteneuve
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 43
Hey Stennar,

I just recently started using protoype in my web-app and I am completely new to its features. For one thing, the form-autocomplete is a feature I'd really like to implement. However, I guess I would need some knowledge on Ajax as well in order to achieve this feature, so I was basically just wondering whether your book provides some examples on this and if so, whether it has Java examples to go with it as well?


Chapter 16 of my book devotes 20 pages to all the aspects of auto-completion with script.aculo.us, with a number of example codes.

The server side is in Ruby to minimize setup, but it can be done straightforwardly in any technology. With JavaEE for instance, you'd just need a simple servlet that takes a parameter named after you input field's name= attribute, and returns a ul/li structure of results.

You do not need intricate knowledge of Ajax: it's all handled smoothly by Scripty.
[ February 12, 2008: Message edited by: Christophe Porteneuve ]

Christophe Porteneuve aka TDD
"They did not know it was impossible, so they did it." --Mark Twain
Pragmatic Guide to JavaScript: http://books.pragprog.com/titles/pg_js/
Prototype and script.aculo.us: http://books.pragprog.com/titles/cppsu/
Oggi Olli
Ranch Hand

Joined: Oct 11, 2007
Posts: 83
Thanks for the quick reply, Cristophe!

As I'm new to Javascript I reckon that these two libraries would be really suitable for me because of their ease of use. Thus, I'll first see if I win the book, and if not I'll seriously consider buying it.

Cheers
 
 
subject: Prototype and script.aculo.us.
 
Similar Threads
This weeks giveaway
How good is this book for a java developer?
Programming Groovy vs. Groovy Recipes
Question for David
Any tools mentioned in the Mastering JSF book?