.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- Problema PHP (http://www.dsy.it/forum/showthread.php?threadid=18535)


Posted by dan on 02-04-2005 12:29:

Problema PHP

Qualcuno mi sa spiegare perchè se metto in una pagina PHP la seguente stringa:

<a href="#" onClick="window.open('http://www.tin.it/', 'blank', 'toolbar=0,location=0,directories=0,status=0,menub
ar=0,scrollbars=0,resizable=0,copyhistory=0,width=
300,height=320')">DANcito Mail</a>


non mi funziona.

Se la metto in una pagina HTML funziona!

Grazie!!


Posted by DeepBlue on 02-04-2005 14:59:

Hai guardato nel sorgente della pagina generata con php come risultano quelle righe?

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~


Posted by dan on 02-04-2005 17:49:

Con document.open funziona.


Posted by ripe on 02-04-2005 18:12:

Possibile che l'oggetto window sia nullo?

Prova a mettere un controllo di debug del tipo:

alert(window == undefined);

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»


Posted by dan on 02-04-2005 18:14:

probabilmente con window non funziona perchè è una pagina dinamica.


Posted by ripe on 02-04-2005 18:29:

Ma l'oggetto window dipende dal browser che vede semplice Html, lui non dovrebbe sapere che tu stai usando il Php (al di là dell'estensione del file).

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»


Posted by yeah on 02-04-2005 20:02:

Posta le righe del file php precedenti e seguenti quel blocco :)

__________________
?


All times are GMT. The time now is 03:56.
Show all 7 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.