Sarà come dici tu ma finché scriverai questo codice qui:
codice:
<html><--- :spy:
<head><--- :spy:
<title>index</title>
<Script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"></Script>
</head>
<script>
$(document).ready(function() {
$("#HyperLink").click(function(){
$("#result0").load("form.html");
});
});
</script>
<body><--- :spy:
<div id='result0'>
<html><--- :spy:
<head><--- :spy:
<title>navigbar</title>
<script>
function GetXMLHttp() {
if(navigator.appName == "Microsoft Internet Explorer") {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
xmlHttp = new XMLHttpRequest();
}
return xmlHttp;
}
var xmlRequest = GetXMLHttp();
function aprePag(valore){
var url = valore;
xmlRequest.open("GET",url,true);
xmlRequest.onreadystatechange = cambiaStato;
xmlRequest.send(null);
if (xmlRequest.readyState == 1) {
document.getElementById("result0").innerHTML = "caricando...";
}
return url;
}
function cambiaStato(){
if (xmlRequest.readyState == 4){
document.getElementById("result0").innerHTML = xmlRequest.responseText;
}
}
</script>
</head>
<body><--- :spy:
<div id='result1'>
<h3>clicca form</h3>
</div>
</body>
</html>
</div>
</body>
</html>javascript:void(0);
secondo me avrai sempre grossi problemi