Hi Swaroop, thanks for your answer!! The reason why I want to use the runner service is because I don't know better, yet .
I have to dig into the MII subject on my own and am currently trying to find my way through it...
So I already managed to crate transactions and now want to dig into user interaction - that is run a transaction with paremters given in a IE-Weppage-GUI. I found some information on that runner service and wanted to try it as first attempt.
I do not know about scripting assistant yet...
If you could draft me a simpler way, I really would be happy to dig deeper into that one!
Anyway, I tried your approach (it is jQuery I think?...I don't much about it), but I did not manage to get things done. Wanted to use an alert to show result. I implemented as follows.
<BODY>
<button type="button" onclick="bla()">Run Transaction</button>
<div id="r">empty</div>
<script type="text/javascript">
function bla(){
$.ajax({
url: "/XMII/Runner?Transaction=http://SERVER/XMII/Runner?Transaction=TEST/Browser GUI/getTargetQuantity&Content-Type=text/xml",
success: function(result) {
alert(result);
}
});
}
</script>
</BODY>
But it is not working. Then I tried to move result to some local variable called z and tried to display thet one as alert and got an "undefined" pop up. I thought by myself it might be due to XML format. So I googled and found a post dealing with that topic:
javascript - jQuery getJSON save result into variable - Stack Overflow
So i ended up here - bu still not working:
<button type="button" onclick="bla()">Run Transaction</button>
<div id="r">empty</div>
<script type="text/javascript">
function bla(){
var z;
$.ajax({
url: "/XMII/Runner?Transaction=http://SERVER/XMII/Runner?Transaction=TEST/Browser GUI/getTargetQuantity&Content-Type=text/xml",
success: function(result) {
z = result;
}
});
var xmlText = new XMLSerializer().serializeToString(z);
var xmlTextNode = document.createTextNode(xmlText);
var parentDiv = document.getElementById("r");
parentDiv.appendChild(xmlTextNode);
}
</script>
Maybe one more hint?