# Example JavaScript code from the documentation did not do anything - help?

**URL:** <https://discussions.flightaware.com/t/example-javascript-code-from-the-documentation-did-not-do-anything-help/75703>\
**Category:** AeroAPI\
**Created:** [April 11, 2021, 5:30pm UTC](https://discussions.flightaware.com/t/example-javascript-code-from-the-documentation-did-not-do-anything-help/75703 "2021-04-11T17:30:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim5336](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/tim5336/32/81516_2.png) [@tim5336](https://discussions.flightaware.com/u/tim5336)\
**Post date:** [April 11, 2021, 5:30pm UTC](https://discussions.flightaware.com/t/example-javascript-code-from-the-documentation-did-not-do-anything-help/75703/1 "2021-04-11T17:30:46Z")

</div>

Hello,

To get started I tried to see the example implementation using JavaScript. After adding in my user and API key though nothing happened when the button was pushed on the site to get the plane info. Any ideas?

---

<div class="post-metadata">

**Author:** ![dogrock](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dogrock/32/118974_2.png) [@dogrock](https://discussions.flightaware.com/u/dogrock)\
**Post date:** [April 13, 2021, 7:04pm UTC](https://discussions.flightaware.com/t/example-javascript-code-from-the-documentation-did-not-do-anything-help/75703/2 "2021-04-13T19:04:30Z")

</div>

If you are running the JavaScript in a client side browser you are likely encountering a error making cross-origin requests (CORS). If using JavaScipt requests should be made using a backend service, like the Node.js example.
