p4a icon indicating copy to clipboard operation
p4a copied to clipboard

How to add a js to specific mask

Open dcarreroc opened this issue 11 years ago • 0 comments

hello, I need to add a jquery plugin for a specific mask in my app, how can i do that? I try this first: class MyApp extends P4A { public function __construct(){ parent::__construct(); $this->addJavascript(P4A_APPLICATION_PATH. "assets/jquery.plugin.js"); } ...... } Not working So I try in my mask: class MyMask extends P4A_Base_Mask{ public function __construct() { parent::__construct(); $p4a = p4a::singleton(); $p4a->addJavascript(P4A_APPLICATION_PATH. "assets/jquery.plugin.js"); } }

Thanks :+1:

dcarreroc avatar Jul 10 '13 23:07 dcarreroc