I, aşağıdaki yapıya sahiptir:
-uploadpage.html
-index.php
-resources
-jquery-1.4.2.min.js
Benim index.php, ben bu kod aracılığıyla içeriği daha sonra çıkış uploadpage.html olsun:
$output = file_get_contents("uploadpage.html");
echo $output;
Benim Upload.html altındaki javascript:
<script type="text/javscript" src="./resources/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(
function() {
callSomething();
}
);
function callSomething() {return true;}
</script>
Ancak bu jQuery js dosyası yüklü değil anlamına gelen "$ tanımlı değil" hatayla sonuçlanır. Herhangi bir fikir?