You need to sign in to do that
Don't have an account?
Aruna 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.
Please suggest any way to display the output using jquery or javascript.
Thanks
Aruna
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
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