In the demo version, I changed the "ReplaceBufferText" procedure to add data.
Code: Select all
TempAnsiString := TempAnsiString + NEW_TEXT;
data_out_written:= UIntPtr(length(TempAnsiString));

I planned to add a script to the page in a similar way, for example, "<script>alert("Hello, World!");</script>", it appears in the source code of the page, but not works.
As I understand it, this is done too late than necessary, maybe I'm doing something wrong or how to make it work?