UrbanDweller Posted October 6, 2011 Share Posted October 6, 2011 Hey all, Ive been trying to load external html and javascript to multilple pages, the html/php loads fine but I cant seem to get the javascript running. Ive tried: <script type="text/javascript" src="js.js"></script> (tried with html php and js) and multiple other option any ideas? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/248525-include-javascript-in-many-php-files/ Share on other sites More sharing options...
trq Posted October 6, 2011 Share Posted October 6, 2011 The above will work fine as long as js.js is in the same directory as the page being viewed. What exactly is the issue? Quote Link to comment https://forums.phpfreaks.com/topic/248525-include-javascript-in-many-php-files/#findComment-1276316 Share on other sites More sharing options...
UrbanDweller Posted October 6, 2011 Author Share Posted October 6, 2011 Well its for a drop down menu with the hmtl/css for it in another external html page could this be conflicting it? Quote Link to comment https://forums.phpfreaks.com/topic/248525-include-javascript-in-many-php-files/#findComment-1276322 Share on other sites More sharing options...
trq Posted October 6, 2011 Share Posted October 6, 2011 I'm not sure, you still haven't told us what is happening. Quote Link to comment https://forums.phpfreaks.com/topic/248525-include-javascript-in-many-php-files/#findComment-1276345 Share on other sites More sharing options...
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.