jquery.noConflict doesnt work for some reason when loading from an exernal file using php includes? aslo noticed that maybe some scripts arent fully loading as well?
mainfile.php
<script type="text/javascript" src="js.jquery/jquery.1.8.2.min.js"></script>
<?
include 'extrn_file.php';
?>
// end
//extrn_file.php
<script type="text/javascript" src="js.jquery/jquery.1.3.2.min.js"></script>
<script> $jq132 = jQuery.noConflict(true); </script>
<script type="text/javascript" src="js/animate.js"></script>
<script type="text/javascript">
execute_skills_doc();
function execute_skills_doc(){
$jq132(document).ready(function() {
alert("yes");//nothing happens
});
}
//end
If you want to use multiple version of
jQueryon the same page you have tonoConflict()the first before you load the second. Since your PHP include just pulls the contents of the two files together, you are ending up with:What you really want would be:
At this point you will have version
1.8.2loaded into the$jq182andjQueryvariables and1.3.2loaded into the$jq132variable. The code above will alert the variable used and version of each. You can see an example using the Google API hosted libraries here: http://jsfiddle.net/2kX3E/