You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "info@agentur-m3.de" <in...@agentur-m3.de> on 2014/11/12 11:16:59 UTC
ofbizUrl
Hi all,
here is a javascript-code from my ajax-Test-component
(within a freemarker-file):
<script language="JavaScript" type="text/javascript">
function getAjaxValues() {
var requestUrl = '<@o...@ofbizUrl>';
alert("requestUrl:"+ requestUrl);
}
</script>
The alert-message shows this:
requestUrl:http://localhost:8080/ajaxtest/control/ajaxtest;jsessionid=AAF4338719D51623AE7F2F99B468997D.jvm1
As a consequence of this an ajax call with this does find
the correct page (the corresponding request-map will not be called
with the jsessionid... appendix to the requestUrl).
Is there anything wrong with my @ofbizUrl - call?
I copied it from freemarker code in the accounting module.
Thank you for answers!
Ralf