IRC Log Viewer » #firebreath » 2014-04-15

IRC Nick Time (GMT-7) Message
grokblah 14:04 I'm returning an FB::VariantList with 3 items but IE10 sees it as Undefined (Object-Static). Has anyone seen this before?
taxilian 15:04 grokblah I haven't seen that before, are all other return values working correctly?
grokblah 15:04 properties work properly
properties work properly
and I can debug and see the value in visual studio 2010
it's like the value was destroyed after being created from the FB::VariantList
it's like the value was destroyed after being created from the FB::VariantList
taxilian 15:04 so the thing to understand here is that none of those types can actually be directly sent back to the browser
they all have to be converted to something else for the browser to understand them
JSAPI and firebreath do this all for you, is all
grokblah 15:04 right, I'm saying that the COM safearray is being destroyed or something. it looks okay before the process goes back into IE code.
right, I'm saying that the COM safearray is being destroyed or something. it looks okay before the process goes back into IE code.
taxilian 15:04 I wonder if maybe IE10 doesn't support arrays the same way or something
grokblah 15:04 what's the difference between the ComVariantUtil::makeComVariant() code and the ActiveXBrowserHost::getComVariant() code for converting values?
taxilian 15:04 let me look, I forget
oh
getComVariant uses makeComVariant
grokblah 15:04 ah
is there a developer that focuses on the ActiveX code?
taxilian 15:04 unfortunatlye, that would be me
grokblah 15:04 do you have any suggestions for debugging this problem?
taxilian 15:04 let me think for a few minutes
grokblah 15:04 btw, thanks for coming on IRC and helping people!
taxilian 15:04 so there are a few things I'd look at
the first is see if changing things about your page that affect how the browser interprets it changes the problem
for example, your doctype; try removing it entirely, try adding doctype html, etc
IE has been known to do a lot of weird things based on doctype, unfortunately
it is also possible that the way I'm constructing the array isn't the "correct" way to do it, but for previous versions of IE it was "good enough" — that has happened to us several times
it is also possible that the way I'm constructing the array isn't the "correct" way to do it, but for previous versions of IE it was "good enough" — that has happened to us several times
I'm not a real activex expert, just the closest we have, so it's quite possible that it should be done differently somehow
see if you can find examples on the web of how to do it differently
finally, if you can't get any of that to work, you might consider just constructing a JSON string and passing it back — I know that sounds really hacky, but as it turns out it actually performs better anyway
grokblah 16:04 the doctype and <meta>/X-UA-Compatible tags don't seem to have an effect
taxilian 16:04 also check compatibility mode
grokblah 16:04 really?
I'm curious, do you work on FB and get paid or is this a side project? I work for a nonprofit and know how it is with few resources.
taxilian 16:04 I work for a company that uses firebreath — the third I've worked for that uses it, the first being the one that funded initial development
but most of the development work has been on my own time since the initial; sometimes as part of work I was doing because a company needed it
which is why I can't drop everything right now and help you troubleshoot this, much as I'd like to =]
grokblah 16:04 I'm researching and trying to find out if there IS indeed a more proper way to pass back an array.
both of my methods that return arrays have the same problem.
taxilian 16:04 honestly? if it were me I'd probably just return JSON
as a string
JSON.parse is available on nearly any browser
JSON.parse is available on nearly any browser
grokblah 16:04 any idea what "GJS" is?
it's in a comment within ComVariantUtil
taxilian 16:04 Georg, most likely
hmm
hmm
wait, no
he'd be GF
it's someone's initials who submitted a code patch, I think
Gordon Smith
grokblah 16:04 ok