Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Getting started guide JS sample doesn't work #17

Open
GoogleCodeExporter opened this issue May 24, 2015 · 1 comment
Open

Getting started guide JS sample doesn't work #17

GoogleCodeExporter opened this issue May 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
Follow the steps in the getting started guide and copy the JS code sample as is

What is the expected output? 
ESAPI methods work.

What do you see instead?
JS Errors

What version of the product are you using? On what operating system?
ESAPI4JS 1.3  on Firefox 23 linux 32 bit.

Please provide any additional information below.
The order that the JS libraries load is significant.  The sample code in the 
getting started guide should be:

<!-- esapi4js dependencies -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/lib/log4js.js"></script>
    <!-- esapi4js core -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/esapi.js"></script>
    <!-- esapi4js i18n resources -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/resources/i18n/ESAPI_Standard_en_US.properties.js"></script>
    <!-- esapi4js configuration -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/resources/Base.esapi.properties.js"></script>




Original issue reported on code.google.com by [email protected] on 28 Aug 2013 at 7:23

@enrico-usai
Copy link

enrico-usai commented Nov 30, 2016

esapi-compressed.js must be included before of Base.esapi.properties.js because by following the suggested order the loading fails with this error:
...resources/Base.esapi.properties.js) on line 14 with message (ReferenceError: $namespace is not defined)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants