Jump to content

iPad does not see some onclick commands...


thesoundsmith

Recommended Posts

I have a page that uses a lot of js buttons to control a media player (jwplayer v5, but the player is not the issue.). The goal is to play random songs from multiple albums.Everything works great in all browsers except for iOS. There are two volume button images that add or subtract 5 to the volume. They work on everything but my iPad, though the iPad sees them - the alert test shows the command is being called, but the volume does not change.)The page is at http://www.thesoundsmith.com/radio.htm but it is normally only accessed by a link from the main menu at http://www.thesoundsmith.com/index.html (probably does not matter, except for the Close button.) The functions are:

function volDn() {var curVol =jwplayer('radio').getVolume(); if (curVol > 5)  {jwplayer('radio').setVolume(curVol-5)};  //   alert("Dn") ;}function volUp() {var curVol =jwplayer('radio').getVolume();    // alert("Up"); if (curVol <96)  {jwplayer('radio').setVolume(curVol+5)};}

called here:

<li><a id="vdn" class="button3" onclick="javascript:volDn()"></a></li><li><a id="vup" class="button3" onclick="javascript:volUp()"></a></li>

Any idea why iOS does not work? Thanks.

Link to comment
Share on other sites

Thanks. I was trying to avoid jw support. they are kind of tired of me by now - with good reason, i admit... But I had the problem previously with the fast-forward-rewind buttons, and they work fine now., so I was hoping it was just another piece of punctuation I missed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...