ragazzi, si sono verificate due cose strane,
se io metto il seguente codice in una jsp oppure in un file di testo con estensione html all'interno pero' della web application funziona alla GRANDE
codice:
file : test_JSON.jsp oppure test_JSON.html
<html>
<script src="/system/modules/it.minambiente.ambiente2010.template/resources/scripts/mappe_js/jquery.js"></script>
<body>
<h1> Chiamata JSON </h1>
<script>
alert('QUERYYYYYY');
var jqxhr = $.getJSON("http://localhost/gaia/test_xml", function() {
alert("success");
})
.error(function() { alert("error"); })
</script>
</body>
</html>
ma se provo a mettere lo stesso file test_JSON sul Desktop ovviamente aggiungendo
script src="jquery.js">
la chiamata non funziona e mi dà $ is not defined
[Interrompi per questo errore] var jqxhr = $.getJSON("http://localhost/gaia/test_xml", function() {
Come è possibile!!!!!!! sto impazzendo!!!!! aiutatemi a chiarirmi le idee....perchè non dovrebbe funzionare?