Web Design Somerset :: Web Design Tutorials
 
 

How can we help you?

 
 

Services by business type

 
 

Latest articles

Blogging Brings Big Benefits!
Everyone is on the blogging scene so it seems nowadays, but why? What benefits is blogging bringing the business owner?…
read more…
Why a Regular Website Review is Vital to Maintain a Competitive Edge
It’s easy to think that once your website’s up and running, that’s it; it will work for you, job done, and you…
read more…
The Changing Face of Marketing
In this digital age, marketing budgets are increasingly being re-focused by high-profile companies towards online…
read more…
Scrutinise your Web Stats and Gain the Competitive Edge
You’ve invested in setting up a good quality website and you are doing the right thing by blogging, publishing…
read more…
Why a Mobile Friendly Website is the Latest Must-Have
It is very likely that you, like countless others, access the internet on your mobile phone on a regular basis. And so…
read more…
Google Panda: How to Avoid a Devastating Downgrade
Some people make it their life’s work to get their website to the top of Google. If that’s you, and you were, up…
read more…
Cookie Laws have Changed – Does your Website Comply?
The latest round of web related legislation changes are all about ‘cookies’ - the small files placed in on a…
read more…
Ready-Made Website Solutions
In any area of business, finding something that is affordable yet effective can be difficult. Websites are no…
read more…
Email Communication Regulations Every Business Must Know
Keeping in touch with customers is a vital part of any promotional campaign and using email marketing has become the…
read more…
How to be seen as an Expert: Online
For most people in business, being recognised as a leading authority and voice in a particular sector is a major goal.…
read more…
Advertising Standards Authority: Be Aware of the Changes to Online Marketing Rules
Changes are afoot to the scope of the remit covered by the Advertising Standards Authority (ASA). These changes affect…
read more…
Things to Consider when Setting up your Website
To gain the edge over competitors, an online presence is an essential step forward. But as with anything in the online…
read more…
Corporate Solutions for Online Demands
Whilst all corporate organisations differ, if they have an online presence then one thing remains the same: the need…
read more…
Bring your Website to Life with Flash Animation
Have you ever visited a website and been blown away by its visual effects? If so, the chances are Flash animation has…
read more…
Protect your Business from Copyright Infringement
Copyright is a complicated area and riddled with misunderstandings, especially in the case of internet copyright where…
read more…
Cheap Website Design; DIY or Favour from a Friend. Why you need to say NO!
Working on a website? If you are going down the DIY route, or a friend who knows a friend has said they’ll do it for…
read more…
The Web Design Process: Explained
Web designers are numerous in amount and most make some sort of claim as to why you should choose their services. From…
read more…
Medium Sized Business Solutions – They do Exist
Do you sometimes feel that your business is stuck between a rock and a hard place? Is your business too large for small…
read more…
The Database and how it benefits the Small Businesses
The shift from performing tasks manually to placing the strain on IT systems in business continues to advance. Whether…
read more…
 

Web Design Tutorials

Category: Dreamweaver tutorials

Go back
 
 

Display xml data in the table using Spry framework

This tutorial explains how to display xml data within html page using Dreamweaver´s Spry widgets.

Demo

Display xml data in the table using Spry framework

First we need to create some simple xml file – for this purpose copy and paste the following to the new file and save it as data.xml:



	
		John Smith
		07779009876
		info@johnsmith.co.uk
	
	
		Mark King
		07098764567
		info@yahoo.co.uk
	
	
		Albert Montgomery
		12245679605
		info@gmail.com
	
 

Create new html page and save it with any name you wish. Open this page and from the menu choose Insert > Spry > Spry XML Data Set (Fig. 01).

Create spry data set in Dreamweaver CS3 image

Fig. 01

In the Spry XML Data Set window browse for our data.xml file and click Get schema button to display the structure of the xml file.

In the Data Set columns section select tel and using Data type dropdown menu assign number data type to it.
From the Sort menu select name and leave Direction as default to display records in Ascending order. Lastly select Distinct on load checkbox to avoid displaying duplicate records and click OK to create a new Data Set (Fig. 02).

Spry data set window in Dreamweaver CS3 image

Fig. 02

Save the file. In the new window click OK to indicate that you will remember to upload supporting files to the server (Fig. 03).

Upload supporting files to the server image

Fig. 03

We are now going to insert behaviour which will display our data from the xml file in the form of table.

From the menu choose Insert > Spry > Spry Table (Fig. 04).

Add Spry table element to the page

Fig. 04

In the Spry Table window select any record you would like to be sorted when you click the header in the table and check Sort column when header is clicked.

If you have any stylesheet defined, you can assign class to the different state of the table header. Lastly check Update detail regions when row is clicked and click OK to add dynamic table to our page (Fig. 05).

Insert Spry table element to the page image

Fig. 05

When you test the page in the browser you should now see data from the xml file being displayed in the table.

Written by Web design tutorials – Sebastian Sulinski

 

Category: Dreamweaver tutorials

Go back
 

All rights reserved © Website Design Company :: Core Media Design Limited 2004 – 2012
Core Media Design Limited is registered in England No 6557241

Back to top
 ;

Explore in further details…

  • Multimedia Design
    Multimedia presentations weave realism and excitement into any project and help to deliver an influential message.
  • Training Sessions
    Do your personnel lack the software skills and knowledge they need to help your business grow and develop?
  • Website Design Company
    An all-embracing web development service where breathtaking website design blends with skilled database and ecommerce...

And other…

 ;