thank you for your answer. I read the exportPDF plugin to create mine. But I don't understand where and how to open a new window. Is it with header function ? I did not see anything about this in the php manual. May be I miss something. If you have any ideas about this... Thank you again,
Y. Le Jeudi 20 Juillet 2006 13:39, Damien Corpataux a écrit : > Hi Yves, > > this could happen because of a Javascript error (that stops the JS > execution flow), or because of the headers. A deeper investigation is > needed to figure out what the exact problem is. > > Anyways, a simple way to get around this is to open a new window for the > file download; take example on the exportPdf plugin. > > > Damien > > Jacolin Yves wrote: > > Hi, > > I am writing a new plugin to export layer (from postgis db and > > shapefile). > > > > But after downloading my file, the message 'waiting ...' doesn't > > disappear. > > > > I can send php file, if needed. I use this code to download : > > private function output($file) { > > header("Content-Type: application/zip\n"); > > header("Location: generated/zip/".$file."\n"); > > } > > > > And I just call $this->output($mylayertodownload); > > > > thanks. > > > > Y. > > _______________________________________________ > Cartoweb-users mailing list > Cartoweb-users@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/cartoweb-users -- Yves Jacolin http://yjacolin.gloobe.org ---- Stagiaire Conservatoire Régional des Espaces Naturels de la région Centre http://cahiersnaturalistes.free.fr/cpnrc/ ---- - Qu'est-ce que cela peut faire que je lutte pour la mauvaise cause puisque je suis de bonne foi? - Et qu'est-ce que ça peut faire que je sois de mauvaise foi puisque c'est pour la bonne cause. (Jacques Prévert) _______________________________________________ Cartoweb-users mailing list Cartoweb-users@lists.maptools.org http://lists.maptools.org/mailman/listinfo/cartoweb-users