Created
August 20, 2010 20:15
-
-
Save tpryan/541051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cf_pageWrapper> | |
<cf_uiWidget /> | |
</cf_pageWrapper> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfprocessingdirective suppresswhitespace="yes"> | |
<cfif thisTag.executionMode is "start"> | |
<cfset request.footer= ""/> | |
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<cfelse> | |
<cfoutput>#request.footer#</cfoutput> | |
</body> | |
</html> | |
</cfif> | |
</cfprocessingdirective> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<p>uiWidgetComponent content</p> | |
<button name="test" value="Press me" onclick="buttonhandler()"> | |
Press me | |
</button> | |
<script type="application/javascript"> | |
function buttonhandler(){ | |
alert("Yo"); | |
} | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfprocessingdirective suppresswhitespace="yes"> | |
<cfif thisTag.executionMode is "start"> | |
<p>uiWidgetComponent content</p> | |
<button name="test" value="Press me" onclick="buttonhandler()"> | |
Press me | |
</button> | |
<cfsavecontent variable="jsToInject"> | |
<script type="application/javascript"> | |
function buttonhandler(){ | |
alert("Yo"); | |
} | |
</script> | |
</cfsavecontent> | |
<cfset request.footer = request.footer & jsToInject /> | |
</cfif> | |
</cfprocessingdirective> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment