Getting results from an embedded HTML button
Posted: Thu Nov 06, 2014 11:58 am
Hi.
Why doesn't this work? (html in MM dockable panel)
If I test with the msg box uncommented and SDB stuff commented, it all works as expected;
but I can't get an HTML button to control any SongsDB/MM functionality no matter what direction I've tried. What am I missing??
Thanks
Why doesn't this work? (html in MM dockable panel)
Code: Select all
Doc.Write "<HTML><HEAD>"
Doc.Write "<SCRIPT type=""text/vbscript"">"
Doc.Write "Sub ClearNP()"
Doc.Write "Dim SDB : Set SDB = CreateObject(""SongsDB.SDBApplication"")"
Doc.Write "SDB.ShutdownAfterDisconnect = False"
Doc.Write "SDB.PLAYER.PlayListClear "
' Doc.Write "MsgBox ""this works"" "
Doc.Write "End Sub"
Doc.Write "</SCRIPT>"
Doc.Write "</HEAD><BODY><div >"
Doc.Write "<input type=""button"" name=""button"" value=""buttonvalue"" onclick=""ClearNP()""/>"
Doc.Write "</div></BODY></HTML>"
If I test with the msg box uncommented and SDB stuff commented, it all works as expected;
but I can't get an HTML button to control any SongsDB/MM functionality no matter what direction I've tried. What am I missing??
Thanks