How to use JS file with APEX?

Today we can not think an application without Ajax/js. Good news APEX already included external js/css facility. First time i have faced some problem implemented external js in APEX but finally implemented. Now step by step we will show the process…

1. Open your application and click ‘Shared components’.

Application Home

 

2. At the bottom of the page ‘Files’ block, click ‘Static files’

3. Click ‘Create’ button from top right corner. Browse your js file i.e.jquery.js

4. Now go your page where you want to implement this js file. Click ‘Edit page #’ & edit page properties. GO to ‘HTML Header and Body Attribute’ and put like bellow line..

<script src=”#APP_IMAGES#jquery.js” type=”text/javascript”>

 

5. Now call your js functions & enJoy!

Best of luck , if further any query please buzz me.

 

One Comment

  1. Ro

    can you help me,please??

    I create this test case .js file:

    — ScriptJava.js file ——-

    function NoNavButton(){
    window.history.forward(1);
    }

    and i saved it into apex static file, as shown by you.

    Then i put this code into ‘HTML Header and Body Attribute’ of the my page:

    but…
    nothing happened!!! 🙁

    and i don’t know what i have to done!

Leave a Reply