Home » Eclipse Projects » Remote Application Platform (RAP) » External Browser
| |
Re: External Browser [message #636094 is a reply to message #636056] |
Fri, 29 October 2010 09:37 |
Koos de Goede 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 |
Koos de Goede 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 |
Ivan Furnadjiev 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 |
Koos de Goede 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 |
|
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
|
|
|
Goto Forum:
Current Time: Fri Apr 19 08:06:31 GMT 2024
Powered by FUDForum. Page generated in 0.02064 seconds
|