Hi,
I use a php class to create pdf files ( http://www.ros.co.nz/pdf/) ... but
when I download the created pdf, the browser window closes, and Acrobat
opens.
How do I prevent the closing of the original browser window? Maybe it has
something to do with cache, because most off the people using the website
don't have this problem.
Also , I need to use the session_cache_limiter('no-cache'); before I can use
the "open"-option after clicking on the download link.
ps: even if I use target="_blank" , both browser windows closes.
Thanks in advance! 4 2619
geradeaus <ge***********@hotmail.com> wrote: I use a php class to create pdf files (http://www.ros.co.nz/pdf/) ... but when I download the created pdf, the browser window closes, and Acrobat opens.
How do I prevent the closing of the original browser window? Maybe it has something to do with cache, because most off the people using the website don't have this problem.
Sorry can't reproduce your problem. Opera and Fire* open a new
tab/window and offer a filedialog (leaving a unused window/tab
cluttering the desktop (very annoying)), mozilla refuses to open a new
window/tab so it doesn't work at all. So how did you test this?
BTW _new is a invalid target: http://www.w3.org/TR/html4/types.html#h-6.16
Is the browsers you are using actually complying with w3c and ignoring
it!
Either use _blank _or_ the content-disposition to "force" download, not
both. How do I prevent the closing of the original browser window? Maybe it has something to do with cache, because most off the people using the website don't have this problem.
Sorry can't reproduce your problem. Opera and Fire* open a new tab/window and offer a filedialog (leaving a unused window/tab cluttering the desktop (very annoying)), mozilla refuses to open a new window/tab so it doesn't work at all. So how did you test this?
BTW _new is a invalid target: http://www.w3.org/TR/html4/types.html#h-6.16 Is the browsers you are using actually complying with w3c and ignoring it!
Either use _blank _or_ the content-disposition to "force" download, not both.
Hi thanks for the answer. I know _new is not a valid target, but I didn't
mention it...did I? (I used target="_blank")
Maybe you can try the download at the following page : http://www.charminghotel.be/hotel.php On the left off the page you will
notice the link "download hotel catalogus" (in Dutch). The first time you
click the link, the browser window won't close. Do it again at another page
(e.g. fly & drive), open it and the window closes... at least on my pc it
does SOMETIMES.
Now, it didn't close..but when I closed all my browser windows , opened one
again and downloaded the pdf it closed...
Any suggestions? :-s
In article <EO*********************@hebe.telenet-ops.be>, geradeaus wrote: Now, it didn't close..but when I closed all my browser windows , opened one again and downloaded the pdf it closed...
Any suggestions? :-s
Get yourself a browser that does what you ask it to do, instead of doing
what it wants to do.
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
"Tim Van Wassenhove" <eu**@pi.be> schreef in bericht
news:32*************@individual.net... In article <EO*********************@hebe.telenet-ops.be>, geradeaus wrote: Now, it didn't close..but when I closed all my browser windows , opened one again and downloaded the pdf it closed...
Any suggestions? :-s
Get yourself a browser that does what you ask it to do, instead of doing what it wants to do.
I have one... but do all the users have too? But you need to test with ie... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: alanstew |
last post by:
With the body tag calling out 'window onload', a function with a
'window.open' fails at the 'window.open' line. If I cut out the body
tag, the function executes as normal.
At first I thought it...
|
by: Eli |
last post by:
Hi,
I'm using an IFRAME which in there I can load any site. But there are
some sites that check if they're in a frame and reload the whole
window. This disrupt my whole page.
Some questions:...
|
by: Miktor |
last post by:
At the minute I am using the following rather unwieldy function to
prevent the console
window in Dev C++ from closing before I can see the output from my
program:
// function to prevent the...
|
by: Zlatko Matić |
last post by:
Hi!
How to prevent opening the database window (tables, queries, modules) in
MDE?
I have created MDE and set in Startup that database window is not visible. I
also disabled Access shortcut...
|
by: NL |
last post by:
Hi,
Does anybody know how to turn off the animation Windows does with a window
as it's minimized/maximized to the taskbar?
I have an app which, when minimized, syncs to any other open...
|
by: anand |
last post by:
hi,
i am using axwebbrowser in an application. now, if the webpage
has a javascript with window.open(), a pop up window opens.
i want to catch the event just before axwebbrowser spawns a new...
|
by: Chad |
last post by:
I am in the process of writing an application that detects the
insertion of a pen drive, and if a specific folder structure exists, it
shows a form containing data.
The problem is that when I...
|
by: R Reyes |
last post by:
Hi,
For some reason, the website I made does not open pages in a new page
whenever I right-click "Open in New Tab" or "Open in New Window". But, as
soon as I navigate to any other website, the...
|
by: Khnumtemu |
last post by:
Hello all,
I am trying to change a line of text when a user uses the back button to return to a page what I have at the moment is this:
<script>
if(window.location == window.location){
...
|
by: thread |
last post by:
Hi All
i'm building a database in access and i want to restrict permissions.
from the access i can just limit the posiblity to unhide an hidden
table and in this way i can preventing the users...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |