Expand all | Collapse all

Code Page

  • 1.  Code Page

    Posted 01-18-2018 21:25
    Can I link my app.js file if both index.html and app.js are on the code page? Like this
    <!DOCTYPE html>
    <html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-COMPATIBLE" content="ie=edge">

    <script src="app.js"></script>


  • 2.  RE: Code Page

    Posted 01-19-2018 12:47
    You can reference the app.js file saved as a code page in the application with DBID as follows:

    <script src="DBID?a=dbpage&pagename=app.js"></script> 


    (1) for readability you should use relative URLs (as indicated above) instead of absolute URLs.

    (2) for readability you should use &pagename instead of &pageID.

    (3) If you copy the application you will need to manually modify the hard-coded DBIDs or your new application will be referencing the old code pages.

  • 3.  RE: Code Page

    Posted 01-19-2018 16:38
    Much appreciated dandiebolt!