In my last article we looked at how to sort multidimensional arrays by
creating a second single-dimensional array that is used as a key. The focus
of this article is how to sort multidimensional arrays by creating a query
object that can be sorted in the same way you would an ordered result set
from a database. In truth, this article will demonstrate two methods: one for
ColdFusion 5.0 and a second, far superior method using the tag
introduced with ColdFusion MX.
The first step is to build a small multidimensional array. The example code
below shows daily sales for a fruit stand:
more)
From the first day the Internet was conceived, its primary goal was to allow
people to access information stored on remote computers. Over the last couple
of years, the technology of Web services has evolved not only to enhance
accessing this information, but to share it as well.
Web services are in action everywhere. When you see 20-minute delayed stock
quotes on a Web site, or you track eBay auctions on another, you are most
likely seeing Web services in action. Look a little further and you'll find
Web services that can provide these functions as well as spell checking,
add... (more)
One of the most common requests made by users when they see data displayed on
a Web page is that they want to be able to view the information sorted by
columns. Working with a database makes this request fairly simple; working
with arrays is, or at least was, a problem.
Why use an array? No ColdFusion programmer would volunteer to do such a crazy
thing. In a recent project, where our team was pulling loan information
resultsets from a mainframe repository, I did just that. The loan information
was being stored in a data structure that contained multidimensional arrays
created wi... (more)
From the first day the Internet was conceived, its primary goal was to allow
people to access information stored on remote computers. Over the last couple
of years, the technology of Web services has evolved not only to enhance
accessing this information, but to share it as well.
Web services are in action everywhere. When you see 20-minute delayed stock
quotes on a Web site, or you track eBay auctions on another, you are most
likely seeing Web services in action. Look a little further and you'll find
Web services that can provide these functions as well as spell checking,
addr... (more)
In Part 1 of this two-part article (MXDJ, Vol. 2, issue 3) I showed how to
invoke a Web service for the purpose of validating user input. Part 2 will
delve a little deeper into the ColdFusion MX language structure specifically
designed to handle XML result sets such as those returned from a Web service.
The goal is to consume a Web service that will return headline news articles
for a user-specified topic. When finished you will be able to add a live
user-interactive newsfeed to your Web site.
This article will cover: XmlParse(): Returns an XML Document object XmlRoot
property: ... (more)