Solved

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

Posted on 2010-09-08
4
389 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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 …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

630 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