Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » External Browser
External Browser [message #636014] Thu, 28 October 2010 23:34 Go to next message
Koos de Goede is currently offline Koos de GoedeFriend
Messages: 31
Registered: July 2009
Member
I try to open an new browser window to display a PDF from our RAP
application. It works inside my app with the internal brawser but is I use
ExternalBrowser nothing happens

Any help is appriciated
Re: External Browser [message #636056 is a reply to message #636014] Fri, 29 October 2010 08:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
could you share your code for opening the ExternalBrowser and what
browser do you use (IE, Firefox, Safari...)?
Best,
Ivan

On 10/29/2010 2:34 AM, Koos de Goede wrote:
> I try to open an new browser window to display a PDF from our RAP
> application. It works inside my app with the internal brawser but is I use
> ExternalBrowser nothing happens
>
> Any help is appriciated
>
>
Re: External Browser [message #636094 is a reply to message #636056] Fri, 29 October 2010 09:37 Go to previous messageGo to next message
Koos de Goede is currently offline Koos de GoedeFriend
Messages: 31
Registered: July 2009
Member
Hi Ivan,



I use the code below. I am using Google Chrome as brpwser, but the idea is
to support all browsers.

ExternalBrowser.open("NEWWINDOW", "http://127.0.0.1:10082" + url,
ExternalBrowser.STATUS | ExternalBrowser.LOCATION_BAR |
ExternalBrowser.NAVIGATION_BAR);

"Ivan Furnadjiev" <ivan@eclipsesource.com> wrote in message
news:iadvke$dl8$1@news.eclipse.org...
> Hi,
> could you share your code for opening the ExternalBrowser and what browser
> do you use (IE, Firefox, Safari...)?
> Best,
> Ivan
>
> On 10/29/2010 2:34 AM, Koos de Goede wrote:
>> I try to open an new browser window to display a PDF from our RAP
>> application. It works inside my app with the internal brawser but is I
>> use
>> ExternalBrowser nothing happens
>>
>> Any help is appriciated
>>
>>
Re: External Browser [message #636140 is a reply to message #636094] Fri, 29 October 2010 12:46 Go to previous messageGo to next message
Koos de Goede is currently offline Koos de GoedeFriend
Messages: 31
Registered: July 2009
Member
Hi Ivan,

I tried EI then it works, any idea how to make this work with Chrome and
possible others?

Koos
"Koos de Goede" <koosdegoede@hotmail.com> wrote in message
news:iae4dc$muj$1@news.eclipse.org...
>
>
> Hi Ivan,
>
>
>
> I use the code below. I am using Google Chrome as brpwser, but the idea is
> to support all browsers.
>
> ExternalBrowser.open("NEWWINDOW", "http://127.0.0.1:10082" + url,
> ExternalBrowser.STATUS | ExternalBrowser.LOCATION_BAR |
> ExternalBrowser.NAVIGATION_BAR);
>
> "Ivan Furnadjiev" <ivan@eclipsesource.com> wrote in message
> news:iadvke$dl8$1@news.eclipse.org...
>> Hi,
>> could you share your code for opening the ExternalBrowser and what
>> browser do you use (IE, Firefox, Safari...)?
>> Best,
>> Ivan
>>
>> On 10/29/2010 2:34 AM, Koos de Goede wrote:
>>> I try to open an new browser window to display a PDF from our RAP
>>> application. It works inside my app with the internal brawser but is I
>>> use
>>> ExternalBrowser nothing happens
>>>
>>> Any help is appriciated
>>>
>>>
>
>
Re: External Browser [message #636143 is a reply to message #636140] Fri, 29 October 2010 13:12 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I've just tested it in Google Chrome 7.0.517.41 and it works as
expected. Make sure that the new opened window is not blocked by the
Chrome pop-up blocker. Look at right side of the address bar for a
pop-up blocker icon. If it's there enable pop-ups from 127.0.0.1 and
reload the browser window.
HTH,
Ivan

On 10/29/2010 3:46 PM, Koos de Goede wrote:
> Hi Ivan,
>
> I tried EI then it works, any idea how to make this work with Chrome and
> possible others?
>
> Koos
> "Koos de Goede"<koosdegoede@hotmail.com> wrote in message
> news:iae4dc$muj$1@news.eclipse.org...
>>
>> Hi Ivan,
>>
>>
>>
>> I use the code below. I am using Google Chrome as brpwser, but the idea is
>> to support all browsers.
>>
>> ExternalBrowser.open("NEWWINDOW", "http://127.0.0.1:10082" + url,
>> ExternalBrowser.STATUS | ExternalBrowser.LOCATION_BAR |
>> ExternalBrowser.NAVIGATION_BAR);
>>
>> "Ivan Furnadjiev"<ivan@eclipsesource.com> wrote in message
>> news:iadvke$dl8$1@news.eclipse.org...
>>> Hi,
>>> could you share your code for opening the ExternalBrowser and what
>>> browser do you use (IE, Firefox, Safari...)?
>>> Best,
>>> Ivan
>>>
>>> On 10/29/2010 2:34 AM, Koos de Goede wrote:
>>>> I try to open an new browser window to display a PDF from our RAP
>>>> application. It works inside my app with the internal brawser but is I
>>>> use
>>>> ExternalBrowser nothing happens
>>>>
>>>> Any help is appriciated
>>>>
>>>>
>>
>
Re: External Browser [message #637176 is a reply to message #636143] Thu, 04 November 2010 13:20 Go to previous messageGo to next message
Koos de Goede is currently offline Koos de GoedeFriend
Messages: 31
Registered: July 2009
Member
Hi,

Opening the external browser with a PDF now works on my local system.
However if I run the application on an external Server (Windows Server) also
from whitin Eclipse the external browser does not open.

I use an URL like this:

/balances/test.pdf

The balanes directory has been added using the extensionpoint:

<extension

point="org.eclipse.equinox.http.registry.resources">

<resource

alias="/balances"

base-name="/balances">

</resource>

Any idea why this not work in this case?

Koos






"Ivan Furnadjiev" <ivan@eclipsesource.com> wrote in message
news:iaeh0r$ejg$1@news.eclipse.org...
> Hi,
> I've just tested it in Google Chrome 7.0.517.41 and it works as expected.
> Make sure that the new opened window is not blocked by the Chrome pop-up
> blocker. Look at right side of the address bar for a pop-up blocker icon.
> If it's there enable pop-ups from 127.0.0.1 and reload the browser window.
> HTH,
> Ivan
>
> On 10/29/2010 3:46 PM, Koos de Goede wrote:
>> Hi Ivan,
>>
>> I tried EI then it works, any idea how to make this work with Chrome and
>> possible others?
>>
>> Koos
>> "Koos de Goede"<koosdegoede@hotmail.com> wrote in message
>> news:iae4dc$muj$1@news.eclipse.org...
>>>
>>> Hi Ivan,
>>>
>>>
>>>
>>> I use the code below. I am using Google Chrome as brpwser, but the idea
>>> is
>>> to support all browsers.
>>>
>>> ExternalBrowser.open("NEWWINDOW", "http://127.0.0.1:10082" + url,
>>> ExternalBrowser.STATUS | ExternalBrowser.LOCATION_BAR |
>>> ExternalBrowser.NAVIGATION_BAR);
>>>
>>> "Ivan Furnadjiev"<ivan@eclipsesource.com> wrote in message
>>> news:iadvke$dl8$1@news.eclipse.org...
>>>> Hi,
>>>> could you share your code for opening the ExternalBrowser and what
>>>> browser do you use (IE, Firefox, Safari...)?
>>>> Best,
>>>> Ivan
>>>>
>>>> On 10/29/2010 2:34 AM, Koos de Goede wrote:
>>>>> I try to open an new browser window to display a PDF from our RAP
>>>>> application. It works inside my app with the internal brawser but is I
>>>>> use
>>>>> ExternalBrowser nothing happens
>>>>>
>>>>> Any help is appriciated
>>>>>
>>>>>
>>>
>>
Re: External Browser [message #637189 is a reply to message #637176] Thu, 04 November 2010 14:32 Go to previous message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
Senior Member

Koos,

You will need to use an absolute URL with ExternalBrowser. I'm not sure how it works in some cases, maybe there are some tricks going on in the browser. ExternalBrowser is basically the same thing as opening a new browser window yourself and typing in the url, it needs the full url.

Hope that helps,

Cole
Previous Topic:Closing browser or browser-tab after workbench close
Next Topic:RAP Startup Page
Goto Forum:
  


Current Time: Fri Apr 19 08:06:31 GMT 2024

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

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

Back to the top