home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / ljustify.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  619 b   |  28 lines

  1. <!--- This example shows how to use LJustify --->
  2. <CFPARAM name="jstring" default="">
  3.  
  4. <CFIF IsDefined("form.justifyString")>
  5.     <CFSET jstring = Ljustify("#form.justifyString#", 35)>
  6. </CFIF>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>
  10. LJustify Example
  11. </TITLE>
  12. </HEAD>
  13.  
  14. <BODY bgcolor=silver>
  15. <H3>LJustify Function</H3>
  16.  
  17. <P>Enter a string, and it will be left justified within
  18. the sample field
  19.  
  20. <FORM ACTION="ljustify.cfm" METHOD="POST">
  21. <P><INPUT TYPE="Text" VALUE="<CFOUTPUT>#jString#</CFOUTPUT>" SIZE=35 NAME="justifyString">
  22.  
  23. <P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">
  24. </FORM>
  25.  
  26. </BODY>
  27. </HTML>       
  28.