salve a tutti, vorrei sapere come aggiungere un nuovo record ad un database con ajax e asp, sono alle prime armi con ajax. grazie a tutti in anticipo.
ho buttato giu due righe ma penso che siano sbagliate:
<script type="text/javascript">
var xmlHttp;
function vai(){
if (windows.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (windows.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}
xmlHttp.open("get", "prova.asp?nome=Dante, true);
xmlHttp.send(null);
}
</script>
e nella pagina asp è presente lo script per aggiungere il record.
ho buttato giu due righe ma penso che siano sbagliate:
<script type="text/javascript">
var xmlHttp;
function vai(){
if (windows.ActiveXObject){
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (windows.XMLHttpRequest){
xmlHttp = new XMLHttpRequest();
}
xmlHttp.open("get", "prova.asp?nome=Dante, true);
xmlHttp.send(null);
}
</script>
e nella pagina asp è presente lo script per aggiungere il record.