I have two JS files: mail.js and prototype.js
prototype.js is from Lightbox plug-in and mail.js is validator and ajax for the contact us page.
the problem is mail.js won’t work when prototype.js is load before or after it.
However I want to remove the prototype.js for contact page only where there’s no need for lightbox.
I’m using php include as header. Is there a way to set the prototype.js as unload for the contact page only?
Thanks
In the header inlude, can’t you just do an
ifstatement like so:Obviously replace the paths with the correct path.
PHP_SELFis relative to domain, so if its in/pages/then$_SERVER['PHP_SELF']would equal/pages/contact_us.phpCorrect answer was