Skip to Content
0
Oct 29, 2013 at 05:06 PM

Ajax post

67 Views

Hi All,

I am trying to use Ajax post to get xacute query output in xml format. Thing is its not overriding the parameters assigned. It always gives defaulted output from static input provided in xacute query.

Please see the code snippet below.

function getXmlData(startDate,endDate,shiftVal,vMachType,MachID,MachGroup,vPlantId)

{

var urlPath="http://IP:port/XMII/Illuminator?QueryTemplate=/XaqCalcChartData&Content-Type=text/xml";

$.ajax({

type : "POST",

url : urlPath,

datatype : "xml",

data:

{

Param1:startDate,

Param2:endDate,

Param3:shiftVal,

Param4:vMachType,

Param5:MachID,

Param6:MachGroup,

Param7:vPlantId

},

async: false,

beforeSend: function()

{

},

error: function()

{

alert('Error');

},

success: function(xml)

{

alert(xml);

......

........

Can anyone help me on this.

Thanks,

Padma