File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to decide on Ajax, and javascript

 
veena sasikumar
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have been using struts for quite sometime for the development. Our framework ( basically struts) involves, javascripting and Ajax too. Very often my reporting officer ask me to change the validations in to Action class. How can I actually decide where to use javascript and where not. Though our framework uses Ajax, I don't know anything on Ajax. Is the book Ajax in Practice is a book for beginners ?

thanks in advance,
Veena
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When it comes to validation, while you can do validation on the client using Javascript, you must also always validate the data on the server. Client-side validation is a great way to give the user quick and immediate feedback, but it is not secure enough to rely upon. Anyone can turn off Javascript in their browser, and those with malicious intent can spoof requests far too easily.

So I like to use client-side validation in order to give the user a good experience, but always employ server-side validation to keep the server safe.

Chapter 6 of Ajax in Practice addresses these concerns in detail.
[ April 09, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64205
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by veena sasikumar:
Is the book Ajax in Practice is a book for beginners ?


It depends what you are a beginner at. If you are a complete novice to Javascript and web development, it might be a bit of the deep end of the pool for you. If you are familiar with basic Javascript and it's Ajax that you are a novice at, you should do ok.

The first two chapters of the book give you a crash course on Ajax, and the third chapter goes into details regrading the more advanced Javascript techniques that the use of Ajax usually entails. So the book is suitable for anyone with at least basic skills.
[ April 09, 2007: Message edited by: Bear Bibeault ]
 
veena sasikumar
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mr.Bear Bibeault,

thanks for the answer. It cleared my doubt

regards

veena
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic