Hi,

unfortunately, Javascript is client-side whereas the variables you mention
are processed serverside. If you want to put anything in the context of
javascript (so that you can use it in a function or such), you will have to
add it in the templates as such:



this is of course pseudo code, but by rendering it out during page load, the
variable you define in the body of the html, will be available for the
javascript you define. Whenever you do, however, make sure to wrap your
javascript in a 


$(document ).ready(function() {
// my code

});


function. That way your static javascript file will be processed after the
page has been succesfully loaded...



--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/ofbiz-code-in-java-script-tp4645052p4645054.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to