Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-08-02 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls