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

jquery cookies in edge animate

$
0
0

So in a regular html5 page in IE I can get the following jquery code to work:

 

           $.cookie('mycookieX',cookieXcounter,{expires:7,path:'/'});

           $.cookie('mycookieY',cookieYcounter,{expires:7,path:'/'});

          

           console.log($.cookie('mycookieX'));

 

 

But I can't get the code to work in my edgeActions.js file... I tried changing up the syntax (since when I use jquery in edge before I've had to change things for example:

           $('#blueCar').animate({

            left:carArrayX[carArrayXcounter] + "px",

            top:carArrayY[carArrayYcounter] + "px"

            }); '

 

to

 

           sym.$('blueCar').animate({

           left:myVariableX + "px",

           top:myVariableY + "px"

           });


but I can't figure out the cookies in edge with jquery to get them workign... It's probaby a syntax thing but all I could think of was this:

 

          sym. $.cookie('mycookieX',cookieXcounter,{expires:7,path:'/'});

          sym. $.cookie('mycookieY',cookieYcounter,{expires:7,path:'/'});

          

           console.log($.cookie('mycookieX'));

 

 

--------------------------> and of course this doesn't work..

 

Please provide thoughts...


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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