boionfire81 Posted July 27, 2016 Posted July 27, 2016 (edited) code removed Edited November 24, 2016 by boionfire81 Quote
TheMasterGeneral Posted July 28, 2016 Posted July 28, 2016 Include the Javascript in the endpage(); function in the header file. Just make sure you end each file with $h->endpage(); Quote
G7470 Posted July 28, 2016 Posted July 28, 2016 Well, this example could demonstrate the need for $h->endpage(), as well as including a footer for your site, which was its initial intention. However, to answer your question, the function doesn't have to be in the header. It was probably put in the header in the first place to remove any extra clutter in the globals file, as this function is called on every page. ~G7470 Quote
Coly010 Posted July 28, 2016 Posted July 28, 2016 The JS won't run in the php. They both get executed at different times. This is why I hate procedural php so much. It confuses server logic with client side code... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.