Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Javascript: Display Logic or Business Logic?

by suaveant (Parson)
on Oct 04, 2011 at 14:30 UTC ( #929557=note: print w/replies, xml ) Need Help??

in reply to Javascript: Display Logic or Business Logic?

Well, it partially depends on what you want to do. We use ExtJS when we want a highly interactive UI, and that clearly lends itself to AJAX calls back to the server. Of course you also end up with some business logic in the front end unless you want to make hundreds of calls back to the server to validate data and what not. Of course then you need to validate on both end since it is very easy to send data to the server without the JS in the middle.

If you are generating regular looking HTML pages then you could do it with Javascript but may as well use a Perl Templating system.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re: Javascript: Display Logic or Business Logic?

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://929557]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-08-16 12:45 GMT
Find Nodes?
    Voting Booth?

    No recent polls found