3

Download file and JavaScript calling

Hello everyone,

Recently, I responded to a request from someone who wanted to be able to download a file without encountering a blank window. This required the use of JavaScript, and the person did not want to install Ninext for this. Therefore, I proposed an alternative solution that allows calling JavaScript using a dialogue window. The system is simple: it is possible to insert HTML into a dialogue window, which therefore allows the addition of JavaScript as well. You just need to add the necessary code for downloading a file to enable the download, and a small piece of code that closes the window after the code has been executed. This is what the global functions downloadURL() and execJS() do in the attached application.

It would also have been possible to add the code in an HTML form that mimics a Ninox button, but I find this solution more cumbersome compared to a global function that can be called from any code (provided, of course, that it is executed locally).

 Enjoy 🤗

#Download file.ninox 

Reply

null

Content aside

  • 3 Likes
  • 2 wk agoLast active
  • 40Views
  • 1 Following