Advertisement
Advertisement
| 06.15.2008 at 06:47AM PDT, ID: 23486172 |
|
[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: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: |
//////////////the JS
function formSubmit() {
alert("submiting now");
var x=document.getElementById("m7moduleform_2")
x.action="index.php"
x.enctype="multipart/form-data"
x.method="post"
x.submit()
}
////////////////////////the AS
Bar.Send.onRelease = function() {
var FullArray:String = "{name:value}";
for (var i = 0; i<fieldArray.length; i++) {
switch (fieldArray[i].type) {
case "textInput" :
fieldArray[i].mc.addEventListener("change",onSelect_text);
var pos = testIfSelected(this._name);
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.text);
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
clickSend();
break;
case "checkBox" :
fieldArray[i].mc.addEventListener("click",onSelected);
var pos = testIfSelected(this._name);
if (fieldArray[i].mc.selected == true) {
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.label);
}
FullArray = FullArray+",{"+outPutArray+"}";
trace(outPutArray);
} else if (fieldArray[i].mc.selected == false) {
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":na");
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
} else {
if (pos>=0) {
outPutArray.splice(pos,1);
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
}
clickSend();
break;
case "comboBox" :
fieldArray[i].mc.addEventListener("change",onSelect_cbItemPicked);
var pos = testIfSelected(this._name);
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.selectedItem.data);
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
clickSend();
break;
case "Date" :
fieldArray[i].mc.addEventListener("change",onSelect_Date);
var pos = testIfSelected(this._name);
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":"+fieldArray[i].mc.selectedDate);
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
clickSend();
break;
case "YES_NO" :
var ya:Object = null;
var na:Object = null;
body = fieldArray[i].mc._name;
var NStage1 = strip_Y(body);
var FINResult = strip_N(NStage1);
ya = FINResult+"_Y";
na = FINResult+"_N";
fieldArray[i].mc.addEventListener("click",onSelectedPath);
if (fieldArray[i].mc.selected == true) {
if (fieldArray[i].mc._name == ya) {
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":Yes");
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
clickSend();
} else {
outPutArray.splice(pos,1);
if (pos == -1) {
outPutArray.push(fieldArray[i].mc._name+":No");
}
FullArray = FullArray+",{"+outPutArray+"}";
//trace(outPutArray);
clickSend();
}
} else {
}
break;
}
}
//trace(FullArray);
/*var emailResponse:LoadVars = new LoadVars();
emailResponse.onLoad = function(success:Boolean) {
if (success) {
debug_txt.text = this.result;
ExternalInterface.call("formSubmit");
trace("Submited");
trace(postVars.dataArray);
} else {
debug_txt.text = "error downloading content";
}
};*/
var postVars:LoadVars = new LoadVars();
postVars.dataArray = FullArray;
postVars.sendAndLoad("../Core_files/PDFgenerator/tcpdf_php4/examples/example_011.php", dataReceiver, "POST");
};
dataSender = new LoadVars();
dataReceiver = new LoadVars();
dataReceiver.onLoad = function() {
if (this.response == "invalid") {
alert_txt.text = "Please check from."
} else if (this.response == "error") {
alert_txt.text = "Please check from."
} else if (this.response == "passed") {
alert_txt.text = "Please check from."
ExternalInterface.call("formSubmit");
}
}
function clickSend(eventObj:Object):Void {
var jsArgument:String = outPutArray;
var result:Object = ExternalInterface.call("getTextFromFlash", jsArgument);
ObjectToPass = "m7feu_input_"+result;
trace("sent");
}
onEnterFrame(load);
{
var FullArray:String = "{name:value}";
//_global.FullArray = new Array();
_global.outPutArray = new Array();
_global.testIfSelected = function(t) {
for (i=0; i<outPutArray.length; i++) {
if (outPutArray[i] == t) {
return i;
}
}
return -1;
};
};
|