Interesting question...
Some things to consider (in no particular order):
1. CFML is probably a better choice for manipulating SQL query data
because it has tags (cfoutput, cfloop, etc.) which are designed to
work with/augment the SQL query results (grouping, indexing an entire
row, etc.).
2. Server-side caching of programs and data may make server (CFML)
processing more efficient.
3. Be aware that the processing time (to create summary data) that
you might offload from the server may be eaten up by the bandwidth
necessary to transmit detail data to the client (as well as the
javascript routines to process it).
4. Distributed applications, by there nature are more difficult to
develop, test and maintain over time.
5. Javascript tends to present more browser/platform compatibility
and upgrade problems.
6. As a personal preference, I tend to use Javascript only where I
can't do the equivalent on the server side:
user interaction/interface
application flow/glue
communication/interaction among frams and windows
7. WDDX should be considered as part of the equation... it may change
how much programming you decide to do on the server vs the client.
8. A server-side program, potentially, has access to more (and more
robust) tools than are available to Javascript:
Custom Tags
Application programs to manipulate files, images, PDF files, etc.
Objects
Connections to web, other servers, db servers, etc.
There are probably a lot more considerations...
Dick
At 7:21 AM -0400 6/28/2000, Earl, George wrote:
>What is a good rule of thumb for when to use CFML and when to use Javascript
>when both will accomplish the same thing? We develop management information
>reports and applications for a very large intranet which has standardized on
>MSIE 4/5 and Pentium PII/III PCs with WinNT 4.0 and 32 - 128MB RAM. These
>applications require a lot of manipulation of the numbers returned from
>queries to format them into reports (summing, grouping, etc). Is this the
>kind of thing that should be done on the client machine with Javascript
>where possible or should I do it with CFML? I can see an argument for taking
>the load of processing the answer set into a report off of the web server
>(CFML) and dropping it down to the client (Javascript) where possible.
>Thoughts?
>
>George
>[EMAIL PROTECTED]
>------------------------------------------------------------------------------
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.