Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

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

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
stracqan
Asked:
stracqan
1 Solution
 
Shaun McNicholasSenior Marketing TechnologistCommented:
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
 
stracqanAuthor Commented:
Absolutely great!!!! Thanks!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now