Page 1 of 1

Using Javascripts from assets

Posted: Sat Aug 17, 2013 5:41 pm
by Willie Sims

Ok I am scratching my head on this one, I am doing an onload event calling to a javascript asset but my error keeps popping up saying it is not defined my javascripts name is not declared I thought to call a javascript all I had to do was say for example the js name was maps

maps()

Also I have found that in debugging if I have to delete a js or event js it will not delete it out of the main


Using Javascripts from assets

Posted: Sat Aug 17, 2013 5:51 pm
by Alena Prykhodko

Hello Willie!

Do you have JS asset and call it via Run JS action on Load event?
Could you please provide more details?


Using Javascripts from assets

Posted: Sat Aug 17, 2013 6:11 pm
by Willie Sims

Sorry yes, I am calling it on an screen load event through the run javascript


Using Javascripts from assets

Posted: Sat Aug 17, 2013 6:30 pm
by Alena Prykhodko
  1. You can paste your code directly on Run JS action;

    2.To run asset via Run JS action you should put not the name of asset but the function:

    coderun_js(); /code

    Add in asset the following:

    codefunction run_js(){

    /your code/

    }/code