Chciałem użyć do pobierania pliku oraz zliczania kliknięć w link popupu.
Javascript otwiera okno, w którym jest odnośnik do pliku php który w hederze pobiera plik i zlicza kliknięcie.
Pod firefoxem naturalnie wszysko jest ok.
Problem pojawia się pod ie7!
Wyłączyłem blokowanie popupów i nadal coś jest nie tak.
Otwiera się okno i nic się nie dzieje.
Przekazuje prze extremalinterface odpalanie funkcji:
Kod
function popup()
{
okno=window.open('../front/download2.php','o','scrollbars=no, status=no, toolbar=no, location=no, directories=no, width=100, height=100, left=100, top=100');
setTimeout('okno.close()',5000);
}
[/b][b]
{
okno=window.open('../front/download2.php','o','scrollbars=no, status=no, toolbar=no, location=no, directories=no, width=100, height=100, left=100, top=100');
setTimeout('okno.close()',5000);
}
[/b][b]
POP-UP się otwiera, ale nic się nie dzieje, na ie 6 jest ok.
kod PHP:
Kod
<?php
include ("../class/database.class.php");
include ("../class/statDownloadFlash.php");
$filename = $_SERVER['DOCUMENT_ROOT'] . "/ml/flash/mp3/mp3.zip";
header("Cache-Control: public");
header("Content-Description: File Transfer");
header('Content-disposition: attachment; filename='.basename($filename));
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
header('Content-Length: '. filesize($filename));
readfile($filename);
exit();
?>
[/b][b]
include ("../class/database.class.php");
include ("../class/statDownloadFlash.php");
$filename = $_SERVER['DOCUMENT_ROOT'] . "/ml/flash/mp3/mp3.zip";
header("Cache-Control: public");
header("Content-Description: File Transfer");
header('Content-disposition: attachment; filename='.basename($filename));
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
header('Content-Length: '. filesize($filename));
readfile($filename);
exit();
?>
[/b][b]
efekt można zobaczyć tutaj w dziale MP3 na samym dole jest button do pobierania pliku:
http://http://mimesis.pl/flash/
Będę wdzięczny za pomoc, rade

PZR.
Marcin