In order to get the valid URL for an asset, one has to call
String imageURL = getMyAsset().buildURL(cycle);
so, he would need to pass the cycle object to the script as well.
Or, he could do all this in java code, then set the url string in a field of his page class and then (in the .html):


<span jwcid="@Script" script="..." asset1Url="ognl: asset1Url" asset2="ognl: asset2Url"/>


Kent Tong wrote:

Todd O'Bryan <toddobryan <at> mac.com> writes:



I'm more than willing to code assets for all the images, other scripts, etc., but how do I reference those assets from inside the JavaScript components?



I may not be understanding your question, why not pass the assets as symbols to the Script component like:

<span jwcid="@Script" script="..." asset1="ognl: assets.foo" asset2="ognl: assets.bar"/>




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to