Skip to content

jquery #28

Answered by Hieromon
medic00 asked this question in Q&A
Apr 17, 2021 · 1 comment
Discussion options

You must be logged in to vote

You can take the same technique as the code I provided to you in another thread. #26
However, another approach based on the same idea is needed to implement it. Because jQuery.js script code is too big to handle in Arduino's String class. To properly read JQuery.js as a local resource from ESP32's SPIFFS and return it to the client, use the streamFile function of the ESP32's WebServer class.

To deploy the JQuery library on the client browser, the HTML headers commonly written are: and you will follow them as well.

<head>
  <meta charset='utf-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <!-- Access to ESP32 localhost:js/jquery.min.js -->
  <script src='js/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Hieromon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants