Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Non working url in browser widget
Non working url in browser widget [message #965924] Wed, 31 October 2012 12:10 Go to next message
Eclipse UserFriend
Hello,

For some url org.eclipse.swt.browser.Browser.setUrl does not work. The iframe content is empty but there is no error.
It is possible to reproduce this in controlsdemo, in Browser demo try to set "http://www.google.com", clicking on Go does nothing. Is there a way to have this url working in Browser ?

Best regards,
Arnaud
Re: Non working url in browser widget [message #966016 is a reply to message #965924] Wed, 31 October 2012 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Arnaud,
it's really interesting. I've tested the Controls Demo as well and you
are right - the www.google.com is not loaded. I don't think that this is
a RAP issue as other absolute URLs are loaded without problem. I will
investigate it when I have time.
Best,
Ivan

On 10/31/2012 6:10 PM, Arnaud MERGEY wrote:
> Hello,
>
> For some url org.eclipse.swt.browser.Browser.setUrl does not work. The
> iframe content is empty but there is no error.
> It is possible to reproduce this in controlsdemo, in Browser demo try
> to set "http://www.google.com", clicking on Go does nothing. Is there
> a way to have this url working in Browser ?
>
> Best regards,
> Arnaud
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Non working url in browser widget [message #966114 is a reply to message #966016] Wed, 31 October 2012 15:21 Go to previous messageGo to next message
Eclipse UserFriend
This is a browser "feature" and is not specific to RAP, see this site[1] for another example that will fail if you try http://www.google.com. Google is preventing its site from loading in the iframe[2]. I was not aware of this feature before, but it seems to be the same for both IE9 and Chrome at least. On IE you get this message:
Quote:

This content cannot be displayed in a frame

To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.


[1] http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe
[2] https://groups.google.com/forum/?fromgroups=#!topic/youtube-api/LSI2cxZyoJg

Cole
Re: Non working url in browser widget [message #968213 is a reply to message #966114] Fri, 02 November 2012 05:36 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the info, I was not aware it was possible to prevent a site from beeing load inside an iframe (other than by writing some javascript to achieve this), so I have learned something today. I forgot to test it with IE, only with chome and FF, and they display about:blank instead of an error, that's why I was wondering what's happened.

Best regards,
Arnaud
Re: Non working url in browser widget [message #1066522 is a reply to message #965924] Tue, 02 July 2013 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi all,
we are trying to use RAP (2.1) and Browser component to handle applications like GMail ("http://mail.google.com") or our site administration area ("http://www.rcp-vision.com/wp-admin"), but in both cases the message is "This content cannot be displayed in a frame".
How can we solve this problem? Is there some workaround?
Thank you very much

Vincenzo
Re: Non working url in browser widget [message #1066560 is a reply to message #1066522] Wed, 03 July 2013 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Vincenzo,

It seems that you cannot put gmail in an iframe[1]. The browser widget
in RAP uses an iframe and there is not alternative to that.

Regards, Ralf

[1] http://stackoverflow.com/questions/3325208/how-can-i-iframe-gmail

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Non working url in browser widget [message #1066578 is a reply to message #1066560] Wed, 03 July 2013 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralf,
regarding Gmail we can surrender, but we are having this problem also with other sites.

In general we are trying to understand if RAP Browser can be used to embed a number of third-party web applications.
What specification should they exactly satisfy?

Thank you
Vincenzo
Re: Non working url in browser widget [message #1066917 is a reply to message #1066578] Fri, 05 July 2013 03:05 Go to previous message
Eclipse UserFriend
> In general we are trying to understand if RAP Browser can be used to
> embed a number of third-party web applications. What specification
> should they exactly satisfy?

They must be running in an iframe [1]. Applications can prevent
embedding in an iframe by means of JavaScript or an HTTP header, for
examples see [2].

Regards,
Ralf


[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
[2]
http://stackoverflow.com/questions/4948168/prevent-page-opening-on-an-iframe

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Compression of communication in Rap 2.0
Next Topic:MediaOrgan - applied RWT/SWT single-sourcing
Goto Forum:
  


Current Time: Wed Jul 23 15:37:01 EDT 2025

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

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

Back to the top