Home » Eclipse Projects » Remote Application Platform (RAP) » ExternalBrowser open url problem
ExternalBrowser open url problem [message #133953] |
Mon, 25 May 2009 03:08  |
Eclipse User |
|
|
|
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 08:22   |
Eclipse User |
|
|
|
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] |
Mon, 25 May 2009 22:37  |
Eclipse User |
|
|
|
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
>>
>>
|
|
|
Goto Forum:
Current Time: Sat Jul 19 02:00:08 EDT 2025
Powered by FUDForum. Page generated in 0.04998 seconds
|