Hey people,
                I am having some problems getting the results I want. First off I am 
sure
I am going the long way around. What I am doing is this, I am loading
variables into flash and displaying them in a textbox with dynamic text and
html enabled. Basically I am having coldfusion grab the data from the db and
format it (roughly, only some html 1.0 tags work). The thing is that I need
that text string to be contained in a single variable so that flash can grab
it and display it. So, I am using cfhttp to access the template and bring it
all back to flash in one variable. Like so...


This file.........
---------------------------------------
---------------------------------------

<CFHTTP URL="http://216.232.243.211/cflash/circuits/news/dspNewsView.cfm"
    METHOD="get"
    RESOLVEURL="Yes">
</CFHTTP>

<cfset news = #CFHTTP.FileContent#>

<cf_StripWhitespace>
<cfoutput>&news=#news#&status=1</cfoutput>
</cf_StripWhitespace>

-----------------------------------------
-----------------------------------------

grabs this file...

----------------------------------------
----------------------------------------

<CFQUERY NAME="viewNewsItems" DATASOURCE="#request.myDSN#">
        SELECT       newsdate, newsheadline, newsbody
        FROM         news
        order by newsdate DESC
</CFQUERY>

<CFOUTPUT QUERY= "viewNewsItems" group="newsDate">

        <CFSET newsdate = #newsDate#>

        <br>
        <font color="##FFCC00"><b>#dateFormat(CreateODBCdate(newsDate), "mmmm d,
yyyy")#</b></font>
        <br><br>

        <CFOUTPUT>
                <font color="##999999"><b>#newsHeadline#</b></font>
                <br>
                #ParagraphFormat("#newsBody#")#
                <br><br>
        </cfoutput>

</CFOUTPUT>

-----------------------------------------
----------------------------------------

and then Flash will display it all nice and pretty in the dynamic text box.
The first thing you'll notice is that this violates fusebox as I have the
query in the dsp file. I couldn't get it to work otherwise while using
<cfhttp>. What I would like to do is turf the <cfhttp> and just have the dsp
file somehow dropped into a container variable that I could dump into flash.
This would allow me to conform to fusebox standards as well as lose the
overhead that using <cfhttp> incurrs.

Any thoughts or viewpoints on how you would accomplish this? I need fresh
ideas, this one sucks :)



Shane Johnson
www.strangetactics.com
[EMAIL PROTECTED]
Coldfusion developer
Fusebox compliant (XFB)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to