Quantcast
Viewing all articles
Browse latest Browse all 152999

Re: how to link javascript function to my edge animate project?

You can attach this function to the stage symbol in the stage compositionReady event handler like below:

                   sym.IsEmail = function (email) { 

                        var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; 

                       return regex.test(email); 

                   }


and then can use this function anywhere like this:    sym.IsEmail (emailToXYZ);         //where sym denotes the stage symbol


hth,

Vivekuma


Viewing all articles
Browse latest Browse all 152999

Trending Articles



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