![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 5 of 5 total |
![]() |
Tue, Feb 3 2015 8:10 AM | Permanent Link |
Uli Becker | I want the enable a user to download/display a pdf-file which is created
by a module of EWBServer. To open a new page I use this code: window.open(MyURL,'_blank'); The problem is, that depending on the browser, a popup window is opened or blocked. When I use a TLink, Chrome e.g. opens the URL in a new tab, what is exactly what I want. So it would be a simple solution for me to create the pdf, assign the URL to a TLink and execute the link. But how can I do that in code? P.S. I can't use an additional Form with a Page-control, because I don't know whether the user's browser has a PDF plugin installed. If not, a TLink would just download the file. Thanks Uli |
Tue, Feb 3 2015 8:23 AM | Permanent Link |
Raul Globestar Systems ![]() | On 2/3/2015 8:10 AM, Uli Becker wrote:
> The problem is, that depending on the browser, a popup window is opened > or blocked. > When I use a TLink, Chrome e.g. opens the URL in a new tab, what is > exactly what I want. Not 100% but I sure hope this cannot be done at all - if you have blocking enabled then user has to disable it. Adding your url to trusted sites list might help also. What you are asking for is javascript to be able to bypass popup window blocking. This is the exact reason this was invented and browsers go to great lengths to prevent malicious scripts from opening numerous windows and allowing only true mouseclick from doing so Raul |
Tue, Feb 3 2015 8:49 AM | Permanent Link |
Matthew Jones | Uli Becker wrote:
> I want the enable a user to download/display a pdf-file which is > created by a module of EWBServer. > > To open a new page I use this code: > > window.open(MyURL,'_blank'); Presumably the key is that you want to open it automatically, and not in response to a user action (the TLink would do it), and without losing the current page (you can tell it to go to another URL easily). Window.Location.href := MyURL; I suspect you can't do what you want without those popup issues - but the user can tell the browser that popups are allowed. -- Matthew Jones |
Tue, Feb 3 2015 9:00 AM | Permanent Link |
Uli Becker | Raul,
> Not 100% but I sure hope this cannot be done at all - if you have > blocking enabled then user has to disable it. Adding your url to trusted > sites list might help also. You are right - I'll have to find another solution. Maybe a confirmation dialog with a TLink, that the user has to click on. Thanks Uli |
Tue, Feb 3 2015 9:01 AM | Permanent Link |
Uli Becker | Matthew,
> I suspect you can't do what you want without those popup issues - but > the user can tell the browser that popups are allowed. Thanks - please see my answer to Raul. Uli |
This web page was last updated on Wednesday, March 29, 2023 at 12:35 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |