Hi,
I have created a webpage with form and “input type=range”. Now I want the value of that range (slider) to be assigned with a value which is coming from a config file in the server on the initial load of that html page. For that I have written a bash script to get the value from the config file. Even I have written a cgi script to execute the bash script and print the values in the html page but I want that values to be assigned to the slider value.
Html File
`<form>
Minimum Length<br><input type=”range” id=”Minlen_range” name=”MinlenRange” min=”0″ max=”100″ value=”8″ oninput=”this.form.MinlenInput.value=this.value” />
<input type=”number” id=”Minlen_text” name=”MinlenInput” min=”0″ max=”100″ value=”8″ oninput=”this.form.MinlenRange.value=this.value” />
</form>
CGI Script
` #!/bin/bash
echo “Content-type: text/html”
echo “”
echo “<html><head><title>Bash as CGI” echo “</title></head><body>”
echo “<h3>Minimum Password Lenght</h3>”
echo “<pre> $(/usr/local/bin/Propertyhandler getConfiguration minlen) </pre>”
Kindly help.