Передача данных с html документа в базу 1с
С помощью этой функции получаю данные с базы...
function StartDiner(){
$.ajax(
{type: 'POST', url:'/MobileRestaran/rzSoap.php', data: {fname:'StartDiner'},
success: function(arg){
theRes = JSON.parse(arg);
if (theRes[0][0]=='empty') {}
else{
resStr = '<table border="0">';
for(var i=0; i<theRes.length -1; i++) {
cod = theRes[i][0];
ngroup = theRes[i][1];
resStr = resStr + ' <tr> <td align="left"><button class="menu" onclick="OpenMenuDiner(\''+ cod +'\'); OpenCount()" style="font-family:\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif; height:35px; width:200px; cursor: pointer; font-weight:bold; text-transform:uppercase">' +ngroup+ '</button></td></tr>';
}
resStr = resStr + '</table>';
document.getElementById("Submenu2").innerHTML = resStr;
}
}
});
}
А как мне отправлять данные на 1с?
не могу разобраться...
|