I want to assign a value which comes under XML to a variable that I need to use under JavaScript.
or to put it better, I want to assign the value of output of a search to a variable that I need to use under javascript.
Try this..
search1.startSearch();
var output1= search1.data('results');
output1.on("data", function() {
var output2= output1.data().rows;
var finaloutput=output2[0][0];
});
Where does the xml come from? A simple xml dashboard or xml events or elsewhere?
I am talking about the xml code created as per the dashboard. The value fetched (from the query) inside that xml code needs to be used with javascript for evaluating "if and else" condition.