Ver Mensaje Individual
  #8 (permalink)  
Antiguo 06/02/2011, 12:27
diablouft
 
Fecha de Ingreso: febrero-2011
Mensajes: 6
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Problema grande ayuda

Aqui esta la funcion xweb:

Cita:
function xweb(parameters,loadingtext) {
http_request = false;
if (window.XMLHttpRequest) {
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/html');
}
}
else
if (window.ActiveXObject) {
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;
}
ldt(loadingtext);
if (targetContent!='zillycontent') {
parameters=parameters+'&dntsave=YES';
}
http_request.onreadystatechange = alertContents;
http_request.open('GET','main.php' + parameters, true);
http_request.send(null);
}
Y aqui esta la tf
Cita:
function tf(myfield) {
targetContent = myfield;
}
Gracias a ustedes me di cuenta que no habia agregado estas funciones y cuando las agregue me comenzo a funcionar el boton, ahora el problema que tengo es que la funcion xweb no la se usar ya que siempre he usado es href si me pueden ayudar a colocar esto:

Cita:
href="index.php?op=user&option=1&accion=1"
Aqui donde esta la funcion xweb

Cita:
echo("

<input style='border: 0px none ; padding: 0px; height: 15px; width: 200px; cursor: pointer; font-weight: bold;' value='Realizar Mision con $mision[personaje]' type='submit'

onclick=\" tf('estado'); xweb('?sy=quest&amp;questid=1&amp;accion=1','Reali zando mision..');\"
>
Muchas de todas formas me han ayudado muchisimo