Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    62

    Lanciare popup con ajax

    Ragazzi non riesco a lanciare un popup da dentro una funzione readystate. Come posso fare? Cosa sbaglio?

    codice:
    if(xmlhttp.readyState == 4 && xmlhttp.status == 200)   
    {	
    	response = xmlhttp.responseXML;
    	wid = response.getElementsByTagName("answer")[0].getAttribute("wid");			
    	alert("Your war has been succesfully created!");   
    	height = 600;
    	width = 950;
    	l = Math.floor((screen.width-width)/2);
    	t = Math.floor((screen.height-height)/2);
    	window.open("pollo.php?wid=" + wid, "", "width=" + width + ",height=" + height + ",top=" + t + ",left=" + l);
    }

  2. #2
    Utente di HTML.it
    Registrato dal
    Jun 2009
    Messaggi
    62
    nessuno ha idea di come poter fare?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.