Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form onsubmit="serverconnect('Div1', 'query.php'); return
- false;"
- Minimum Discount: <br />
- <input type="radio" value="20%" name="discount" /> 20% <br />
- <input type="radio" value="15%" name="discount" /> 15% <br />
- <input type="radio" value="10%" name="discount" /> 10% <br />
- <input type="radio" value="5%" name="discount" /> 5% <br />
- <input type="submit" value="Refine Search" />
- </form>
- <script language="javascript" type="text/javascript">
- var xmlhttp = false;
- if (window.XMLHttpRequest)
- {
- xmlhttp = new XMLHttpRequest();
- }
- else if (window.ActiveXObject)
- {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- function serverconnect(divID, datalocation)
- {
- var1=$clickvalue;
- if(xmlhttp)
- {
- var obj = document.getElementById(divID);
- xmlhttp.open("GET", datalocation);
- xmlhttp.onreadystatechange = function()
- {
- if (xmlhttp.readyState == 4 &&
- xmlhttp.status == 200)
- {
- obj.innerHTML = xmlhttp.responseText;
- }
- }
- xmlhttp.send(null);
- }
- }
- </script>
- <input type="radio" value="20%" name="discount" id="discount" /> 20% <br />
- var obj = document.getElementById(divID);
- var disc = document.getElementById("discount");
- xmlhttp.open("GET", datalocation + "?disc="+disc);
Add Comment
Please, Sign In to add comment