Home » Eclipse Projects » Remote Application Platform (RAP) » Is it possible to show browser's scrollBar in RAP?
| | |
Re: Is it possible to show browser's scrollBar in RAP? [message #519232 is a reply to message #519209] |
Mon, 08 March 2010 08:10 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Wayne,
there are several ways to achieve this:
1. Change the RAP source code - you can do this in the Application.js,
somewhere around line 114 in main function.
2. Create (if not exist) a custom widget - see [1]
3. Write the javascript code from the server side directly:
ContextProvider.getStateInfo().getResponseWriter().append( <put your
javascript code here> );
[1]
http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/custom-widget.html
HTH,
Ivan
On 03/08/2010 5:06 AM, wayne wrote:
> Ivan, thank you very much! That is what I want. But I am not so
> familiar with qooxdoo. Could you please tell me in detail how I can
> change it. At the moment, I am using
> "org.eclipse.rap.rwt.q07_1.3.0.20091214-1156.jar", do I need to change
> this .jar file? If so, what should I do? if not so, where should I
> change the js file?
|
|
|
Re: Is it possible to show browser's scrollBar in RAP? [message #519241 is a reply to message #519232] |
Mon, 08 March 2010 09:17 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
I can't really recommend the proposed solution as it relies on internals
of the current client-side implementation. These may change without
prior notice.
Another approach is to place a ScrolledCompsoite in the "main" shell.
HTH,
Rüdiger
On 08.03.2010 09:10, Ivan Furnadjiev wrote:
> Hi Wayne,
>
> there are several ways to achieve this:
> 1. Change the RAP source code - you can do this in the Application.js,
> somewhere around line 114 in main function.
> 2. Create (if not exist) a custom widget - see [1]
> 3. Write the javascript code from the server side directly:
> ContextProvider.getStateInfo().getResponseWriter().append( <put your
> javascript code here> );
>
> [1]
> http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/custom-widget.html
>
>
> HTH,
> Ivan
>
> On 03/08/2010 5:06 AM, wayne wrote:
>> Ivan, thank you very much! That is what I want. But I am not so
>> familiar with qooxdoo. Could you please tell me in detail how I can
>> change it. At the moment, I am using
>> "org.eclipse.rap.rwt.q07_1.3.0.20091214-1156.jar", do I need to change
>> this .jar file? If so, what should I do? if not so, where should I
>> change the js file?
|
|
| |
Re: Is it possible to show browser's scrollBar in RAP? [message #525536 is a reply to message #519232] |
Tue, 06 April 2010 19:34 |
Ed Messages: 4 Registered: April 2010 |
Junior Member |
|
|
Hi Ivan (and other RAP experts),
I also had a similar issue (how to enable browser scrollBar in RAP). I am limited to RAP 1.2 capabilities since our product cannot be upgraded at the moment. The most practical solution to me was using 'qooxdoo/javascript':
var doc = qx.ui.core.ClientDocument.getInstance();
doc.getDocumentElement().body.style.overflow = "auto";
It works perfect on IE but FireFox 3.6 ignores it, After some digging into FF websites I found that one of the reasons could be that FF 3.6 doesn't honor getDocumentElement() and getElementById(id) must be used.
Do you know if any other way to get scrollbar on FF browser enabled via JS from within RAP/qoox code/scripts? Or how can I get handle of the 'id' in order to use getElementById? Is there any know issues with this regard that is fixed in RAP 1.3 that I can backport to 1.2 to get us going? I am open to any possible workaround. Please keep in mind that I am able to add scrollbars to the parent shell of my app but that is not what we want. The solution that I am looking for is to enable the scrollbars for the browser.
I even changed 'dom.disable_window_open_feature.location' to true in FF configuration but the scrollbars won't show up on the window that is opened by RAP.
Appreciate for any hints,
Ed
[Updated on: Tue, 06 April 2010 19:43] Report message to a moderator
|
|
| | |
Re: Is it possible to show browser's scrollBar in RAP? [message #525875 is a reply to message #525728] |
Thu, 08 April 2010 07:15 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Ed,
RAP 1.3 is backward compatible with RAP 1.2. I know only one
incompatible issue related to custom widgets, which is easily resolved -
see bug 261355, comments # 11, 13.
HTH,
Ivan
On 04/07/2010 6:27 PM, Ed wrote:
> Hi Ivan, Thanks for your quick response.
> Is there any document/best practices/known issues on migrating RAP
> 1.2.2 projects to RAP 1.3 that you can point me to?
>
> Regards,
> Ed
|
|
|
Re: Is it possible to show browser's scrollBar in RAP? [message #525904 is a reply to message #525875] |
Thu, 08 April 2010 07:42 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
Ed,
as Ivan already said, in general, each version of RAP is backward
compatible to its predecessor.
Noteworthy news for every milestone as well as incompatibilities (if
ever) are documented here:
http://www.eclipse.org/rap/noteworthy
HTH
Rüdiger
On 08.04.2010 09:15, Ivan Furnadjiev wrote:
> Hi Ed,
>
> RAP 1.3 is backward compatible with RAP 1.2. I know only one
> incompatible issue related to custom widgets, which is easily resolved -
> see bug 261355, comments # 11, 13.
>
> HTH,
> Ivan
>
> On 04/07/2010 6:27 PM, Ed wrote:
>> Hi Ivan, Thanks for your quick response.
>> Is there any document/best practices/known issues on migrating RAP
>> 1.2.2 projects to RAP 1.3 that you can point me to?
>>
>> Regards,
>> Ed
|
|
|
Goto Forum:
Current Time: Sat Oct 05 09:45:12 GMT 2024
Powered by FUDForum. Page generated in 0.04830 seconds
|