Solved

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

Posted on 2010-09-08
4
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating Date 4 28
I really need help in my css for such a simple change, but can't find the code to do it 13 53
Compute age Html 2 25
Two decimal 5 26
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

756 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