tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammad Gelbana <m.gelb...@gmail.com>
Subject Re: Javascript access to Tapestry Image Asset
Date Thu, 20 Oct 2011 09:31:58 GMT
Is it possible to find out that path, set it to a JS variable using
JavascriptSupport, and use that variable in ur js files ?

On Thu, Oct 20, 2011 at 10:51 AM, Ray <fortycoats@gmail.com> wrote:

> Hi all,
>
> I need to be able to access an image from javascript using the following
> call:
>
> jQuery(button).attr("style", "background-image : url(images/button.png);");
>
> The problem is that this will not work for me in the future as I have a
> requirement to change the URL based on locale.
>
> So what I was hoping that perhaps I could use a Tapestry Asset with a fixed
> path and access it from javacript.
>
> Is this possible? Any assistance would be greatly appreciated.
>
>
> Cheers,
>
> Ray.
>



-- 
*Regards,*
*Muhammad Gelbana
Java Developer*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message