Commit d85b9453 authored by Gwenael Cattez's avatar Gwenael Cattez

Add panel to receive response of method invocation

parent 419f1705
......@@ -88,7 +88,8 @@
border-radius: 10px;
font-size:90%;
text-align:right;
background-color: #F4F5F5;
background-color: #6B7B95;
color : white;
}
.fieldsetform {
......
......@@ -24,7 +24,7 @@
*
*/
function IntrospectionAjaxCall(httpMethod,introspectionMethod,path,params)
function IntrospectionAjaxCall(httpMethod,introspectionMethod,path,params,text)
{
var fullPath="/introspection";
......@@ -53,11 +53,16 @@
myRequest.send(params);
}
if(text!=undefined && text==true)
{
console.log("receive text "+Textresponse);
return Textresponse;
}
if (XMLresponse!=null)
{
console.log("receive XML"+XMLresponse);
var XMLdocument=XMLresponse.documentElement;
return XMLdocument;
}
if (Textresponse!=null) return Textresponse;
}
\ No newline at end of file
......@@ -398,21 +398,20 @@
}
console.log(requestParameters);
var response=IntrospectionAjaxCall("POST","port",JSONObject.path,requestParameters);
var response=IntrospectionAjaxCall("POST","port",JSONObject.path,requestParameters,true);
var responseArea=form.getElmentById("responseArea");
var responseArea=form.getElementById("responseArea");
if(responseArea!=null) form.removeChild(responseArea);
responseArea=document.createTextNode();
form.appendChild(textArea);
if(response==undefined || response==null)
if(response==undefined || response==null || response=="")
{
responseArea.innerHTML="no response to display";
responseArea=document.createTextNode("no response to display");
}
else
{
responseArea=response;
responseArea=document.createTextNode(response);
}
form.appendChild(responseArea);
}
/*******************************************Bindings Panel************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment