Discussions

Expand all | Collapse all

Code Page execution

  • 1.  Code Page execution

    Posted 9 days ago
    I have two Code page in that pages I do some quickbase API call and I create a functions inside, the doubt is if its possible to call a function in Page1 from page2 to avoid write the same code in both pages?


    Any idea?

    Thanks


  • 2.  RE: Code Page execution

    Posted 9 days ago
    You can use jquery's GetScript to add the code, i.e.
    $.getScript("mydomain.quickbase.com/db/appid?a=dbpage&pagename=my_script.js", function() { alert("Tada, script is loaded"); });


    ------------------------------
    Ben Smith
    ------------------------------