Hi,
I have a simple html slider whose value I need to pull into a SQL variable, is there a way that I can pass the value from the variable from the javascript into my SQL variable?
The below does not work:
SELECT 'dbr.html','<input type="range" min="0" max="10" value="5" step="1" onchange="showValue(this.value)" />
<span id="range">5</span>
<script type="text/javascript">
function showValue(newValue)
{
document.getElementById("range").innerHTML=newValue;
}
</script>'
;
SET sliderres = this.value; SELECT sliderres;
I then want to use the values from these sliders as inputs into a procedure called from a button, so I need to have the JS variable information stored in the SQL variable at the point of the button click.
Thanks,
Martin