473,399 Members | 3,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Unable to open the pdf file

6
Hi all,

A pdf file is already open which launches in a frame..When I try to open another Pdf file I am unable to open it..
I get a Javascript error as " no such interface is supported".Kindly advice to resolve this issue...

Many thanks in Advance..

gayathri
Apr 5 '08 #1
6 1978
acoder
16,027 Expert Mod 8TB
With a cryptic error message like that, it seems like an IE error message. Do you get errors in other browsers?

How do you open the PDF file?
Apr 5 '08 #2
gayak
6
Hi

I haven't tried with other browsers..
I launch the pdf file using the Menu item..
Let me explain the scenario. I have a Menu tab under which i have two menu items. Both is to display different manuals which is of PDF type.
When I click the first one it gets displayed within the window frame. But when I try to launch the other pdf I get an error msg like "no such interfaces supported"..

So I tried this way by Changing the Adobe settings
"Display PDF in browser"---- unchecked it so that it would be displayed externally from the browser .But when I try this it is forcing to save the pdf file before opening it.. Could there be any other solution to overcome this issue


Many thanks in advance

Gayathri
Apr 7 '08 #3
acoder
16,027 Expert Mod 8TB
Can you show the code that you use to launch the PDF files?
Apr 7 '08 #4
gayak
6
Hi
// jsp file which calls the servlet . The Manual name is send as a query string

Expand|Select|Wrap|Line Numbers
  1.  String filename = getDocumentFileName(request);
  2.             // get file by filename
  3.             int fileExtIndex = filename.lastIndexOf('.');
  4.             if (fileExtIndex > 0) {
  5.                 String fileExt = filename.substring(fileExtIndex);
  6.                 if (fileExt.equalsIgnoreCase(".pdf")){
  7.                     mimeType = "application/pdf";
  8.  
Expand|Select|Wrap|Line Numbers
  1. // Menu .js
  2. menuList.addLink(new Link("wndParent.showURL('/'+ wndParent.sAppContext +'/FileServlet?filekey=Manual')","User Manual"));
Apr 7 '08 #5
pronerd
392 Expert 256MB
When I try to open another Pdf file I am unable to open it..
I get a Javascript error as " no such interface is supported".Kindly advice to resolve this issue...
If your code is trying to access any elements inside the frame tag after the PDF has been opened you will get JavaScript errors. One the PDF reader plugin starts the contents of the frame stop being HTML elements, and can no longer be accessed by JavaScript. So you will want to make sure you are only accessing the frame tag it self.

As acoder suggested if you want to get help debugging your code it would be a good idea to post the relevant portions.

P.S. Don't for get to use code tags.
Apr 7 '08 #6
pronerd
392 Expert 256MB
Hi
// jsp file which calls the servlet . The Manual name is send as a query string

String filename = getDocumentFileName(request);
// get file by filename
int fileExtIndex = filename.lastIndexOf('.');
if (fileExtIndex > 0) {
String fileExt = filename.substring(fileExtIndex);
if (fileExt.equalsIgnoreCase(".pdf")){
mimeType = "application/pdf";


// Menu .js
menuList.addLink(new Link("wndParent.showURL('/'+ wndParent.sAppContext +'/FileServlet?filekey=Manual')","User Manual"));

This would be JSP/Java code not JavaScript. Do you have a JavaScript related question? If not you will want to post your question in a forum that supports JSP topics.

Also just as a tip if you do post the code in a JSP/Java relaged forum it would be a good idea to post the error message and related stack trace.
Apr 7 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David N | last post by:
I got a solution that contains about 30 projects, three of which cannot be open. When I open the project, I always receive the error message "Unable to get the project file from the Web Server" ...
8
by: Rob | last post by:
I asked this question before but having had no response i'll try to simplify the description and hope someone can help this time. Basically my problem is that i'm getting the error "Unable to...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
7
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
0
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
3
by: Buddy Home | last post by:
Hello, I'm trying to upload a file programatically and occasionally I get the following error message. Unable to write data to the transport connection: An established connection was aborted...
2
by: Sagar | last post by:
Hi Iam unable to open my ASP.Net web project HRMS.vbproj suddenly in VS.Net 2003 I am getthing this error. Unable to open Web project '/'. The file path 'D:\company\ASP\Web' does not...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.