Tutorials
Community
Forums
Careers
EasyCFM.COM ColdFusion Forums
/
Work Showcase!
/ Simple Custom Tag
Login
Join
Search
Reply to Discussion
|
New Discussion
<<
previous
||
next
>>
Posted By
Discussion Topic: Simple Custom Tag
Magian
10-15-2004 @ 8:19 AM
Reply
Edit
Profile
Send P.M.
Powered by
Gravatar
New Member
Posts: 16
Joined: Mar 2004
Hi,
This is my first CF custom tag. It's very simple but
useful. It prints an HTML table from a custom query.
You can pass formating attributes to the table.
Here is example of what the result is:
cf_printquerytable
The tag takes the following attributes:
Datasource *
Tablename *
ColumnNames *
ColumnHeaders *
Caption *
Border
HeaderBgColor
Row1Color
Row2Color
Width
CellPadding
CellSpacing
* - required attributes
Download
Here
Just extract it in your customtags folder. Here is
the example of usage:
<cf_printquerytable datasource="dsn"
tablename="table"
columnnames="column1, column2, column3"
columnheaders="Colomn Header1, Column
Header2, Column Header3"
caption="My Data"
border="0"
Width="800"
Row1Color="ededed"
Row2Color="ffffff"
HeaderBgColor="cccccc"
CellSpacing="2"
CellPadding="3">
I've uploaded it to Macromedia Exchange on Open
Source License.
megan
10-15-2004 @ 9:46 AM
Reply
Edit
Profile
Send P.M.
Powered by
Gravatar
Moderator
Posts: 2398
Joined: Jan 2003
Cool! thanks :D ~megan
Estne tibi forte magna feles fulva et planissima?
zilinx
10-15-2004 @ 10:58 PM
Reply
Edit
Profile
Send P.M.
Powered by
Gravatar
Junior Member
Posts: 91
Joined: Dec 2002
right on!
the more open source the merrier.
Nate Nielsen
http://www.webclarity.com
See my new zip & unzip utility component there! (free & open source)
Coding Help!
-- Coding Help!
-- Application Beta Testing Area!
-- Good Coding Tips!
Other Adobe Products
-- Dreamweaver
-- Flash Development
-- Flex Development
Database Help
-- MS Access Related Issues
-- MS SQL Server Related Issues
-- MySQL Related Issues
-- Oracle Related Issues
-- Other
ColdFusion Server/Applications
-- ColdFusion Server
-- ColdFusion Applications
General Area
-- General Discussion
-- New Users Area!
-- Feedback Area
-- Site Stuff!
-- Polls
Code Conversion Help
-- ASP to CFML
-- CGI to CFML
-- .NET to CFML
-- JSP to CFML
-- PHP to CFML
ColdFusion Hosting
-- ColdFusion Hosting
EasyCFM.COM Tutorials Area
-- Tutorial Requests!
-- Bug Reports!
Free ColdFusion Hosting
-- Hosting Support
-- Requests
Developers Work Showcase!
-- Work Showcase!
ColdFusion Jobs / ColdFusion Careers
-- ColdFusion Related Jobs
Administrators & Moderators
-- Administrators & Moderators Only
--- Log In
--- Register
--- Search