Jump to content

thesoundsmith

Members
  • Posts

    154
  • Joined

  • Last visited

Previous Fields

  • Languages
    Foxpro, Access, 6502 Assembler

Contact Methods

  • Website URL
    http://www.thesoundsmith.com
  • ICQ
    0

Profile Information

  • Location
    Monterey, CA USA
  • Interests
    Professional jazz and R&B pianist/organist/synthesist.

thesoundsmith's Achievements

Member

Member (2/7)

1

Reputation

  1. 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.
  2. 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.
  3. I have been swapping out pieces of that page for the last hour, you probably saw it during that mess (with no success.) It just does not seem to execute the code. Here is the deCod in situ: <script type="text/javascript">/* <![CDATA[ */function nuStyle (myStyle) {var theStyle = myStyle ;var curStyle =document.getElementById("container");var nuScript=curStyle.getElementsByTagName("script");function deCod(linkStr){var str=linkStr;return str.replace(/DAKa/g,"&");} This: <li><a id="btn1" class="button3" title="Buy this Song" onclick="window.open(jwplayer(container).getPlaylistItem().link);">Buy</a></li> performs as expected with the unencoded list, it opens a window to the link address. When I wrap the link in the deCod function: <li><a id="btn7" class="button3" title="test" onclick="window.open(deCod(jwplayer(container).getPlaylistItem().link));">Decode</ It just - hangs, tra la la, I'm going out for a latte..??? . I have set a break at the var str=linkStr line and it never fires. I tried adding the href="*" so it would DO something, and then tried replacing onclick with href - I'm just throwing stuff at it at this point, I don't get why I cannot get a response from the function. On its own, it returns the proper string.
  4. There are typically two ampersands in a link &cpath and &product, I had already tried your first option and it only catches the first &. The expression str.replace(/DAKa/g,"&")creates the proper string, I just can't get the calling function to see/use the return string, it just appears to do nothing, rather than link to the shopping cart page.
  5. Interesting approach, thanks. What I have done in the meanwhile is to alter the XML <link> data, replacing the '&'s with the phrase 'DAKa'. The file loads flawlessly, but i can't quite figure out how to roll the replacement back into the command. function deCod(linkStr){var str=linkStr;return str.replace(/DAKa/g,"&");} The first command works correctly with a normal (unencoded) link. The second line should decode the link, but I can't figure out the syntax - just a replace, but I'm obviously doing it wrong. <ul><li><a id="btn1" class="button3" title="Buy this Song" onclick="window.open(jwplayer(container).getPlaylistItem().link);">Buy</a></li> <li><a id="btn7" href="*" class="button3" title="test" onclick="window.open(deCod(jwplayer(container).getPlaylistItem().link));">Decode</a></li></ul> Thanks for the help. (The page is at http://www.thesoundsmith.com/radio.htm and the "Decode test link is below the red "Close" button, for testing.)
  6. OK, I'm back to this same issue: Internet Explorer... But the issues take forever to catch up. IE now recognizes the indentical XML files under new name, though it tool over 24 hours to do so (I cannot find a "clear cache" command in IE.) So I'm back trying to figure out - not how th\o solve the problem but what the ACTUAL problem is. Some files can be added to the XML list without issue, many other, apparently r\equivalent files cause loading issues. It may be just another 24-hour cache thing, so I've got to play some more to see what is in common.. If you have suggestions how to turn this around faster, I'd love it., but I think I'll have to start a new thread when and if I learn anything useful. Thanks again.
  7. Wait, guys, the XML files are from the wrong dataset, this is the older data. Ignore this thread for now, please.
  8. I have narrowed the options down to one - something wierd in parsing the XML file. The symptoms are currently this: The page works correctly in FF, Chrome and iOS, but not IE. The playlists are all created from the one XML file that loads properly in IE - the rest simply are created by removing items from the list. I tried several things to find the error - first, I copied the file and set all the & and ; chars to just text, so the link is invalid, but the XML checker could scan the files (all I wanted was to validate the <title></title> type matching tags. No errors, all the tags match.I replaced the other XML files with the one properly loading file (radjz.xml) The links on the page all work, the file loads every time, so it's not a typo or miscode on the page. And now., the kicker: I copied the working file to the other playlist XML files, so the files are identical. IE will not open any but the first, and when i tried copying the file to a new name and opening it, IE would not...What am I missing? Again, the page is at http://www.thesoundsmith.com/radio.htmIf you click on The Jazz Joint, it loads and plays, the others do not. (xml/radeasy, radsmooth, radblues, radfull.xml)
  9. When I do that, the link does not function. This is a series of 242 Zencart page addresses. In the current version of the system, they all work, if I encapsulate anything, or alter the link info in any way it fails. All I am trying to do is find bug in the file(s) I apparently have a typo or missing.malformed element in 1700+ lines of xml, and I guess I need to create a workaround file that will let me use the checker to find the problem. Thanks. I think I know what to do, but if it still fails, I'll be back...
  10. I have a page that swaps out titles, text and XML playlist files to play music selections.I have it working fine in Chrome and FF, but iOS and IE don't get it. Especially confusing is IE - i have copied the laylist to all lists, so it is always identical. But ONLY the "jazz" list loads and plays fine, the others go into limbo - they appear to have loaded, but not selected anything (as opposed to not loading at all or creating an error msg.) It appears that there is a bug in the XML playlists somewhere, but I cannot check it - all the XML checkers I've tried stop at a link fragment that includes ";cpath=" - It wants me to add a semicolom after cpath, but then ;cpath;=" generates a different error (and the link won't work...) The page is at: http://www.thesoundsmith.com/radio.htm and the playlist I'm using (that works in all cases) is http://www.thesounds...m/xml/radjz.xmlThe main (broken) list is at http:// http://www.thesounds...m/xml/radfull.xml Thanks for any ideas, I'm fresh out. The playlists work fine in FF and Chrome, but there must be an error in the ohter lists - is there a checker that can handle the clause: <item><media:content url="wavs/esp2/13.Makin'_Whoopee.mp3" /><media:thumbnail url="pix/esp2_360.gif" /><title>Makin' Whoopee</title><description>Especially For You Too</description><link>private/zcart/index.php?main_page=product_info&cPath=71&products_id=297</link></item> ...
  11. Thanks. And for the link as well.Useful vinfo, much appreciated. I keep thinking I'm done, but then there's "one more thing" I want to do, and... Do I need the education.
  12. The page now WORKS perfectly, but I get w3c errors, it doesn't like my loop. for (var i=0; i<20; i++) { document.getElementById('p'+i).style.backgroundColor = bgClr; } if (prevPg<19) { document.getElementById('p'+prevPg).style.backgroundColor = myPrvClr; } if (nxtPg>0) w3c checker wants <, which will not compute. It doesn;yt like "<", but it's fine with ">"It recommends checking for unclosed quotes, but I don't see anything wrong.The whole page, again, is at http://www.thesoundsmith.com/hmd2CLR.htm
  13. Aha. Thanks. Found a couple others as well, I think of ID as double capped... Got it all working now, thank you.
  14. Thanks, justsomeguy. That was my plan, to simply track the last selected rather than loop, but I first am just trying to get the color change to work. I implemented getElementByID (and tried the others, as well). I reset the last-viewed page back to the original colo as well, and the oldPg variable has its correct value; but there is still no change to the background. Sorry, what am I missing? It all parses, but does not perform. var hiddenArrayIndex = 0; var myIndex = 0; var PageNum = 1; var thisID = 'pg'; var prevPg = 0; // prev page link color var nxtPg = 2; // next page link color var lastPg = 0; // last SELECTED page var MyNxtClr = '#006600'; //Pgnxt color var MyPrvClr = '#7E009E'; // PgPrev color var ThisClr = '#B25900'; // a dark orange bg var bgClr = '$070707'; //regular bg color var oldPg = 'pg0'; // old page label to rest bg color function showThis(indexNum){ var newIndex = indexNum; myIndex = indexNum; prevPg = ((myIndex+19) % 20); nxtPg = ((myIndex+1) % 20); // get the value stored in the hidden field hiddenArrayIndex = document.getElementById('hiddenValue').value; // if the value is not equal to the upper index of the array // then increment the value by 1 and store it back into the hidden field if(hiddenArrayIndex != newIndex) { document.getElementById('hiddenValue').value = newIndex; // re-assign the value to the hiddenArrayIndex variable hiddenArrayIndex = document.getElementById('hiddenValue').value; } // set the background-image stored at the specified Array Index dynamically document.getElementById("div1").style.backgroundImage = "url(" + myArr[hiddenArrayIndex] + ")"; thisID = 'pg'.concat(hiddenArrayIndex.toString()); if (thisID.length > 0) { soundManager.destroySound(thisID); }; soundManager.stopAll(); soundManager.play(thisID,sdArr[hiddenArrayIndex]); PageNum = "Pg: "+(parseInt(hiddenArrayIndex)+1); document.getElementById("pgNum").innerHTML=PageNum;// alert (oldPg); // returns correct page document.getElementByID(oldPg).style.backgroundColor = bgClr; //change to original background oldPg = thisID; // save current page value document.getElementByID('p' + prevPg).style.backgroundColor = myPrvClr; document.getElementByID(thisID).style.backgroundColor = ThisClr; document.getElementByID('p' + nxtPg).style.backgroundColor = myNxtClr; }
×
×
  • Create New...