Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

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

$
0
0

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


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>