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) ?
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.
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
Question
jkmorayur
How can i include .js file or javascript inside the function getClientAddFields($package, $vars = null) ?
2 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now