Qsorb
asked on
Way for coldfusion to control image list inside xml module
I know cf can' t run inside xml but maybe there's another way ...
I purchased an image carousel but the script containing the list of images to run is inside an xml file. My images need to be dynamically obtained from the output of a cfquery, at least 20 images per area. Of course, xml will not run cf tags. So, is there any workaround to get the cfquery to execute so I can run the cfquery?
I know I can save the output of the query to an .xml file but there are thousands of areas and I'd rather find some dynamic way to do this, something I've not thought about, some way to use coldfusion and xml together. I contacted the author and it appears the image names and paths need to be in the xml file.
I don't know Flash, or xml so have to rely on basic options I can change in the xml file. I mention this so you don't suggest a different program which requires any kind of flash knowledge.
Reference to the image carousel: http://www.flashcomponents.net/component/3d_image_carousel.html
I purchased an image carousel but the script containing the list of images to run is inside an xml file. My images need to be dynamically obtained from the output of a cfquery, at least 20 images per area. Of course, xml will not run cf tags. So, is there any workaround to get the cfquery to execute so I can run the cfquery?
I know I can save the output of the query to an .xml file but there are thousands of areas and I'd rather find some dynamic way to do this, something I've not thought about, some way to use coldfusion and xml together. I contacted the author and it appears the image names and paths need to be in the xml file.
I don't know Flash, or xml so have to rely on basic options I can change in the xml file. I mention this so you don't suggest a different program which requires any kind of flash knowledge.
Reference to the image carousel: http://www.flashcomponents.net/component/3d_image_carousel.html
<cfoutput query="NewsInfo">
<?xml version="1.0" encoding="iso-8859-1"?>
<menu Radius="820" tilt="190" rotationSpeed="500" window="_blank">
<MenuItems Src="/3dc/images/#NewsInfo.image#" />
</menu>
</cfoutput>
ASKER
> Use CFXML
Don't know what you mean. What is CFXML? Looks like I need some kind of example so if you'd give one I'd appreciate it and might begin to understand.
The areas are always changing, minute by minute. And there are thousands of area.
Don't know what you mean. What is CFXML? Looks like I need some kind of example so if you'd give one I'd appreciate it and might begin to understand.
The areas are always changing, minute by minute. And there are thousands of area.
Hello Qsorb,
you are telling many words to say Nothing.
Give one simple example for one example area and one example cfquery and one example XML output that you need and it will be not a problem at all for any expert here to show you how that example is written syntactically correct.
So please no details what you know and dont know but one explicit example what your query is so far and what XML is needed by your component.
you are telling many words to say Nothing.
Give one simple example for one example area and one example cfquery and one example XML output that you need and it will be not a problem at all for any expert here to show you how that example is written syntactically correct.
So please no details what you know and dont know but one explicit example what your query is so far and what XML is needed by your component.
ASKER
Zvonko:
> you are telling many words to say Nothing
>So please no details what you know and dont know
I'm getting the same thing here from you, plus a rude atitude I don't appreciate or need. And I don't need to be told what to say or not.
Just look at my code snippet I left in my original question. You did look at it didn't you? It shows exactly what I need for the xml document and an example cfquery.
> you are telling many words to say Nothing
>So please no details what you know and dont know
I'm getting the same thing here from you, plus a rude atitude I don't appreciate or need. And I don't need to be told what to say or not.
Just look at my code snippet I left in my original question. You did look at it didn't you? It shows exactly what I need for the xml document and an example cfquery.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That helps me on the way, something to work with, and thanks.
Is the query likely to change at runtime, or is the list of areas fairly static? you could setup a scheduled task to create all the xml files in one go, say overnight or once a week.