Home
Tools/Projects
ColdFusion
JavaScript
Articles/Tutorials
Creating Dynamic "onload" Events Using JavaScript
Client-to-Server Communication Using DHTML
Executing a DTS Package from CF/ASP/PHP/SQL
Creating a Custom ColdFusion Tag (101)
Structures
Downloads
Custom Tags
qForms JSAPI
Clients
About

cf_html2js v1.0

Description

This tag will take all the content generated between the open/close tag pair and convert it to a JavaScript array. Then it will output it to the browser using converting the array to a string and using the browser's document.write() method.

Use this tag to help generate html that is to be included to the browser via an external .js file or simply inserted via a JavaScript function.

Attributes

output
required: false
default: html2js
description: The variable name to output the results to.

display
required: false
default: true
description: Boolean value indicating whether or not the output should automatically be displayed.

addScriptTag
required: false
default: true
description: Boolean value indicating whether or not the output should contain start and ending <script> tags. If you use this tag between script tags or within an external .js file, set this attribute to false.

stripWhitespace
required: false
default: true
description: Boolean value indicating whether or not the output should should have the miscellanous whitespacing on each line automatically removed.

newLine
required: false
default: #chr(13)##chr(10)#
description: String value indicating what what the tag should consider the end of a line.

[Download]
[< Back]

Copyright © 2017, PengoWorks.com. All Rights Reserved.