Welcome Guest, Not a member yet? Register   Sign In
Insering javascript into html head from library
#1

[eluser]nuwanda[/eluser]
If I want to make sure that some javascript is loaded every time a class is, what's the best way?

I've thought of providing a method that could be used like:

Code:
$this->someclass->inject_script();

Of course that would rely on the user making sure they used it correctly, which is no big deal but is there a way for my class to achieve the script injection without the use of the above method?


Messages In This Thread
Insering javascript into html head from library - by El Forum - 10-09-2010, 11:38 PM
Insering javascript into html head from library - by El Forum - 10-10-2010, 12:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB