Advertisement
Advertisement
| 03.12.2008 at 10:42AM PDT, ID: 23235994 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: |
<script type="text/javascript">
function createRequestObject()
{
var req;
if (window.XMLHttpRequest)
{ // Firefox, Safari, Opera...
req = new XMLHttpRequest(); // alert('Detected a modern browser - very good!');
}
else
if (window.ActiveXObject)
{ // Internet Explorer 5+
req = new ActiveXObject("Microsoft.XMLHTTP"); // alert('Detected an old IE browser');
}
else
{
// error creating the request object,
// (maybe an old browser is being used?)
alert('There was a problem creating the XMLHttpRequest object');
req = '';
}
return req;
}
// Make the XMLHttpRequest object
var http = createRequestObject();
function sendRequest()
{
var url="http://localhost/report/reportresult.php"
url=url+document.params
http.open('get', url);
http.onreadystatechange = handleResponse;
http.send(null);
}
function handleResponse()
{
// if(http.readyState == 4 && http.status == 200)
if(http.readyState == 4)
{
var response = http.responseText; // Text returned FROM perl scrip+t
if(response)
{ // UPDATE ajaxTest content
document.getElementById("ajaxstuff").innerHTML = response;
setTimeout('doclick()', 1000); // wait 2 seconds, then clear mes+sage
}
}
}
function wipeout()
{
document.getElementById("ajaxstuff").innerHTML = '';
x = document.getElementById("mybutton");
x.disabled = false;
}
function doclick()
{
x = document.getElementById("mybutton");
x.disabled = true;
// document.getElementById("ajaxstuff").innerHTML = 'working...';
sendRequest();
return true;
}
</script>
</head>
<body>
<hr/>
<p><em><div id="ajaxstuff" > </div></em></p>
<form><input type="button" id="mybutton" onClick="doclick()" value="Go!"></form>
<hr/>
</body>
<body onload="doclick();">
</html>
|