Solved

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

Posted on 2010-09-08
4
382 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
Comment Utility
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
Comment Utility
Absolutely great!!!! Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

772 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

10 Experts available now in Live!

Get 1:1 Help Now