The context path should automatically be resolved for you. Could you
give just using relative paths a try?
Eelco
On Jan 14, 2008 1:35 PM, Scott Sauyet <[EMAIL PROTECTED]> wrote:
> I'm finally converting from 1.2 to 1.3 and have gotten down to one
> compilation error!
>
> I need to find a way to replace a call to
>
> IApplicationSettings.getContextPath()
>
> I understand that all URLs are now relative, but I'm using this to pass
> to Javascript, something like this:
>
> HTML:
>
> <script...>
> var contextPath = "";
> // ...
> // inside an onLoad:
> img.location = waitImage: contextPath + "/images/wait.gif";
> // ...
> </script>
>
> And in Java:
>
> String contextPath = Application.get().getApplicationSettings()
> .getContextPath();
> add(new StringHeaderContributor("<script type='text/javascript'>"
> + contextPath = '" + contextPath + "/';</script>"));
>
>
> This allows my Javascript to work in the HTML files and in the deployed
> application. Is there a simple substitute for this?
>
> Thanks,
>
> -- Scott
>
> ---------------------------------------------------------------------
> 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]