[Cartoweb-users] "Waiting message"

Jacolin Yves yjacolin at free.fr
Thu Jul 20 11:45:29 EDT 2006


I find a nice section in the cartoweb doc ;-) about exportPlugin ... So I read 
it and I will come back if I have a problem ...

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 at 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)



More information about the Cartoweb-users mailing list