Subject: | use Win32::OLE for GetOLE, PropVal is strings-only, IE9 |
Date: | Sat, 26 Nov 2011 07:19:34 +0100 |
To: | bug-wx-activex [...] rt.cpan.org |
From: | Bjoern Hoehrmann <derhoermi [...] gmx.net> |
Hi,
I had trouble using Wx::ActiveX, accessing methods and properties in
particular. One problem was that the GetOLE method did not work, which
turned out to be because I did not load the module myself first. That
should be mentioned in the documentation (or it should load it itself,
if that is a suitable option). The other is that PropVal seems to turn
values into strings, even though say Wx::ActiveX::IE lists properties
as being of other types like IDispatch, so often I just got "[object]".
This stringification should also be mentioned in the documentation.
(So far I'm using $ie->GetOLE()->Document to get to a proper Document
object I can call method like createElement on, not sure if that is
the best way.)
It might also be worth noting that applications hosting Internet Ex-
plorer will default to running in IE7 compatibility mode when IE9 is
installed, meaning new features will be unavailable and others might
not work as expected. The only way to change that would be through a
<meta content="IE=9" http-equiv="X-UA-Compatible" /> meta header in
the HTML document, a corresponding HTTP header when HTTP is used, or
a "Feature Control" setting in the registry for the executable this
is meant to apply to (which in case of perl.exe would be perl.exe). I
at least know no other way, though I do see that the F12 debugger can
change the setting on a per-tab basis using some means I've not seen
documented anywhere.
regards,
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/