Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prototype and script.aculo.us.

 
Oggi Olli
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Oggi Olli
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic