Hi,
I have a requirement of loading different items in a dropdown based on the
site.
I get the site details from the location of the file.
Say the folder path is /content/site1/some-folder/test.xml,
then I will load the content based on site1.
I tried adding a new js file which gets me the site name from the url.
<libs>
<lib src="/editing/cf2/js/own.js"/>
</libs>
When I call it inside the
<events>
<on-value-changed>
<javascript>
print(getSiteName());
</javascript>
</on-value-changed>
</events>
it is throwing stack trace.
Is there any way of calling the global js functions inside the businesslogic
xml ?
Thanks,
Srikanth
-----
http://ntsrikanth.blogspot.com/
--
View this message in context:
http://www.nabble.com/Access-javascript-in-business-logic-tp21703879p21703879.html
Sent from the Hippo CMS development public mailinglist mailing list archive at
Nabble.com.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html