Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » embedded pdf, flash,... does not work in eclipse help with internal browser
embedded pdf, flash,... does not work in eclipse help with internal browser [message #748469] Mon, 24 October 2011 18:02 Go to next message
Reto Urfer is currently offline Reto UrferFriend
Messages: 12
Registered: July 2009
Junior Member
Hi
I wanted to display a pdf file directly within a help page using the
<object> tag with type "application/pdf". When i am using the internal
browser, this does not work. If i configure the help system to always use an
external browser (IE in my case) it works perfectly. The the problem i
recognized with flash animation.

Is there a way to configure the internal browser to be able to handle
<object> tag for different mime types properly?
I think, the problem are the additional browser plugins used i.e. to display
a PDF document.



thanks in advance for information
Reto
Re: embedded pdf, flash,... does not work in eclipse help with internal browser [message #753504 is a reply to message #748469] Thu, 27 October 2011 13:52 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

If this works for you in stand-alone IE then it should work in IE
embedded in the Browser control as well. You mention "application/pdf"
but then later specify flash. Which one is it?

Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
is that you have the 32-bit pdf/flash plugin installed, which is not
compatible with 64-bit embedded IE.

If this is not the problem then can you provide the subset of lines from
your html file that are attempting to embed the pdf/flash content?

Grant


On 10/24/2011 2:02 PM, Reto Urfer wrote:
> Hi
> I wanted to display a pdf file directly within a help page using the
> <object> tag with type "application/pdf". When i am using the internal
> browser, this does not work. If i configure the help system to always
> use an external browser (IE in my case) it works perfectly. The the
> problem i recognized with flash animation.
>
> Is there a way to configure the internal browser to be able to handle
> <object> tag for different mime types properly?
> I think, the problem are the additional browser plugins used i.e. to
> display a PDF document.
>
>
>
> thanks in advance for information
> Reto
Re: embedded pdf, flash,... does not work in eclipse help with internal browser [message #758600 is a reply to message #753504] Wed, 23 November 2011 20:15 Go to previous messageGo to next message
Reto Urfer is currently offline Reto UrferFriend
Messages: 12
Registered: July 2009
Junior Member
Hi

> If this works for you in stand-alone IE then it should work in IE embedded
> in the Browser control as well. You mention "application/pdf" but then
> later specify flash. Which one is it?

after it did not work with a PDF file i tried with a flash.


> Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess is
> that you have the 32-bit pdf/flash plugin installed, which is not
> compatible with 64-bit embedded IE.

I am using the 64-bit eclipse/swt.
In the meantime i was succesful running a swt brower example with an
embedded flash animation after i have reinstalled the flash plugin. It could
have been a problem with the plugin which is now a 64-bit version.
But i could not find a 64-bit version of acrobat reader.


> If this is not the problem then can you provide the subset of lines from
> your html file that are attempting to embed the pdf/flash content?

My latest tests i did with the PDF version of the Hibenate documentation.
This page even does not use any <object> tags but the problem stays the
same. If you click on any PDF-link directly from within astandalone IE
browser instance PDF file is displayed embedded. If you run the exeample
code blow and do the same an extra acrobat reader window is opened and the
embedded browser does not change its contents
public class SWTBrowserExample {

private Shell shell = null;
private Browser browser = null;

private static final String url = "http://www.hibernate.org/docs.html";
private static final String title = "SWTBrowserExample";

public static void main(String[] args) {
Display display = new Display();
SWTBrowserExample browser = new SWTBrowserExample();
browser.createBrowser();
browser.shell.open();

while (!browser.shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}

private void createBrowser() {
shell = new Shell();
shell.setLayout(new FillLayout());
shell.setSize(new Point(800, 800));
shell.setLocation(new Point(100, 100));
shell.setText(title);

browser = new Browser(shell, SWT.BORDER);
browser.setUrl(url);
}
}


Reto

"Grant Gayed" schrieb im Newsbeitrag news:j8bmve$1ub$1@news.eclipse.org...

Hi,

If this works for you in stand-alone IE then it should work in IE
embedded in the Browser control as well. You mention "application/pdf"
but then later specify flash. Which one is it?

Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
is that you have the 32-bit pdf/flash plugin installed, which is not
compatible with 64-bit embedded IE.

If this is not the problem then can you provide the subset of lines from
your html file that are attempting to embed the pdf/flash content?

Grant


On 10/24/2011 2:02 PM, Reto Urfer wrote:
> Hi
> I wanted to display a pdf file directly within a help page using the
> <object> tag with type "application/pdf". When i am using the internal
> browser, this does not work. If i configure the help system to always
> use an external browser (IE in my case) it works perfectly. The the
> problem i recognized with flash animation.
>
> Is there a way to configure the internal browser to be able to handle
> <object> tag for different mime types properly?
> I think, the problem are the additional browser plugins used i.e. to
> display a PDF document.
>
>
>
> thanks in advance for information
> Reto
Re: embedded pdf, flash,... does not work in eclipse help with internal browser [message #758783 is a reply to message #758600] Thu, 24 November 2011 14:34 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
If you're using 64-bit eclipse/swt without a 64-bit acrobat plug-in then
I would not expect this to work. When you say that it works for you in
stand-alone IE, are you definitely launching 64-bit Internet Explorer?
The default IE (without "(64-bit)" beside its name) is 32-bit.

Grant


On 11/23/2011 3:15 PM, Reto Urfer wrote:
> Hi
>
>> If this works for you in stand-alone IE then it should work in IE
>> embedded in the Browser control as well. You mention "application/pdf"
>> but then later specify flash. Which one is it?
>
> after it did not work with a PDF file i tried with a flash.
>
>
>> Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
>> is that you have the 32-bit pdf/flash plugin installed, which is not
>> compatible with 64-bit embedded IE.
>
> I am using the 64-bit eclipse/swt.
> In the meantime i was succesful running a swt brower example with an
> embedded flash animation after i have reinstalled the flash plugin. It
> could have been a problem with the plugin which is now a 64-bit version.
> But i could not find a 64-bit version of acrobat reader.
>
>
>> If this is not the problem then can you provide the subset of lines
>> from your html file that are attempting to embed the pdf/flash content?
>
> My latest tests i did with the PDF version of the Hibenate
> documentation. This page even does not use any <object> tags but the
> problem stays the same. If you click on any PDF-link directly from
> within astandalone IE browser instance PDF file is displayed embedded.
> If you run the exeample code blow and do the same an extra acrobat
> reader window is opened and the embedded browser does not change its
> contents
> public class SWTBrowserExample {
>
> private Shell shell = null;
> private Browser browser = null;
>
> private static final String url = "http://www.hibernate.org/docs.html";
> private static final String title = "SWTBrowserExample";
>
> public static void main(String[] args) {
> Display display = new Display();
> SWTBrowserExample browser = new SWTBrowserExample();
> browser.createBrowser();
> browser.shell.open();
>
> while (!browser.shell.isDisposed()) {
> if (!display.readAndDispatch()) {
> display.sleep();
> }
> }
> display.dispose();
> }
>
> private void createBrowser() {
> shell = new Shell();
> shell.setLayout(new FillLayout());
> shell.setSize(new Point(800, 800));
> shell.setLocation(new Point(100, 100));
> shell.setText(title);
>
> browser = new Browser(shell, SWT.BORDER);
> browser.setUrl(url);
> }
> }
>
>
> Reto
>
> "Grant Gayed" schrieb im Newsbeitrag news:j8bmve$1ub$1@news.eclipse.org...
>
> Hi,
>
> If this works for you in stand-alone IE then it should work in IE
> embedded in the Browser control as well. You mention "application/pdf"
> but then later specify flash. Which one is it?
>
> Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
> is that you have the 32-bit pdf/flash plugin installed, which is not
> compatible with 64-bit embedded IE.
>
> If this is not the problem then can you provide the subset of lines from
> your html file that are attempting to embed the pdf/flash content?
>
> Grant
>
>
> On 10/24/2011 2:02 PM, Reto Urfer wrote:
>> Hi
>> I wanted to display a pdf file directly within a help page using the
>> <object> tag with type "application/pdf". When i am using the internal
>> browser, this does not work. If i configure the help system to always
>> use an external browser (IE in my case) it works perfectly. The the
>> problem i recognized with flash animation.
>>
>> Is there a way to configure the internal browser to be able to handle
>> <object> tag for different mime types properly?
>> I think, the problem are the additional browser plugins used i.e. to
>> display a PDF document.
>>
>>
>>
>> thanks in advance for information
>> Reto
>
Re: embedded pdf, flash,... does not work in eclipse help with internal browser [message #759038 is a reply to message #758783] Fri, 25 November 2011 18:39 Go to previous message
Reto Urfer is currently offline Reto UrferFriend
Messages: 12
Registered: July 2009
Junior Member
You are right. There is a 32bit and a 64bit version of the IE installed and
m< default was the 32bit IE. Thats why it was working in the standalone IE.
With the 64bit IE flash is working becasue there exists a 64bit version of
the plugin but Adobe Reader plugin does not exist as 64bit version.

Thanks for help
Reto


"Grant Gayed" schrieb im Newsbeitrag news:jalkkf$ocv$1@news.eclipse.org...

If you're using 64-bit eclipse/swt without a 64-bit acrobat plug-in then
I would not expect this to work. When you say that it works for you in
stand-alone IE, are you definitely launching 64-bit Internet Explorer?
The default IE (without "(64-bit)" beside its name) is 32-bit.

Grant


On 11/23/2011 3:15 PM, Reto Urfer wrote:
> Hi
>
>> If this works for you in stand-alone IE then it should work in IE
>> embedded in the Browser control as well. You mention "application/pdf"
>> but then later specify flash. Which one is it?
>
> after it did not work with a PDF file i tried with a flash.
>
>
>> Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
>> is that you have the 32-bit pdf/flash plugin installed, which is not
>> compatible with 64-bit embedded IE.
>
> I am using the 64-bit eclipse/swt.
> In the meantime i was succesful running a swt brower example with an
> embedded flash animation after i have reinstalled the flash plugin. It
> could have been a problem with the plugin which is now a 64-bit version.
> But i could not find a 64-bit version of acrobat reader.
>
>
>> If this is not the problem then can you provide the subset of lines
>> from your html file that are attempting to embed the pdf/flash content?
>
> My latest tests i did with the PDF version of the Hibenate
> documentation. This page even does not use any <object> tags but the
> problem stays the same. If you click on any PDF-link directly from
> within astandalone IE browser instance PDF file is displayed embedded.
> If you run the exeample code blow and do the same an extra acrobat
> reader window is opened and the embedded browser does not change its
> contents
> public class SWTBrowserExample {
>
> private Shell shell = null;
> private Browser browser = null;
>
> private static final String url = "http://www.hibernate.org/docs.html";
> private static final String title = "SWTBrowserExample";
>
> public static void main(String[] args) {
> Display display = new Display();
> SWTBrowserExample browser = new SWTBrowserExample();
> browser.createBrowser();
> browser.shell.open();
>
> while (!browser.shell.isDisposed()) {
> if (!display.readAndDispatch()) {
> display.sleep();
> }
> }
> display.dispose();
> }
>
> private void createBrowser() {
> shell = new Shell();
> shell.setLayout(new FillLayout());
> shell.setSize(new Point(800, 800));
> shell.setLocation(new Point(100, 100));
> shell.setText(title);
>
> browser = new Browser(shell, SWT.BORDER);
> browser.setUrl(url);
> }
> }
>
>
> Reto
>
> "Grant Gayed" schrieb im Newsbeitrag news:j8bmve$1ub$1@news.eclipse.org...
>
> Hi,
>
> If this works for you in stand-alone IE then it should work in IE
> embedded in the Browser control as well. You mention "application/pdf"
> but then later specify flash. Which one is it?
>
> Are you using 32- or 64-bit eclipse/swt? If it's 64-bit then my guess
> is that you have the 32-bit pdf/flash plugin installed, which is not
> compatible with 64-bit embedded IE.
>
> If this is not the problem then can you provide the subset of lines from
> your html file that are attempting to embed the pdf/flash content?
>
> Grant
>
>
> On 10/24/2011 2:02 PM, Reto Urfer wrote:
>> Hi
>> I wanted to display a pdf file directly within a help page using the
>> <object> tag with type "application/pdf". When i am using the internal
>> browser, this does not work. If i configure the help system to always
>> use an external browser (IE in my case) it works perfectly. The the
>> problem i recognized with flash animation.
>>
>> Is there a way to configure the internal browser to be able to handle
>> <object> tag for different mime types properly?
>> I think, the problem are the additional browser plugins used i.e. to
>> display a PDF document.
>>
>>
>>
>> thanks in advance for information
>> Reto
>
Previous Topic:Section in Form Page is Collapsed
Next Topic:Linux Lotus Notes parent window unresponsive
Goto Forum:
  


Current Time: Thu Mar 28 16:37:49 GMT 2024

Powered by FUDForum. Page generated in 0.04071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top