ThatRickGuy
Programmer
The battle continues...
So I have an image button. in the code behind I add an OnClick attribute to it, the OnClick calls a JavaScript method called "PlaySound". PlaySound then checks to see what state the sound is in (Playing/Stopped/Finished/Paused). If the sound is paused, I need to click on the pause image button. I do this by calling document.getElementById('bsibPause').click();
bsibPause (a glorified image button) also has an OnClick attribute added that calls "PauseSound". There is also a click event that is handled in the Code Behind page.
The JavaScript OnClick and the PauseSound method work correctly, but the Click event handled on the back end is not getting fired. The buttons work correctly when the user clicks on them.
Thoughts?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
So I have an image button. in the code behind I add an OnClick attribute to it, the OnClick calls a JavaScript method called "PlaySound". PlaySound then checks to see what state the sound is in (Playing/Stopped/Finished/Paused). If the sound is paused, I need to click on the pause image button. I do this by calling document.getElementById('bsibPause').click();
bsibPause (a glorified image button) also has an OnClick attribute added that calls "PauseSound". There is also a click event that is handled in the Code Behind page.
The JavaScript OnClick and the PauseSound method work correctly, but the Click event handled on the back end is not getting fired. The buttons work correctly when the user clicks on them.
Thoughts?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)