# Send data from joystick script

**URL:** <https://discourse.nodered.org/t/send-data-from-joystick-script/11281>\
**Category:** Dashboard\
**Created:** [18 May 2019 20:52 UTC](https://discourse.nodered.org/t/send-data-from-joystick-script/11281 "2019-05-18T20:52:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [19 May 2019 05:27 UTC](https://discourse.nodered.org/t/send-data-from-joystick-script/11281/2 "2019-05-19T05:27:37Z")

</div>

Here's something similar you could probably 'adjust/hack' to meet your needs.  
Some jQuery and Ajax to send values of 'soft buttons' to Node-RED to control something.

> [@'Soft' buttons on a web page to control something via Node-RED](https://discourse.nodered.org/t/soft-buttons-on-a-web-page-to-control-something-via-node-red/6289):
>
> I bought myself a book on jQuery and Ajax for Christmas. Here's a write-up on my first attempt at writing some jQuery that interfaces to Node-RED. The index.txt file must be renamed as index.html (as Discourse does not allow this type of file to be uploaded). It's a simple piece of html that links in jquery and sketch.js. The eight 'soft' buttons have unique 'id's. e.g. "turnREDon", "turnREDoff", etc... The index.html and sketch.js files can reside on any webpage on your local network. Th…

---

_[View the full topic](https://discourse.nodered.org/t/send-data-from-joystick-script/11281)._
