How to pass associative Array parameter from javascript to ActiveX object?

Posted by Rory on Stack Overflow See other posts from Stack Overflow or by Rory
Published on 2010-06-16T20:04:00Z Indexed on 2010/06/16 21:02 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I'd like to pass an associative array (or simply an object with property names & values) to my ActiveXObject. I can't find anyone who has successfully and simply passed complex data from javascript to an ActiveX object.

My ActiveX object is being loaded in IE, and it's mine so I can change the method signature & code to whatever will work. I also have control over the structure of the javascript.

Without a simple way of doing this I'm thinking of url-encoding the data and sending it as a string. But that does seem a little silly if it's possible just to pass an object.

The ActiveX object is coded in C# if that makes any difference...

© Stack Overflow or respective owner

Related posts about .NET

Related posts about JavaScript