Advertisement
Advertisement
| 02.25.2008 at 10:30AM PST, ID: 23191078 |
|
[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: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: |
function editClasses(sNum) {
var sSend = '';
var gcl1 = document.getElementById('cl1');
var gcl2 = document.getElementById('cl2');
var gcl3 = document.getElementById('cl3');
var gcl4 = document.getElementById('cl4');
var gcl5 = document.getElementById('cl5');
var gcl6 = document.getElementById('cl6');
var gcl7 = document.getElementById('cl7');
var tmpDiv1 = gcl.innerHTML.toLowerCase();
var tmpDiv2 = gc2.innerHTML.toLowerCase();
var tmpDiv3 = gc3.innerHTML.toLowerCase();
var tmpDiv4 = gc4.innerHTML.toLowerCase();
var tmpDiv5 = gc5.innerHTML.toLowerCase();
var tmpDiv6 = gc6.innerHTML.toLowerCase();
var tmpDiv7 = gc7.innerHTML.toLowerCase();
if(tmpDiv1.indexOf('<input')>-1 && tmpDiv2.indexOf('<input')>-1 && tmpDiv3.indexOf('<input')>-1 && tmpDiv4.indexOf('<input')>-1 && tmpDiv5.indexOf('<input')>-1 && tmpDiv6.indexOf('<input')>-1 && tmpDiv7.indexOf('<input')>-1) {
gcl1.innerHTML = getvalue(gcl1.getAttribute('ref'),gcl1.getAttribute('sid'));
gcl2.innerHTML = getvalue(gcl2.getAttribute('ref'),gcl2.getAttribute('sid'));
gcl3.innerHTML = getvalue(gcl3.getAttribute('ref'),gcl3.getAttribute('sid'));
gcl4.innerHTML = getvalue(gcl4.getAttribute('ref'),gcl4.getAttribute('sid'))
gcl5.innerHTML = getvalue(gcl5.getAttribute('ref'),gcl5.getAttribute('sid'))
gcl6.innerHTML = getvalue(gcl6.getAttribute('ref'),gcl6.getAttribute('sid'))
gcl7.innerHTML = getvalue(gcl7.getAttribute('ref'),gcl7.getAttribute('sid'))
sSend += gcl1.getAttribute('ref')+'='+gcl1.innerHTML+'&'
sSend += gcl2.getAttribute('ref')+'='+gcl2.innerHTML+'&'
sSend += gcl3.getAttribute('ref')+'='+gcl3.innerHTML+'&'
sSend += gcl4.getAttribute('ref')+'='+gcl4.innerHTML+'&'
sSend += gcl5.getAttribute('ref')+'='+gcl5.innerHTML+'&'
sSend += gcl6.getAttribute('ref')+'='+gcl6.innerHTML+'&'
sSend += gcl7.getAttribute('ref')+'='+gcl7.innerHTML+'&'
document.getElementById("editBtncl").disabled=false;
document.getElementById("editBtncl").style.display="inline";
document.getElementById("saveBtncl").disabled=true;
document.getElementById("saveBtncl").style.visibility="hidden";
} else {
gcl1.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl1.innerHTML+'" ref="'+gcl1.getAttribute('sid')+'" id="'+gcl1.getAttribute('ref')+'">';
gcl2.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl2.innerHTML+'" ref="'+gcl2.getAttribute('sid')+'" id="'+gcl2.getAttribute('ref')+'">';
gcl3.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl3.innerHTML+'" ref="'+gcl3.getAttribute('sid')+'" id="'+gcl3.getAttribute('ref')+'">';
gcl4.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl4.innerHTML+'" ref="'+gcl4.getAttribute('sid')+'" id="'+gcl4.getAttribute('ref')+'">';
gcl5.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl5.innerHTML+'" ref="'+gcl5.getAttribute('sid')+'" id="'+gcl5.getAttribute('ref')+'">';
gcl6.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl6.innerHTML+'" ref="'+gcl6.getAttribute('sid')+'" id="'+gcl6.getAttribute('ref')+'">';
gcl7.innerHTML = '<input type="text" class="eip_editfield_gen" value="'+gcl7.innerHTML+'" ref="'+gcl7.getAttribute('sid')+'" id="'+gcl7.getAttribute('ref')+'">';
document.getElementById("editBtncl").disabled=true;
document.getElementById("editBtncl").style.display="none";
document.getElementById("saveBtncl").disabled=false;
document.getElementById("saveBtncl").style.visibility="visible";
}
if(sSend != ''){ajaxFunction(sSend.substring(0,sSend.length-1))}
}
function getvalue(sVal,sId)
{
var gInps = document.getElementsByTagName('input');
for (var i=0; i<gInps.length; i++)
{
var gInp = gInps[i];
if(gInp.getAttribute('id')==sVal && gInp.getAttribute('ref')==sId)
{
return gInp.value
}
}
}
function ajaxFunction(sString)
{
var xmlHttp = false;
try
{
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e)
{
alert("Your browser does not support AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState==4 && xmlHttp.status == 200)
{
alert(xmlHttp.responseText)
}
}
if(sString != '')
{
alert(sString);
//xmlHttp.open("POST","myscript.php",true);
//xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
//xmlHttp.send(sString);
}
}
|