我想使用Javascript将参数发送到.asp文件。见这里:
var paramZabs = 12.55;
function sendValueNP1(idValueNP1){ //load the .asp file
$.get('sps_com/sendNP01.asp', //this is the .asp file where the paramZabs has to be sended
function(dataValueNP1) {
var paramValueNP1 = $('#' + idValueNP1).html();
});
}
和“sendNP01.asp”文件的内容:
<p id="NPSet_Z"><%WritePLC("CNCProgram.Zeropoint.Z"," here the paramZabs value ");%></p>
我怎么能意识到这一点?
答案 0 :(得分:0)
用jquery发送你的参数:
//------edit---$.get-----
$.get('sps_com/sendNP01.asp', { parameter1: paramZabs} ).done(
function(dataValueNP1) {
var paramValueNP1 = $('#' + idValueNP1).html();
});
//-----------------------