Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
/* VARIABLES DE AJAX */
var http_request = false ;
var g_obj_combo = false ;
var g_elemnto_cero = 'Seleccione...' ;
var array_nombre = new Array() ;
var array_id = new Array() ;
var fun_accion = false ;
//var web_raiz = 'http://www.martiarenas.com.ar/sistema_newsletter/' ;
var web_raiz = '';
/*-- APLICACION AJAX --*/
function makeRequest( url , parameters )
{
http_request = false ;
if( window.XMLHttpRequest ) // Mozilla, Safari,...
{
http_request = new XMLHttpRequest() ;
if( http_request.overrideMimeType )
{
http_request.overrideMimeType('text/xml') ;
}
}
else if( window.ActiveXObject ) // IE
{
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 instance') ;
return false ;
}
//alert(url + parameters) ;
//window.open(url + parameters,"ventana1","width=500,height=350,scrollbars=no,menubar=no,location=no,resizable=no") ;
http_request.onreadystatechange = fun_accion ;
http_request.open('GET',url + parameters, true) ;
http_request.setRequestHeader('Content-Type','application/x-www-form-urlencoded') ;
http_request.send(null) ;
fun_accion = alertContents ;
}
function alertContents()
{
if( http_request.readyState==4 )
{
if( http_request.status==200 )
{
var i = 0 ;
array_nombre = new Array() ;
array_id = new Array() ;
var xmldoc = http_request.responseXML ;
var root = xmldoc.getElementsByTagName('registro') ;
array_id[0] = '' ;
array_nombre[0] = g_elemnto_cero ;
//verifico que no devuelva vacio
if( root.length==1 )
{
array_id[0] = '' ;
array_nombre[0] = 'Sin Datos..' ;
}
else
{
for( i=1; i<root.length; i++ )
{
var root_id = root[i].getElementsByTagName('campoid') ;
var root_nombre = root[i].getElementsByTagName('camponombre') ;
array_id[i] = root_id[0].firstChild.nodeValue ;
array_nombre[i] = root_nombre[0].firstChild.nodeValue ;
}
}
CargaCombo(g_obj_combo) ;
}
else
{
alert('There was a problem with the request.') ;
}
}
}
function CargaCombo( combo_name ){
var i=0;
if( combo_name.options.length!=null ){
for( i=combo_name.options.length; i>=0; i-- ){
combo_name.options[i] = null;
}
}
for( i=0; i<array_nombre.length; i++ )
combo_name.options[i] = new Option(array_nombre[i], array_id[i]);
combo_name.value = '';
http_request = false;
}
function LimpiaCombo( combo_name , texto ){
var i=0;
if( texto==null ) texto='-- No hay opciones disponibles --';
if( combo_name.options.length!=null ){
for( i=combo_name.options.length; i>=0; i-- ){
combo_name.options[i] = null;
}
}
combo_name.options[0] = new Option(texto,'0');
}
fun_accion = alertContents;
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat