Spry HTML Data Sets

Users of Adobe's popular Dreamweaver CS4 website development software have a powerful tool at their disposal that could dramatically ease the programming burdens of certain data-driven websites. Known as a Spry HTML data set, the use of this technology allows standard HTML tables or other structured markup to be used as a data source.

"HTML data sets work the same way as XML data sets, except that [they] can leverage the millions of tables that already exist," stated an Adobe spokesperson. "Since we flatten XML into a table structure, the HTML data set was a natural extension of the Spry Framework."

According to Adobe, the Spry framework was designed in such a way that the data acquisition methods are independent of content contained within the <body> tag.

"This means that the Spry region attributes don't care where the data comes from, be it XML, JSON or HTML," the Adobe tech added. "The universal familiarity with HTML tables makes the learning curve of developing a Spry data source very easy."

Functionally, the HTML data set allows standard HTML tables to be used as data sources, as long as the table has an ID attribute to identify the data source. To use a table as a Spry data source, you must call two JavaScript files: SpryData.js and SpryHTMLDataSet.js, and then below those script links, build a data set constructor such as var yourDataSetName = Spry.Data.HTMLDataSet("path to file with table", "id of table");

This is all that's needed to create a data set, but there are additional options that dramatically open up the possibilities for programmers.

In use, the data values pulled from an HTML table include the contents of each <td>, such as text and markup. Headers are used to define the column names, with a default assumption that the first row of the table is column names to be used as data reference names within Spry regions. If the first row is actually data, then this can be specified and changed. There is also the option of using the first column instead of the first row to provide column names.

Adobe recommends that designers use straight tables without rowspans or colspans as data sources, since these elements merge cells together and can lead to data inconsistency.

The power of the Spry HTML Data Set goes far beyond its use of standard tables as data sources, however, to include the ability to use CSS to identify parts of a web page to be used as data, or indeed, to use data pulled from any markup element on the page.

The creative as well as time saving possibilities of this technology — especially for users wanting to upgrade legacy designs that rely on static HTML tables — make Spry HTML Data Sets a handy tool worth investigating more closely. Try it for yourself and see if it eases your development chores. You can learn more by visiting Adobe Labs.

Related:  

Copyright © 2024 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

To Cloud or Not to Cloud, That Is the Question

Let’s be honest. It just sounds way cooler to say your business is “in the cloud,” right? Buzzwords make everything sound chic and relevant. In fact, someone uninformed might even assume that any hosting that is not in the cloud is inferior. So what’s the truth?

Brad Mitchell ·
opinion

Upcoming Visa Price Changes to Registration, Transaction Fees

Visa is updating its fee structure. Effective April 1, both the card brand’s initial nonrefundable application fee and annual renewal fee will increase from $500 to $950. Visa is also introducing a fee of 10 cents for each transaction, and 10 basis points — 0.1% — on the payment volume of certain merchant accounts.

Jonathan Corona ·
opinion

Unpacking the New Digital Services Act

Do you hear the word “regulation” and get nervous? When it comes to the EU’s Digital Services Act (DSA), you shouldn’t worry. If you’re complying with the most up-to-date card brand regulations, you can breathe a sigh of relief.

Cathy Beardsley ·
opinion

The Perils of Relying on ChatGPT for Legal Advice

It surprised me how many people admitted that they had used ChatGPT or similar services either to draft legal documents or to provide legal advice. “Surprised” is probably an understatement of my reaction to learning about this, as “horrified” more accurately describes my emotional response.

Corey D. Silverstein ·
profile

WIA Profile: Holly Randall

If you’re one of the many regular listeners to Holly Randall’s celebrated podcast, you are already familiar with her charming intro spiel: “Hi, I’m Holly Randall and welcome to my podcast, ‘Holly Randall Unfiltered.’ This is the show about sex, the adult industry and the people in it.

Women In Adult ·
trends

What's Hot Now: Leading Content Players on Trending Genres, Monetization Strategies

The juggernaut creator economy hurtles along, fueled by ever-ascendant demand for personality-based authenticity and intimacy — yet any reports of the demise of the traditional paysite are greatly exaggerated.

Alejandro Freixes ·
opinion

An Ethical Approach to Global Tech Staffing

One thing my 24-year career as a technologist working to support the online adult entertainment industry has taught me about is the power of global staffing. Without a doubt, I have achieved significantly more business success as a direct result of hiring abroad.

Brad Mitchell ·
opinion

Finding the Right Payment Partner

Whenever I am talking with businesses that are just getting started, one particular question comes up a lot: “How do I get a merchant account?” It’s a simple question, but it has a complicated answer.

Jonathan Corona ·
opinion

The Taxman Cometh for Every Business

February may be the month of romance, but it is also a time when we need to think about something that inspires very little love: taxes. April is not far away, and the taxman is always waiting. This year, federal and most state income taxes are due Monday, April 15.

Cathy Beardsley ·
opinion

The Continuous Journey of Legal Compliance in Adult

The adult entertainment industry is teeming with opportunity but is also fraught with challenges, from anticipating consumer behavior to keeping up with technological innovation. The most labyrinthine of all challenges, however, is the world of legal compliance.

Corey D. Silverstein ·
Show More