Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a header, a home file and a footer file. in the home file i use "include_once" for both the header and the footer and they both appear normally when i view the home file. the issue is that files that are being linked in the footer are not being inherited by the home file. for example i have a link in the footer file for the main.js file. when i right a jquery function asking for and alert to show when an tag is click the funtion will not run but if i copy the jquery code in the footer file between tag it will work. Why would the inheritance not extend from the footer to the home php file.

<b>What I have tried:</b>

moving the code the the home file.
Posted
Comments
Mohibur Rashid 17-Jun-18 2:18am    
Have you checcked your webbrowser console?
Kornfeld Eliyahu Peter 17-Jun-18 7:42am    
A code sample (a simple code sample) may help...
W Balboos, GHB 18-Jun-18 9:33am    
Did you check the page source to see if your script even got there, and if so, that the relative paths are correct?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900