Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Javascript: Display Logic or Business Logic?

by suaveant (Parson)
on Oct 04, 2011 at 14:30 UTC ( [id://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)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found