Can anyone point me in the right direction ? If possible it would be even better if I could call it from the onload event or from a javascript function.
Assuming you are working on a Windows Client machine, you copy test.mid to C:\ and create test.html with the following content in the same directory (C:):
Testing the sound…
After having succeeded in starting test.html on your local drive (with hearing the midi-file) you just copy these two files to your web root directory on you Domino (or any other) web server. (In my case: C:\Domino\Data\domino\html)
If your webserver is running on a linux or IBM machine, keep in mind that the file name is case sensitive.
You can do this several ways. Attach it in the files area (if they’re to be fixed files) and then use a url to point to it, or if they are not, and users are going to attach them. Create a form with a file upload control on it.