-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Change the code to this for dimmer slider and comment out the default ajax request, then it works.
And thanks for creating this fantastic project!
<form id="form{$i}">
<input id="deviceIP" name="ip" type="hidden" value="{$item["deviceIP"]}" />
<input id="devicePort" name="port" type="hidden" value="{$item["devicePort"]}" />
<input id="action" name="action" type="hidden" value="dimmerAdjust" />
<input id="deviceType" name="deviceType" type="hidden" value="{$item["deviceType"]}" />
<input id="dimmverValue{$i}" name="dimmerValue" type="range" min="1" max="100" step="1" value="50" />
</form>
</div>
<script>
$( document ).ready(function() {
$("#dimmverValue{$i}").change(function() {
$.ajax({
url: 'send.php',
type: 'get',
data: $("#form{$i}").serialize(),
success: function(response){
console.log("Enable debug in send.php for response");
console.log( response );
}
});
});
});
</script>
The009The009
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request