Search the Community
Showing results for tags 'xmlhttprequest'.
There are afaik 3 ways to read external files directly from the client : using ajax / xmlhttprequest using the filereader using the fetch api 1: get xmlhttprequest var FHttp := TW3HttpRequest.Create; FHttp.OnDataReady := lambda writeln(FHttp.responsetext); end; FHttp.open('GET','res/textfile.txt'); FHttp.send(); 2: file input W3EditBox1.InputType := itFile; W3EditBox1.Handle.ReadyExecute( procedure () begin W3EditBox1.OnChanged := procedure(sender:TObject) begin var reader: variant; asm @reader = new FileReade
I'm wanting to create a very simple NodeJS server that filters/forwards JSON request and responses. Currently I have my SmartMobileStudio built web application using unit W3C.XMLHttpRequest to talk directly to a JSON REST store, but I want to insert this a server between these. I thought it was going to be a simple matter of reusing W3C.XMLHttpRequest, however it seems I shouldn't use this class since it is W3C - meaning web browser only? Do I need a NodeJS.XMLHttpRequest unit? Unfortunately my research has found that NodeJS doesn't support that XMLHttpRequest out of the b