Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser.setUrl() creates duplicate requests
Browser.setUrl() creates duplicate requests [message #1736672] Fri, 01 July 2016 02:07 Go to next message
Eclipse UserFriend
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 08:39 Go to previous messageGo to next message
Eclipse UserFriend
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 02:25 Go to previous messageGo to next message
Eclipse UserFriend
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 08:25 Go to previous message
Eclipse UserFriend
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 08:26] by Moderator

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


Current Time: Fri Jul 04 11:03:54 EDT 2025

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

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

Back to the top