I have an app with a WebBrowser component and I'm setting the the
ObjectForScripting component so the object can be used from javascript.
The object has a Scripting.Dictionary property. My problem is that in
javascript I have to use "external.dictionary.Item('x')" to get the
items instead of "external.dictionary('x')". If I create the
Scripting.Dictionary in javascript it works ok. For example:
javascript:
var dict=new ActiveXObject( 'Scripting.Dictionary' );
dict.Add("item1","test");
external.dictionary.Add("item1","test");
alert(dict("item1"));
alert(external.dictionary("item1")); // this fails
alert(external.dictionary.Item("item")); / this works
What can I do so the dictionaries created by C# work the same as the
Javascript created ones?