cfsavecontent

Reply

Join Date: Sep 2007
Posts: 15
Reputation: moiseszaragoza is an unknown quantity at this point 
Solved Threads: 0
moiseszaragoza moiseszaragoza is offline Offline
Newbie Poster

cfsavecontent

 
0
  #1
Jun 29th, 2009
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

  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>


  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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 330
Reputation: freshfitz is an unknown quantity at this point 
Solved Threads: 27
freshfitz freshfitz is offline Offline
Posting Whiz

Re: cfsavecontent

 
0
  #2
Jun 29th, 2009
What are you tring to accomplish? what calls the gallery variable to display it?
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 5
Reputation: gklandes is an unknown quantity at this point 
Solved Threads: 0
gklandes gklandes is offline Offline
Newbie Poster

Re: cfsavecontent

 
0
  #3
Jul 9th, 2009
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:
  1. <cffile action = "write" file = "c:\pathToFile\gallery.xml" output = VARIABLES.gallery>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC