Created
December 29, 2012 11:56
-
-
Save adamcameron/4406374 to your computer and use it in GitHub Desktop.
Code demonstrating slashes in <cfgrid> data is fine
This file contains 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
<cfscript> | |
colours = deserializeJson('{"COLUMNS":["ID","MAORI","ENGLISH"],"DATA":[[1,"mangu","black"],[2,"whero","red"],[3,"ma","white"]]}', false); | |
// add a row with a slash | |
queryAddRow(colours); | |
querySetCell(colours, "id", 4); | |
querySetCell(colours, "maori", "kiko\rangi"); | |
querySetCell(colours, "english", "bl\ue"); | |
</cfscript> | |
<cfform method="post" action="#CGI.script_name#" format="html"> | |
<cfgrid name="grid" query="colours"></cfgrid><br /> | |
<input type="submit" name="btnSubmit" value="Submit" /> | |
</cfform> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment