The JS file in lib is client side Javascript, while the "javascript" in the on-valid-changed is server side. See http://markmail.org/search/?q=hippocms-dev+dynamic+dropdown#query:hippocms-dev%20dynamic%20dropdown+page:1+mid:ieg6xuc3bmh6wp5b+state:results Jasha
________________________________ Van: [email protected] namens Srikanth.NT Verzonden: wo 28-1-2009 12:15 Aan: [email protected] Onderwerp: [HippoCMS-dev] Access javascript in business logic 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 <http://hippocms-dev.markmail.org/> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
<<winmail.dat>>
******************************************** 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
