Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ExternalBrowser open url problem
ExternalBrowser open url problem [message #133953] Mon, 25 May 2009 07:08 Go to next message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi,
I use the the ExternalBrowser to open url for user downlading files in my
application.

The simple code as below:

while (iterator.hasNext()) {
String downloadUrl = iterator.next();
if (downloadUrl != null && !downloadUrl.equals("")) {
ExternalBrowser.open("" + downloadUrl.hashCode(),
downloadUrl,ExternalBrowser.LOCATION_BAR);
}
}

the url parameter passed to ExternalBrowser like
as:http://localhost:9090/download/12422078509457471471.xls

In firefox, the application works fine that shows the file save dialogs for
user.But in IE6/IE7,when the application try to open browser with the given
url, the browser shows the js error.

More information:
the browser shows the error:

Could not evaluate javascript response:parameter
invalid.  org.eclipse.swt.EventUtil.suspendEventHandling();var req =
org.eclipse.swt.Request.getInstance();req.setRequestCounter( "20" );qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();org.eclipse.rwt.widgets.External Browser.open( "-118096232", "http://localhost/download/12432249757940252628.xls", " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 " );org.eclipse.rwt.widgets.ExternalBrowser.open( "1118391091", "http://localhost/download/12432249842090825262.xls", " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 " );

I also try the Build ID:RAP1.2.0-RC1-20090519-1552, and the problem still
exist.

is it a bug?

I find the bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=213213, similar
with my problem.But it said the "file:///" protocal, not the http.

Best Regards,
Cheney
Re: ExternalBrowser open url problem [message #133986 is a reply to message #133953] Mon, 25 May 2009 12:22 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Cheney,

this looks like a bug. Feel free to enter a bug report.

Thanks,
Rüdiger

Cheney wrote:
> Hi,
> I use the the ExternalBrowser to open url for user downlading files in my
> application.
>
> The simple code as below:
>
> while (iterator.hasNext()) {
> String downloadUrl = iterator.next();
> if (downloadUrl != null && !downloadUrl.equals("")) {
> ExternalBrowser.open("" + downloadUrl.hashCode(),
> downloadUrl,ExternalBrowser.LOCATION_BAR);
> }
> }
>
> the url parameter passed to ExternalBrowser like
> as:http://localhost:9090/download/12422078509457471471.xls
>
> In firefox, the application works fine that shows the file save dialogs for
> user.But in IE6/IE7,when the application try to open browser with the given
> url, the browser shows the js error.
>
> More information:
> the browser shows the error:
>
> Could not evaluate javascript response:parameter
> invalid. org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "20" );qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();org.eclipse.rwt.widgets.External Browser.open( "-118096232", "http://localhost/download/12432249757940252628.xls", " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 " );org.eclipse.rwt.widgets.ExternalBrowser.open( "1118391091", "http://localhost/download/12432249842090825262.xls", " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 " );
>
> I also try the Build ID:RAP1.2.0-RC1-20090519-1552, and the problem still
> exist.
>
> is it a bug?
>
> I find the bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=213213, similar
> with my problem.But it said the "file:///" protocal, not the http.
>
> Best Regards,
> Cheney
>
>
Re: ExternalBrowser open url problem [message #134109 is a reply to message #133986] Tue, 26 May 2009 02:37 Go to previous message
Eclipse UserFriend
Originally posted by: cheney_chen.i-len.com

Hi Rüdiger,

I filed a bugzilla.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=277780.

Cheney

Rüdiger Herrmann wrote:

> Cheney,
>
> this looks like a bug. Feel free to enter a bug report.
>
> Thanks,
> Rüdiger
>
> Cheney wrote:
>> Hi,
>> I use the the ExternalBrowser to open url for user downlading files in my
>> application.
>>
>> The simple code as below:
>>
>> while (iterator.hasNext()) {
>> String downloadUrl = iterator.next();
>> if (downloadUrl != null && !downloadUrl.equals("")) {
>> ExternalBrowser.open("" + downloadUrl.hashCode(),
>> downloadUrl,ExternalBrowser.LOCATION_BAR);
>> }
>> }
>>
>> the url parameter passed to ExternalBrowser like
>> as:http://localhost:9090/download/12422078509457471471.xls
>>
>> In firefox, the application works fine that shows the file save dialogs
>> for user.But in IE6/IE7,when the application try to open browser with the
>> given url, the browser shows the js error.
>>
>> More information:
>> the browser shows the error:
>>
>> Could not evaluate javascript response:parameter
>> invalid. org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "20"
>> );qx.ui.core.Widget.flushGlobalQueues();org.eclipse.swt.Even tUtil.resumeEventHandling();org.eclipse.rwt.widgets.External Browser.open(
>> "-118096232", "http://localhost/download/12432249757940252628.xls",
>> " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 "
>> );org.eclipse.rwt.widgets.ExternalBrowser.open( "1118391091",
>> "http://localhost/download/12432249842090825262.xls",
>> " dependent=1,scrollbars=1,resizable=1,status=0,location=1,too lbar=0,menubar=0 "
>> );
>>
>> I also try the Build ID:RAP1.2.0-RC1-20090519-1552, and the problem still
>> exist.
>>
>> is it a bug?
>>
>> I find the bug:https://bugs.eclipse.org/bugs/show_bug.cgi?id=213213,
>> similar with my problem.But it said the "file:///" protocal, not the
>> http.
>>
>> Best Regards,
>> Cheney
>>
>>
Previous Topic:how to setting encoding in webappBuilder.xml
Next Topic:How to remove/change the branding after Workbench closure
Goto Forum:
  


Current Time: Fri Dec 03 15:34:40 GMT 2021

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

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

Back to the top