943,910 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 2951
  • ColdFusion RSS
Jun 29th, 2009
0

cfsavecontent

Expand Post »
I am using a Flash file that calls gallery.xml
its hardcoded into the flash and i cant edit the flash file.

the code in my page looks like

Coldfusion Syntax (Toggle Plain Text)
  1.  
  2. <cfsavecontent variable="gallery">
  3. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  4. <gallery frameColor="0xFFFFFF" frameWidth="15" imagePadding="20" displayTime="6" enableRightClickOpen="true">
  5. <image>
  6. <url>http://www.modelproductions.com/proimages/avatar9.jpg</url>
  7. <caption><![CDATA[<font size="50">Example Gallery</font><br>An example large format <u><a href="http://www.airtightinteractive.com/projects/autoviewer">AutoViewer</a></u> gallery.]]></caption>
  8. <width>269</width>
  9. <height>317</height>
  10. </image>
  11. <image>
  12. <url>http://www.modelproductions.com/proimages/avatar9.jpg</url>
  13. <caption>Pellentesque turpis leo, dignissim ac, vestibulum quis, hendrerit quis, enim.</caption>
  14. <width>465</width>
  15. <height>700</height>
  16. </image>
  17. <image>
  18. <url>http://www.modelproductions.com/proimages/avatar9.jpg</url>
  19. <caption><![CDATA[Captions can be HTML formatted. Supported tags are <b>bold</b>, <u>underline</u>, <i>italics</i>, <u><a href="http://www.google.com" target="_blank">hyperlinks</a></u>, linebreaks<br> and <font color="#ffff00" size="60">font tags</font>.]]></caption>
  20. <width>700</width>
  21. <height>465</height>
  22. </image>
  23. </gallery>
  24. </cfsavecontent>


html Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  7. </head>
  8.  
  9. <body>
  10. <script type="text/javascript">
  11. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','400','src','autoviewer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','autoviewer' ); //end AC code
  12. </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="400">
  13. <param name="movie" value="autoviewer.swf" />
  14. <param name="quality" value="high" />
  15. <embed src="autoviewer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="400"></embed>
  16. </object></noscript>
  17. </body>
  18. </html>

but its not working
what am i doing wrong
Last edited by peter_budo; Jun 30th, 2009 at 1:57 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
moiseszaragoza is offline Offline
15 posts
since Sep 2007
Jun 29th, 2009
0

Re: cfsavecontent

What are you tring to accomplish? what calls the gallery variable to display it?
Reputation Points: 12
Solved Threads: 36
Posting Pro in Training
freshfitz is offline Offline
436 posts
since Sep 2008
Jul 9th, 2009
0

Re: cfsavecontent

Since the <object> tag is only calling the Flash file, that is all fine. Your problem is likely either:
  1. Your coldfusion code is in the file named "gallery.xml" in which case the colfusion processor is not going to parse it. or...
  1. Your CF code is in a .cfm file that is not being read by the flash file.
If your CF code were in "gallery.cfm", you could take the contents of your variable (the xml) and write it to a file named "gallery.xml". Try adding this to the end of your coldfusion code:
coldfusion Syntax (Toggle Plain Text)
  1. <cffile action = "write" file = "c:\pathToFile\gallery.xml" output = VARIABLES.gallery>
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gklandes is offline Offline
10 posts
since Jul 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: cfdocument issue
Next Thread in ColdFusion Forum Timeline: Loading ColdSpring and ModelGlue configurations dynamically





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC