-
Opening multiple pdf files (8 messages)
- Posted by: shweta ahuja
- Posted on: May 06 2008 01:53 EDT
By clicking a submit button i'm calling a javascript in a jsp which uses "window.open" function and opens a jsp. In this jsp i call a function for opening a pdf file using "document.location.href". in this i have specified the URL to open this pdf. Now i want that if after this pdf is opened, i again chose some option and click the submit button and a second pdf to opened. But right now if i click the submit button the second time, the second pdf replaces the older one in the same wondow. I want that the second pdf to be opened in separate window. Please help to get me some ideaThreaded Messages (8)
- Re: Opening multiple pdf files by Jyothish John on May 06 2008 05:38 EDT
- Re: Opening multiple pdf files by Jyothish John on May 06 2008 05:44 EDT
-
Re: Opening multiple pdf files by shweta ahuja on May 06 2008 08:20 EDT
-
Re: Opening multiple pdf files by Jyothish John on May 06 2008 09:58 EDT
-
Re: Opening multiple pdf files by Jyothish John on May 06 2008 10:03 EDT
- Re: Opening multiple pdf files by shweta ahuja on May 14 2008 06:03 EDT
-
Re: Opening multiple pdf files by Jyothish John on May 06 2008 10:03 EDT
-
Re: Opening multiple pdf files by Jyothish John on May 06 2008 09:58 EDT
-
Re: Opening multiple pdf files by shweta ahuja on May 06 2008 08:20 EDT
- Opening multiple pdf files by shweta ahuja on May 06 2008 07:54 EDT
- Re: Opening multiple pdf files by Jyothish John on May 06 2008 05:44 EDT
- Re: Opening multiple pdf files by Marina Prikaschikova on May 08 2008 06:19 EDT
-
Re: Opening multiple pdf files[ Go to top ]
- Posted by: Jyothish John
- Posted on: May 06 2008 05:38 EDT
- in response to shweta ahuja
window.open ("your-url-file","a-unique-name-for-each-window-to-be-opened"); -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: Jyothish John
- Posted on: May 06 2008 05:44 EDT
- in response to Jyothish John
currently in your window.open(), you have specified a name probably for the window, so every time you click, the javascript tells the browser to open the document in the window named "soandso". Try making the window name unique for each document, or try using simple window.open, without a name option specified! -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: shweta ahuja
- Posted on: May 06 2008 08:20 EDT
- in response to Jyothish John
Actually the problem is that the pdf file is opening in the same Acrobat reader. I want that if i clisk the submit button second time or any number of times, it should open the pdf in different acrobat reader. -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: Jyothish John
- Posted on: May 06 2008 09:58 EDT
- in response to shweta ahuja
https://www.theserverside.com/discussions/thread.tss?thread_id=37964 Perhaps this link should shed some light. Write a small servlet which can facilitate the download, whne u do the submit, invoke the servlet in a new window... and download the Pdf.. -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: Jyothish John
- Posted on: May 06 2008 10:03 EDT
- in response to Jyothish John
If you are using it should open the pdf in a new window. -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: shweta ahuja
- Posted on: May 14 2008 06:03 EDT
- in response to Jyothish John
Thank u for your time but this is not working for me -
Opening multiple pdf files[ Go to top ]
- Posted by: shweta ahuja
- Posted on: May 06 2008 07:54 EDT
- in response to Jyothish John
i used this technique, but instead of opening the pdf in two windows it is opening the jsp which is called before the pdf (i.e the jsp in which the url is called) in two windows -
Re: Opening multiple pdf files[ Go to top ]
- Posted by: Marina Prikaschikova
- Posted on: May 08 2008 06:19 EDT
- in response to shweta ahuja
check out this component http://www.servletsuite.com/servlets/edloadtag.htm from Coldtags suite. You can add more than one downloading (opening) to your JSP page.