• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How to decide on Ajax, and javascript

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Mr.Bear Bibeault,

thanks for the answer. It cleared my doubt

regards

veena
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic