Dealing with Pop-Up Blocker and Browser Refresh

4 views
Skip to first unread message

davis

unread,
Nov 11, 2009, 1:33:37 PM11/11/09
to Google Web Toolkit
Hi, part of the app I built with GWT has links to download PDF from
the server. I basically just pull the pdf content from the server and
do Window.open( .. ).

The first time you do this, the pop-up blocker takes over and blocks
it. If you enable it, the browser reloads the page, which takes the
user back to the login page -- which can be a real UI annoyance.

This is perhaps more a problem with me not dealing with Refresh/
History correctly. I have implemented rudimentary history that has
only two tokens (login/homepage). The homepage is the entire app and
all navigation is with tabs, etc...but if the user does F5/Refresh, it
takes them back to the login page.

What is the recommended path for solving this?

Regards,
Davis

Jeff Chimene

unread,
Nov 11, 2009, 1:55:34 PM11/11/09
to google-we...@googlegroups.com

Serve the document into a frame?

OTOH, you might also instruct your users to whitelist your site.
 

Regards,
Davis


Olivier

unread,
Nov 12, 2009, 3:29:34 AM11/12/09
to google-we...@googlegroups.com
You could also create an external link using the HTML widget :

HTML linkToPdf = new HTML("<a href=\"prout.pdf\"
target=\"_blank\">PDF</a>");
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--

Olivier
Digiworks




Pol�tica de Protecci�n de Datos de Car�cter Personal
En cumplimiento de la Ley Org�nica 15/1999, de 13 de diciembre, sobre
protecci�n de Datos de Car�cter Personal (LOPD) DIGIWORKS SPAIN, S.L.
informa a los usuarios de que:

Los Datos de Car�cter Personal que recoge son objeto de tratamiento
automatizado y se incorporan en los ficheros correspondientes,
debidamente registrados en la Agencia Espa�ola de Protecci�n de Datos.
El usuario podr�, en todo momento, ejercitar los derechos reconocidos
en la LOPD, de acceso, rectificaci�n, cancelaci�n y oposici�n. El
ejercicio de estos derechos puede realizarlo el propio usuario mediante
comunicaci�n escrita en la siguiente direcci�n postal:

DIGIWORKS SPAIN, S.L.
AVDA SAN RAFAEL, 11, LOCAL 2
03580 ALFAZ DEL PI
ALICANTE

Tambi�n pueden ejercitar estos derechos en los t�rminos que la normativa
aplicable establece y que puede consultar en www.agpd.es.

Thomas Broyer

unread,
Nov 12, 2009, 5:02:15 AM11/12/09
to Google Web Toolkit


On Nov 12, 9:29 am, Olivier <oliv...@digiworks.es> wrote:
> You could also create an external link using the HTML widget :
>
> HTML linkToPdf = new HTML("<a href=\"prout.pdf\"
> target=\"_blank\">PDF</a>");

Er, you meant using the Anchor widget, weren't you? ;-)

Anchor linkToPdf = new Anchor("PDF", "prout.pdf", "_blank");

Olivier

unread,
Nov 12, 2009, 6:06:16 AM11/12/09
to google-we...@googlegroups.com
Exactly :)
> --
>
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Reply all
Reply to author
Forward
0 new messages