SERVICES.startconference(meet.value, participants, function(res) {
Log.d("div", "getting success response and posting to new tab", res&& res.OUTERHTML);
.....
}
            Asked
            
        
        
            Active
            
        
            Viewed 703 times
        
    -2
            
            
         
    
    
        Mathews Sunny
        
- 1,796
- 7
- 21
- 31
 
    
    
        SAI KRISHNA
        
- 329
- 1
- 4
- 12
- 
                    1add some more details to your question. – Mathews Sunny Dec 23 '17 at 17:24
- 
                    There is a response coming from api which is having meeting name, access code , conference id, date and time and participants. I need to display these details dynamically at run time when the meeting starts. How can I make UI accordingly? – SAI KRISHNA Dec 23 '17 at 17:26
- 
                    Edit your question and add it there – Mathews Sunny Dec 23 '17 at 17:28
- 
                    I can see you are new to stackoverflow. make sure to learn how to use this site. have a glance at https://stackoverflow.com/tour – Shahryar Saljoughi Dec 23 '17 at 17:41
- 
                    If my answer meets your question, please mark it as answer – Shahryar Saljoughi Dec 24 '17 at 17:49
1 Answers
0
            Here is some code you can use : 
    <script>
    let use_api = function(){
        req = new XMLHttpRequest()
        req.setRequestHeader("Content-type", "application/json");
        req.onreadystatechange = function(){
            if(req.readyState == 4 && req.status==200){
               let data = JSON.parse(xhr.responseText);
               //here you should update your UI with the received data!  
            }
        }
        let req_body = JSON.stringfy({"username":"asdfasdf"}) //username is just an example, you should write things you want to send to API endpoint
        req.open('POST',url,true)
        req.send(req_body)
    }
</script>
Have a look on this too.
 Good Luck.
 
    
    
        Shahryar Saljoughi
        
- 2,599
- 22
- 41