What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] navigator.appVersion with BrowserControl

[?] navigator.appVersion with BrowserControl
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. [?] navigator.appVersion with BrowserControl
Well, I've done some experimenting with the browser control lately, and I've figured out that it uses IE 7.0. However, I've got IE 9.0 installed. I've used the following statement in a BrowserControl and in IE 9:

Javascript code:
javascript:alert(navigator.appVersion)


In IE 9 it says (among other things) "5.0 (compatible; MSIE 9.0; ..." whereas the BrowserControl says "4.0 (compatible; MSIE 7.0; ..." The problem is: the BrowserControl behaves like IE 7, while I want it to behave like IE 9. Can this be done?
05-28-2011 03:57 PM
Profile PM Find Quote Report
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
RE: [?] navigator.appVersion with BrowserControl
I've noticed this before...  I had IE8 on my old PC, but the browser object still acted like IE7.  Also, on XP, if you make a website-based toolbar (right-click taskbar > Toolbars > New... > enter a URL) and use the same statement, it comes up as IE7 as well.  Seems all the browser controls still use IE7.  :S

What are you trying to do that needs IE9?
05-28-2011 04:40 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] navigator.appVersion with BrowserControl
This: document.defaultView
05-28-2011 04:59 PM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] navigator.appVersion with BrowserControl
In case you haven't figured this out, these links might be helpful

Internet Feature Controls (B..C)
Specifying Document Compatibility Modes

I'm at work so I can't test :P
05-30-2011 02:10 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] navigator.appVersion with BrowserControl
Thread-bump: I think I should let y'all know that I've found an alternative:

JScript code:
/* This is code executed by Plus! */
 
var document = WndInternet.Browser_GetInterface("BrowserCtrl").document;
var window = document.parentWindow; // This is a window object as seen by HTML/JavaScript
 
window.alert("Hello world!"); // actually works!


This works even though IE is in compatibility mode. I think it's a standard, so it's unlikely to be dropped in future versions of IE; but I might be wrong about that, dunno.
06-25-2011 03:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On