Jump to content

Recommended Posts

Posted

The package fields are loaded via AJAX, so there is no way for it to set javascript into the header. You can, however, set inline javascript by setting HTML on the ModuleFields object you return from that method.

Posted

try blestaSetHeadTag with this code .

$fields->setHtml(" 
   <script type=\"text/javascript\">
    $(document).ready(function() {
     $(this).blestaSetHeadTag(\"script\", {type:\"text/javascript\", src: \"". $this->Html->safe( URL_TO _YOUR_JS_FILE) ."\"});
    });   
   </script>
  ");

i have used in a old project .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...