Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser.setUrl() creates duplicate requests
Browser.setUrl() creates duplicate requests [message #1736672] Fri, 01 July 2016 06:07 Go to next message
Frank Jakop is currently offline Frank JakopFriend
Messages: 5
Registered: July 2016
Junior Member
We're in progress to migrate from RAP 2.3 to 3.1 and encountered some strange behaviour of the Browser-Widget.
We used the Browser to download files as described in RAP FAQ and it worked fine so far. After upgrading to RAP 3.1 the following code produces two requests to the given url. Inspecting the network traffic in Chrome developer tools the first one is shown as canceled.
Browser browser = new Browser( parent, SWT.NONE );
browser.setUrl(RWT.getServiceManager().getServiceHandlerUrl( "downloadServiceHandler" ));

This behaviour is reproducable with any url (here: www.google.de), the network requests are shown below
index.php/fa/26315/0/
We see a strange request with status cancelled (marked red).

Unfortunetely we can not just ignore the first cancelled request because in our case of a request to a service handler the handler is called twice.

This behaviour applies to Internet Explorer (11) and Chrome (51), we could not reproduce it wit Firefox (47).
I've created a sample project wich demonstrates the error.

Does anyone have similar issues or knows a solution?
Re: Browser.setUrl() creates duplicate requests [message #1753060 is a reply to message #1736672] Wed, 01 February 2017 13:39 Go to previous messageGo to next message
Christian Brugger is currently offline Christian BruggerFriend
Messages: 10
Registered: November 2013
Junior Member
Hi there!

We're having the same problem using RAP 3.1.1. Did you find any solution to this so far?

Christian
Re: Browser.setUrl() creates duplicate requests [message #1753411 is a reply to message #1753060] Mon, 06 February 2017 07:25 Go to previous messageGo to next message
Frank Jakop is currently offline Frank JakopFriend
Messages: 5
Registered: July 2016
Junior Member
IMHO this was fixed in RAP 3.1.2.
Re: Browser.setUrl() creates duplicate requests [message #1760655 is a reply to message #1753411] Sun, 30 April 2017 12:25 Go to previous message
Wim Anckaert is currently offline Wim AnckaertFriend
Messages: 32
Registered: December 2012
Member
we solved this with settext of browserwidget and filedownload jquery plugin.
It seemed to be much more stable even on mobile devices


<html><head>
<script src='/plugins/jquery-1.8.3.min.js'></script>
<script src='/plugins/jquery.fileDownload.js'></script>
<script>
$( document ).ready(function() {
$.fileDownload(' + url + ');
});
</script>
</head><body></body></html>

[Updated on: Sun, 30 April 2017 12:26]

Report message to a moderator

Previous Topic:Button#setImage() doesn't update image dynamically
Next Topic:How to terminate the UI thread
Goto Forum:
  


Current Time: Sat Apr 27 00:27:30 GMT 2024

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

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

Back to the top