aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to decide on Ajax, and  javascript 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 "How to decide on Ajax, and  javascript " Watch "How to decide on Ajax, and  javascript " New topic
Author

How to decide on Ajax, and javascript

veena sasikumar
Greenhorn

Joined: Nov 27, 2006
Posts: 29
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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

Joined: Nov 27, 2006
Posts: 29
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
 
subject: How to decide on Ajax, and javascript