MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/rtbrisc/public_html/admin/main/rating/js/rating-ajax.js
function ajax_rating_Function(rating)
{
alert(rating);

}


// var httpxml;
// try
//   {
//   // Firefox, Opera 8.0+, Safari
//   httpxml=new XMLHttpRequest();
//   }
// catch (e)
//   {
//   // Internet Explorer
//   try
//     {
//     httpxml=new ActiveXObject("Msxml2.XMLHTTP");
//     }
//   catch (e)
//     {
//     try
//       {
//       httpxml=new ActiveXObject("Microsoft.XMLHTTP");
//       }
//     catch (e)
//       {
//       alert("Your browser does not support AJAX!");
//       return false;
//       }
//     }
//   }
// function stateChanged() 
//     {
//     if(httpxml.readyState==4)
//       {

// document.getElementById("rating-box").innerHTML=httpxml.responseText;
// document.getElementById("rating-box").style.borderColor='#00FF00 #0000FF';
// document.getElementById("rating-box").style.display='inline';

//       }
//     }
// function getFormData() { 
// var page_name=document.getElementById("page_name").value;
// var sParam = "page_name="+page_name+"&rating=" + rating + "&todo=submit-rating";
// return sParam;
// } 



//   var url="rating-window-ajax.php";

// var parameters=getFormData();
// alert(parameters);
// httpxml.onreadystatechange=stateChanged;
// httpxml.open("POST", url, true)
// httpxml.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
// httpxml.send(parameters)  

// document.getElementById("rating-box").style.background='#ffffcc';
// document.getElementById("rating-box").offsetWidth='550px';
// document.getElementById("rating-box").innerHTML="Data Processing ....";
// document.getElementById("rating-box").style.display='inline';