Advertisement
Advertisement
| 06.05.2008 at 08:03PM PDT, ID: 23462586 |
|
[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: 80: 81: 82: 83: 84: |
the AJAX code used is
<script type="text/javascript">
<!--
// www.wino.ws & script@wino.ws
//_________________________
var $id = "text";
var $loadingdiv = "loading..";
var $method;
var $img_loading = "images/ajax.gif";
var $msg = "";
//_________________________
var http_request = false;
include = function ($url,$m, $l,$send){
if(!$url)return false;
if(!$method)$method = "GET";
if($m)$id = $m;
if($l)$loadingdiv = $l;
if(!$send)$send = null;
if(!$img_loading)$img_loading = ""; else $img_loading = "<img src='"+$img_loading+"'> ";
document.getElementById($loadingdiv).style.display='inline';
http_request = false;
if (window.XMLHttpRequest) {
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
} else if (window.ActiveXObject) {
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Cannot create XMLHTTP');
document.getElementById($id).innerHTML = "";
return false;
}
http_request.onreadystatechange = alertContents;
http_request.open($method, $url, true);
http_request.setRequestHeader('Content-Type', 'text/html; charset:windows-1256');
http_request.send($send);
}
function alertContents() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
if($id == '1')
{
document.getElementById("loadingfav").style.display='none';
document.getElementById("removefromfav").style.display='inline';
}
else if ($id == '2')
{
document.getElementById("loadingfav").style.display='none';
document.getElementById("addtofav").style.display='inline';
}
else
{
document.getElementById("loading..").style.display='none';
document.getElementById($id).innerHTML = http_request.responseText;
}
} else {
alert('There was a problem with the request.');
document.getElementById($id).innerHTML = "";
return false
}
}
}
//-->
</script>
and on event code is
<a style=\"text-decoration: none\" href=\"#\" onclick=\"include('favorite.php?tutid=$fileid&type=file&q=1', 1, 'loadingfav')\"><span onclick=\"active('loadingfav')\">
|