Solved

Can a Flash-based CFGRID render basic HTML in the cells?

Posted on 2010-09-08
4
383 Views
Last Modified: 2012-08-14
Hello,

Is there a way to putput basic HTML that has been stored in a database (i.e. <del>test</del>) and have it display properly as a strike through in a cell, in a Flash based CFGRID??

Thank you very much for you help in advance!!!!!!
0
Comment
Question by:stracqan
4 Comments
 
LVL 9

Accepted Solution

by:
Shaun McNicholas earned 500 total points
ID: 33662295
Flash supports most basic html tags the only caveat is that you have to escape all quotation marks with a backslash character.
Here's a pretty good write up about it
http://www.flashvalley.com/fv_tutorials/loading_HTML_in_a_dynamic_text_field/

So you would just need to do a <cfset your_query.your_variable = ReReplace(your_query.your_variable,'"','\"',"all")>
That's your_query.your_variable = ReReplace(your_query.your_variable with [single quote][double quote][single quote],[single quote][backslash][double quote][single quote],[double quote]all[double quote])>

If you need to reference quotes in a replace statement the easiest way is to enclose double quotes inside single quotes and vice versa - or use the regular expressions syntax "\"" - but I've found it easier to understand when you have to go back months from now and change something in your own code - it's easier to use the single quote double quote variation.

ColdFusion outputs things as swf files after creating them from your code references - so anything you can do in a standard flash form you can do inside the cfgrid outputs as long as you code it all properly and consider all the possible output variations.

You can also encode the file in your query statement - but I've found it easier to only do that if absolutely necessary. I'd rather do the conversion in CF myself when it necessary. That way if I want to reference the same query in an html form I do need to create an entirely separate function for that output.
0
 

Author Closing Comment

by:stracqan
ID: 33662538
Absolutely great!!!! Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now