George,

JavaScript can really help you to develop more scalable applications, by
offloading the processing from the server to the client. As for what should
be done by CF and JavaScript, it really varies.

On of the really nice things about writing for IE5+, is that you can
actually update specific cells within a table. In conjunction with the
IFRAME tag (with the style attribute set to "display: none;") you can have a
really slick way to update small pieces of data back and forth from the
client and the server.

This all really depends on what you're trying to do. For the most part, if
all you're doing is generating reports, then the best way to do it, is
offload it all to the database server-that's what it's there for. You
shouldn't be using either JavaScript or CFML to do any kind of aggravated
functions.

I use JavaScript a lot, but normally to collect data or to push/pull small
bits of new data to/from the database using a hidden frame.

I know I didn't really answer anything specific, but hopefully this somewhat
helpful.

-Dan
+--------+---------------------------+
|   name | Dan G. Switzer, II        |
|company | PengoWorks.com            |
|    www | http://www.pengoworks.com |
| mailto | [EMAIL PROTECTED]   |
+--------+---------------------------+


-----Original Message-----
From: Earl, George [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 7:22 AM
To: 'Listserv, Cold Fusion'
Subject: CFML vs. Javascript

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.

------------------------------------------------------------------------------
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.

Reply via email to