Getting Started

Tag Reference

Object Reference
asHiddenFields
asURLString
asXML
collectFields
collectFieldsFrom..
copy
dump
empty
erase
loadFromCookie
storeToCookie

Case Study

Download

Mailing List

Other Links

Object::asURLString

Summary:

This method will build a URL-safe string from all attributes within the object. Useful for passing object values from one HTML/CFM page to another. Using the Person class as an example, this method will generate a string such as:

   firstName=Frank&lastName=Furter&phone=3055551212
Parameters:

Parameter Description Default Required
include Comma-separated list of attributes to include. If not list is provided, then all attributes are included.   No
exclude Comma-separated list of attributes to exclude. If not list is provided, then all attributes are included.   No
url Existing URL or additional URL data to append to the generated URL.   No

Returns:
Name Value
asURLString.url String value containing the URL generated

Example:
<!--- this example includes all fields --->
<cf_cfoInvokeMethod method="aPerson.asURLString">

<!--- this example includes only firstName and LastName --->
<cf_cfoInvokeMethod method="aPerson.asURLString" include="firstName,lastName">

<!--- this example includes all except dateOfBirth --->
<cf_cfoInvokeMethod method="aPerson.asURLString" exclude="dateOfBirth">










SourceForge.net Logo