2 Replies Latest reply on Jun 18, 2014 4:19 AM by thomas1977

    Using wildcards in URL variables (very simple question, i know)

    thomas1977

      Hi all!

       

      Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working):

       

      var myurl = "http://www.mydomain.com/sub1/sub2/pagename";

      var currenturl = window.location

      if(myurl == currenturl) {

          sym.getSymbol("symbolname").play();

      }

       

      It simply makes the symbol "symbolname" play when the current URL matches the variable 'myurl'. However, I want the symbol to play on ALL subpages to http://www.mydomain.com/sub1/sub2/ and therefore it seems logical to put in a wildcard like:

       

      http://www.mydomain.com/sub1/sub2/* or something similar, but I just can't seem to make it work??

       

      Any help will be greatly appreciated!

       

      :-)

       

      Best,

      Thomas