Advertisement
Advertisement
| 09.23.2008 at 12:35AM PDT, ID: 23754082 |
|
[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>
var xmlhttp=false;
var pageResponse=null;
//Try to set up an IE XMLHTTP Request Object
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (error) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (error) {
xmlhttp = false;
}
}
//Try to set up Mozilla and Safari XMLHTTP Request Object
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (error) {
xmlhttp=false;
}
}
//Try to set up IceBrowser XMLHTTP Request Object
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (error) {
xmlhttp=false;
}
}
function postData(url, formArray) {
var parameters = "";
for(i=0; i < formArray.length; i++) {
parameters = parameters + formArray[i].name + "=" + encodeURI(formArray[i].value) + "&";
}
xmlhttp.open("POST", url, true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("Content-length", parameters.length);
xmlhttp.setRequestHeader("Connection", "close");
xmlhttp.send(parameters);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 200) {
alert(xmlhttp.responseText) //this will be whatever your php script prints out.
}
else {
alert('An error occurred: ' + xmlhttp.status); //if there is an error with contacting the script, it will go here
}
}
}
}
</script>
<body>
<form>
<input name="txtName" id="txtName" type="text" size="40" style="opacity:.85; filter:alpha(opacity=85);" />
<input type="button" name="theSubmit" value="Send" onClick="postData('test.asp', this.form);"/>
</form>
</body>
AND MY test.asp:
Dim theName
Dim objJMail
theName = Request.QueryString("txtName")
set objJMail = CreateOBject("JMail.Message")
objJMail.MailServerUserName = bob@here.tv
objJMail.MailServerPassWord = "xxxxxxxx"
objJMail.silent = true
objJMail.Logging = false
objJMail.From = "bob@here.tv"
objJMail.FromName = theName
objJMail.AddRecipient "me@mydomain.com"
objJMail.Subject = "testing all out!" & theName
objJMail.HTMLBody = theName
objJMail.Send("mail.thefollowing.tv")
%>
|