I tried checking out a few answers but most of them were related to either list or table and one answer I found was related to ace.js
which I could not understand completely so posting the same.
I have a project in Node.js
which will create the XML
content dynamically based on the user input and the final output of the created XML can be very large as they can create 1000's of XML. After the creation, the XML content will be returned to AngularJS
where I am populating the Textarea
with the returned content.
The XML content is created pretty quickly and returned to AngularJS
but I observe that after getting the response the loading of the XML content to textarea
is taking a lot of time. I wanted to know is there any method using which I can fasten the process.
My HTML file with the text area field index.html
:
<textarea class="form-control" id="xmldata" ng-model="xmldata" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
My AngularJS HTTP request which will return the XML content:
$http({
url: "/XMLCreatir",
method: "POST",
data: data
}).success(function(response) {
console.log("RECEIEVED XML");
$scope.xmldata = response;
});
I can observe that the RECEIVED XML
is displayed pretty quickly but the Textarea
will not load the content and also most of the time browser crashes.
As the XML content is created at once I do not want to split it up into small chunks and concatenate again. I am hoping there is some better workaround for this.
I tried the solution mentioned here but for some reason, nothing was changed for me: Dynamically displaying large amounts of text by partially displaying data in textarea
Can someone please help me with this issue.