Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Error: object doesn't support property or method 'attachevent'
Error: object doesn't support property or method 'attachevent' [message #1385612] Tue, 10 June 2014 03:08 Go to next message
Tomas Normark is currently offline Tomas NormarkFriend
Messages: 8
Registered: September 2010
Junior Member
I want to run an Eclipse RAP application integrated in a Windows Presentation Foundation (WPF) application that we have. To do that I use the WPF browser widget which is just Internet Explorer 11 running in a widget in WPF.

However when I set the URL of the web browser widget to load the application I get the error:

object doesn't support property or method 'attachevent'

When searching for this I see that support for attachevent has been removed in Internet Explorer 11 and that addEventListener should be used instead.

When running the application directly in an Internet Explorer 11 web browser it works fine.

Does anyone know what might be going on here? Is there some code in RAP that tries to detect the IE version to account for the removed attachevent method that might fail when running IE11 in the WPF browser widget?

Best regards,

Tomas Normark
Re: Error: object doesn't support property or method 'attachevent' [message #1385664 is a reply to message #1385612] Tue, 10 June 2014 10:56 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Tomas,
when using IE in a browser control (SWT Browser widget or other), it
does not run in "standard" mode or it is not identified as IE11. Please
load http://www.useragentstring.com/ in your WPF browser widget and post
here the result.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Error: object doesn't support property or method 'attachevent' [message #1385688 is a reply to message #1385664] Tue, 10 June 2014 13:46 Go to previous messageGo to next message
Tomas Normark is currently offline Tomas NormarkFriend
Messages: 8
Registered: September 2010
Junior Member
Hi Ivan,

This is the user agent string that I get:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)


It appears to identify itself as an IE7 browser when running in the WPF widget. On the other hand if I run the URL you recommended in a standalone IE11 I get:

Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Do you have any recommendations about how to proceed considering this information?


Best regards,

Tomas Normark
Re: Error: object doesn't support property or method 'attachevent' [message #1385765 is a reply to message #1385688] Wed, 11 June 2014 06:18 Go to previous message
Tomas Normark is currently offline Tomas NormarkFriend
Messages: 8
Registered: September 2010
Junior Member
I managed to solve this now by adding a registry key to force IE to run as IE11 in the WPF browser widget as described on this page:

http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

Thanks for your hints in looking into the user agent string Ivan.

Best regards,

Tomas Normark
Previous Topic:[RAP] [E4] UIThreadTerminatedError in LoginLifecycle
Next Topic:[RAP] [E4] How to disable MinMax-Icons/Functionality
Goto Forum:
  


Current Time: Thu Apr 25 01:35:24 GMT 2024

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

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

Back to the top