Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

How to add a js to specific mask #11

Open
dcarreroc opened this issue Jul 10, 2013 · 0 comments
Open

How to add a js to specific mask #11

dcarreroc opened this issue Jul 10, 2013 · 0 comments

Comments

@dcarreroc
Copy link

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 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant