sábado, 11 de octubre de 2014

Insertar Sonido en Genexus


<script>function PlaySound(soundObj) {
var sound = document.getElementById(soundObj);
sound.Play();
}
</script>

<embed src="beep.wav" autostart="false" width="0" height="0" id="sound1"
enablejavascript="true">

 
Luego invocas la función en el botón:
cargarButton.JSEvent('onclick', "PlaySound("sound1")")

No hay comentarios:

Publicar un comentario