jkmorayur Posted November 10, 2014 Report Posted November 10, 2014 How can i include .js file or javascript inside the function getClientAddFields($package, $vars = null) ? Quote
0 Michael Posted November 10, 2014 Report Posted November 10, 2014 Include a JS file you can do it with the CSS, JS, Html plugin in the marketplace, as for injecting it into a function not sure how or if you can. Quote
0 ModulesBakery Posted November 10, 2014 Report Posted November 10, 2014 You can do this as follows: $fields = new ModuleFields(); $fields->setHtml("<script type='text/javascript' src='js/yourjsfile.js'></script>"); More info can be found here: http://docs.blesta.com/display/dev/ModuleFields Michael 1 Quote
Question
jkmorayur
How can i include .js file or javascript inside the function getClientAddFields($package, $vars = null) ?
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.