snails07
05-01-2009, 06:38 AM
I'm not sure where this question belongs as it involves both JavaScript and xml, but here goes...
I have recently purchased a program called '3D Carousel' which is simply a Flash products carousel like the ones seen in Amazon. The carousel is configured via an .xml document, which is loaded (embedded?) into a .html document for viewing.
When the .html page is loaded, the products in the carousel all spin around and you can click on the image(s) to get more info about each particular product.
The makers of the carousel say that JavaScript functions can be called up when an image is clicked. I have a JavaScript file that I would like to bring up when an image is clicked (a different file for each different image). This is one of those 5 star ratings widgets that you often see on blogs etc so that people can rate the product.
So, I guess what I am asking is, is this possible to do from the .xml file?
Here is the code for the carousel where I am supposed to insert the Javascript function, but is a widget still classed as a function? Is it possible to do?
<Image>
<ImagePath><![CDATA[img01.png]]></ImagePath>
<ImageLink><![CDATA[]]></ImageLink>
<ImageLinkTarget><![CDATA[_blank]]></ImageLinkTarget>
<ToolTip><![CDATA[Tooltip]]></ToolTip>
<Content1><![CDATA[Content1 (dynamic)]]></Content1>
<Content2><![CDATA[Content2 (dynamic)]]></Content2>
<JSFunction><![CDATA[]]></JSFunction>
</Image>
Sorry if this is a dumb question, but I am not entirely sure if this is to do with js or xml. I have been searching around for the answer but I'm not really sure what I need to be looking for.
Any nudge in the right direction is appreciated.
Cheers
I have recently purchased a program called '3D Carousel' which is simply a Flash products carousel like the ones seen in Amazon. The carousel is configured via an .xml document, which is loaded (embedded?) into a .html document for viewing.
When the .html page is loaded, the products in the carousel all spin around and you can click on the image(s) to get more info about each particular product.
The makers of the carousel say that JavaScript functions can be called up when an image is clicked. I have a JavaScript file that I would like to bring up when an image is clicked (a different file for each different image). This is one of those 5 star ratings widgets that you often see on blogs etc so that people can rate the product.
So, I guess what I am asking is, is this possible to do from the .xml file?
Here is the code for the carousel where I am supposed to insert the Javascript function, but is a widget still classed as a function? Is it possible to do?
<Image>
<ImagePath><![CDATA[img01.png]]></ImagePath>
<ImageLink><![CDATA[]]></ImageLink>
<ImageLinkTarget><![CDATA[_blank]]></ImageLinkTarget>
<ToolTip><![CDATA[Tooltip]]></ToolTip>
<Content1><![CDATA[Content1 (dynamic)]]></Content1>
<Content2><![CDATA[Content2 (dynamic)]]></Content2>
<JSFunction><![CDATA[]]></JSFunction>
</Image>
Sorry if this is a dumb question, but I am not entirely sure if this is to do with js or xml. I have been searching around for the answer but I'm not really sure what I need to be looking for.
Any nudge in the right direction is appreciated.
Cheers