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]