# Raspberry Pi GPIO via HTML

**URL:** <https://discourse.nodered.org/t/raspberry-pi-gpio-via-html/24497>\
**Category:** General\
**Created:** [9 April 2020 03:18 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-via-html/24497 "2020-04-09T03:18:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [9 April 2020 06:07 UTC](https://discourse.nodered.org/t/raspberry-pi-gpio-via-html/24497/3 "2020-04-09T06:07:15Z")

</div>

Not quite sure what you are looking for.  
Here's a link to a flow I posted on the 'Share Your Projects' section a year or so ago.  
It uses jQuery and Ajax to detect a button on a webpage and send that information to Node-RED.

> [@'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/raspberry-pi-gpio-via-html/24497)._
