menschmarkus wrote:Do you have a similar simple JS script for SB like the one for uploading files?
Code: Select all
! window.location.href = "http...";
Greetings ... Peter
menschmarkus wrote:Do you have a similar simple JS script for SB like the one for uploading files?
Code: Select all
! window.location.href = "http...";
Code: Select all
! v_filename = v_fname.name
! window.location.href = "http.../" + v_fname;
This should work:menschmarkus wrote:I would like to offer it for downloading, not for showing.
Code: Select all
Procedure Callback(Success, Result.s)
If Success
! var a = document.createElement('a');
! var blob = new Blob([v_result], {'type':'application/json'});
! a.href = window.URL.createObjectURL(blob);
! a.download = "filename.json";
! a.click();
EndIf
EndProcedure
HTTPRequest(#PB_HTTP_Get, "http://spiderbytes.tuebben.de/test.json", "", @Callback())