0

I'm trying to connect my HTML files with the parser server. I followed the direction of the back4app guides and added the following code to the head of index.html. But the browser kept telling me Parse is not defined.

<script src="https://npmcdn.com/parse/dist/parse.min.js"></script>
<script type="text/javascript">
    Parse.serverURL = "https://parseapi.back4app.com";
    Parse.initialize(
        "MY_APP_ID",
        "MY_JS_KEY"
    );
</script>
Amber HW
  • 3
  • 1

1 Answers1

0

Can you please test the code below?

<script src="https://cdnjs.cloudflare.com/ajax/libs/parse/2.1.0/parse.js"></script>
<script type="text/javascript">
  function myFunction() { 
      Parse.initialize("APP_ID", "JS_KEY");
      Parse.serverURL = 'https://parseapi.back4app.com/';
  }
/</script>
nataliec
  • 502
  • 4
  • 14