eBusiness Help
Free Customer Service Whitepaper: Tame the Two-Headed Monster
Learn the five best practices for achieving higher cost efficiency and revenue in service
Web CEO 5.6 Free Edition + Free CSEM Training & Certification
The Competent Search Engine Marketer course for webmasters, consultants & site owners on Search Engine Marketing & Optimization
Free Web Conferencing Trial
Unlimited Online Meetings for 10 Days : Hosted by Linktivity

Free Software Archive:
Enterprise and Home Networking Downloads

WebProWorld Dev Forum

Getting a window inside a web page to scroll
I am trying to figure out how to make a small window (using a DIV or IFRAME?) stay on the screen as the user scrolls down a page. I have seen this on websites, but cannot figure out how to do it.

Populate forms with info from previous page
I am carrying out some work to a customer's website and trying to make it more user-friendly. Basically my client sells bouquets of flowers and when someone clicks that they would like to order a bouquet, she would like them to click a link that takes them through to the order form. However they would like the radio button for their required bouquet to be readily selected.

A soft introduction to object oriented programming
By using the JavaScript Create Object, you can get a soft introduction to object oriented programming (OOP). The resources at W3Schools, where you can learn the basics of nearly all web design are excellent. It has an inbuilt editor where you can modify example code and see the effect immediately.



Download a Free Trial of Ektron CMS400.NET


Recent Articles

Calculating the Difference Between Two Dates Using PHP
Suppose you want to know the age of a person given her birth date. Let's say her birth date is "09-23-1969". Although in this case you might say that we don't need a program to compute the age, but assume there...

Resizable Textarea Extension for Firefox 1.5
The Resizable Textarea extension for Firefox has been incredibly useful for blogs and on-line forms (as well as forums).

Towards Next Generation URLs
For many years we have heard about the impending death of URLs that are difficult to type, remember and preserve.

12.14.05


ColdFusion: Quicker Scripting, At A Price

By Lee Asher

ColdFusion is a rapid application development language for the web, developed by Macromedia.

It's not free, but many people say that it's more important to them to have the development speed that ColdFusion offers - and you can download a free 'developer version' to experiment with before you commit to anything.

No Need for a Test Server

One of the nicer features of ColdFusion is that it comes with a whole application to help you write it the language. While it can be used with Apache or IIS once you're finished, this application effectively acts as your test server while you're writing your scripts, saving you quite a lot of trouble.

As a downside, though, ColdFusion on the web can sometimes be unreliable and slow, mainly because it runs on a Java framework. Its Java support does, however, make it capable of running on many more operating systems than it otherwise would be - for most purposes, having written a page in ColdFusion is as good as having used Java for it, but much less difficult. Since ColdFusion also uses the ODBC (Open Database Connectivity) standard instead of tying itself down to one database, this gives you a lot of choices.

FREE 30-Day Trial of VMTN Subscription Products

In other words, you're sacrificing some of your website's speed in exchange for more choices and compatibility, and quicker development time.

Easy to Learn

One of the things that makes ColdFusion easy to learn is that it isn't all that different from normal HTML: it acts more like a set of extension tags for HTML than like trying to get a programming language to do things and output HTML afterwards. This is because it was designed from scratch for the web - it's not just a normal language trying to be web-compatible.

For example, here's some code that queries a database and writes the fields it finds to the page:

<cfquery name="result" datasource="odbc_connection" username="myuser" password="mypass"> SELECT * FROM table WHERE id = '1' </cfquery>

<cfoutput query="result"> #result.field_from_query# </cfoutput>

Download a Free Trial of Ektron CMS400.NET

You can see that the 'cfquery' tag is used for sending queries to a database, while the 'cfoutput' tag adds text to the HTML. The text surrounded by hashes (#) is a variable. How are variables defined, you wonder? Like this:

<cfset var = "text of variable">

Once you get used to thinking in tags, it starts to feel quite natural: ColdFusion just feels more HTML-like than other languages do.

Despite its simplicity, though, ColdFusion is considered to compete more with languages like JSP and ASP.Net than it does with PHP.

CFScript

Unfortunately, trying to write dynamic web pages with nothing but tags can start to feel restrictive quite quickly, especially if you want to do something complicated - you end up with a hard-to-read mass of tags, reminiscent of trying to do a page's layout with tables. To solve this problem, Macromedia introduced CFScript, a Javascript-like language that you can use by putting it between <cfscript> tags. If you're already a programmer, you may find CFScript easier to work with than 'real' ColdFusion code.

Java

One ColdFusion strength is that it doesn't just run on top of Java - it can also call Java classes using its createObject function and use any methods it needs to, with the results being put in ColdFusion variables. This will be very useful to you if you have existing Java code or know of Java code that you'd like to make use of - you'll get access to all the J2EE libraries as well as ColdFusion's own. It's this fact that has led Macromedia to market ColdFusion as "a scripting layer for J2EE". Of course, whether or not that excites you is a matter of personal preferences.

Integration with Other Macromedia Products

If you already design your pages in Dreamweaver, it can be good to do the scripting in ColdFusion, as you get the advantages that integration between the two gives you. You can insert ColdFusion code into Dreamweaver files quickly and easily, and you can even use its built-in editor to edit the code however you want without messing up Dreamweaver's WYSIWYG view.

ColdFusion also integrates surprisingly well with Macromedia's flagship product, Flash - but don't let that lead you into developing nothing but ColdFusion-scripted websites with fancy Flash interfaces, whatever you do.


About the Author:
Original Source: Articles-Galore.com

Information supplied and written by Lee Asher of Eclipse Domain Services Domain Names, Hosting, Traffic and Email Solutions.

About DevNewz
DevNewz has assembled experts around the world to deliver helpful advice to application developers. Our in-house news staff focuses on keeping you updated with the latest new software and trends in application development. DevNewz provides Knowlege For Application Developers.

DevNewz is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagementNews.com




-- DevNewz is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2005 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

Knowlege For Application Developers DevNewz News Archives About Us Feedback DevNewz Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact