Willie Sims
Posts: 0
Joined: Wed Jul 10, 2013 4:37 pm

Using Javascripts from assets

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Using Javascripts from assets

Hello Willie!

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

Willie Sims
Posts: 0
Joined: Wed Jul 10, 2013 4:37 pm

Using Javascripts from assets

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Using Javascripts from assets

  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

Return to “Issues”