Ciao a tutti.
Ho un problema con jQuery & Ajax, in sostanza la pagina processata lato server chiamata default.asp tramite l'oggetto .load di jQuery non esegue il download del file...
Nella ricerca mi è sembrato di capire che devo usare un iFrame... ma come? dove?
Nella pagina jQuery & Ajax o nella pagina ASP?
Grazie.
codice:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#contentArea").load("default.asp?id=100", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
$("#error").html(msg + xhr.status + " " + xhr.statusText);
}
$("#loading").remove();
});
});
</script>
</head>
<body>
<div id="loading">
[img]ajax-loader.gif[/img]</p>
</div>
<div id="contentArea"> </div>
</body>