Skip to main content
Participant
August 27, 2007
Question

How to publish a flash banner without generating errors?

  • August 27, 2007
  • 1 reply
  • 215 views
I need to upload a flash banner every time a condition is verified. But I have troubles from the HTML code I use to call the flash banner.

<CFIF #file# IS "fox">

<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="468" height="60" vspace="0" hspace="0"><param name=movie value=" http://www.site.com/banners/#address#"><param name=quality value=high><embed src=" http://www.site.com/banners/#address#" quality=high pluginspage=" http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60" vspace="0" hspace="0"></embed></object></div>


</CFIF>

The error i receive is:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Just in time compilation error
Invalid parser construct found on line 30 at position 220 ColdFusion was looking at the following text:
=
Invalid expression format. The usual cause is an error in the expression structure.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


This error is generated by the HTML code inside the CFIF tags because if I change the code between the conditional tags CFIF, it works fine.

Exemple:

<CFIF #file# IS "fox">

<div>
Now it works correctly!
</div>


</CFIF>


Please could you suggest me how to resolve this trouble?

Than You,

rikros
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 27, 2007
    > codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=5,0,0,0"

    # is a reserved CF symbol. If your template has a non-CF-related # symbol
    in it, you need to escape it (##).

    http://www.adobe.com/go/tn_17016

    --
    Adam