[Gambas-user] WebAudio, custom commands.
Safiur Rahman
isafiur at gmail.com
Mon Jul 18 17:17:19 CEST 2022
Hi Bruce
I think you can do it in the following way:
a) Add Javascript to lib.js or write separately.
eg.
sound:
{
getaudiotime: function(id, idx)
{
var elt = $_(id);
$_(idx + ':entry').value = elt.currentTime;
},
.......
.........
b) Use WebTextBox to get the value. When I click a WebButton
Public Sub WebButton1_Click()
WebForm._AddJavascript("gw.sound.getaudiotime(" & JS(WebAudio1.Name) & ",
" & JS(WebTextBox2.Name) & ")")
End
The WebTextBox is populated with the required value.
--
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220718/354e25e9/attachment.htm>
More information about the User
mailing list