JQuerry 'on click event' to send http request
-
Hi!
First off, fantastic theme and thank you for making it available!
I am using it for my home automation project where I have added a number of buttons using the Maxbutton plug in.
I want to execute some ajax code to send a http request to a php file which is server side… something like this:
$('maxbutton id="17"').click(function(){ $.get('https://ipaddress/file.php'); });
Is this possible and would this code above work? I am a bit of a noob and would appreciate your help.
Thanks
- The topic ‘JQuerry 'on click event' to send http request’ is closed to new replies.