+ Start a Discussion
Aruna VasahanAruna Vasahan 

Lightning Controller- Displaying Output from Server

Hi guys,
         I have received json data from my server side and I parsed it into normal data in my client side.
var Obj = JSON.parse(response.getReturnValue());
Then I displayed it using the alert message.
alert("Type ="+ Obj.Type + "\n Industry = "+ Obj.Industry + "\n Rating ="+ Obj.Rating)
Since displayng the results using alert message is not a formal procedure I need an alternative option to display the output.
Please suggest any way to display the output using jquery or javascript.
Thanks
Aruna

 
LBKLBK
Build a HTML content out of it and assign it to DIV tag as innerHTML.

Refer the links below for more info.

http://stackoverflow.com/questions/1309452/how-to-replace-innerhtml-of-a-div-using-jquery
https://www.w3schools.com/jsref/prop_html_innerhtml.asp