Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:10 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
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 17:32 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 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 19:21 Go to previous messageGo to next message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
Senior Member

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 09:36 Go to previous messageGo to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
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 22:40 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

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 07:50 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 09:10 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

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 07:05 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

> 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: Thu Mar 28 17:20:42 GMT 2024

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

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

Back to the top