Questions tagged [htmlbridge]

In Microsoft Silverlight, the HTML Bridge is an integrated set of types and methods.

In Silverlight, the HTML Bridge is an integrated set of types and methods that enable you to do the following:

  • Expose complete managed types to JavaScript for scripting.
  • Expose individual methods of managed types to JavaScript for scripting.
  • Pass managed types as parameters to JavaScript functions and objects.
  • Return managed types from JavaScript.
  • Assign managed types as event handlers, which are callable from JavaScript.
  • Call JavaScript event handlers from managed types.
  • Control various security aspects of your Silverlight-based application.

In addition, the HTML Bridge provides managed containers for Document Object Model (DOM) elements such as window, document, and standard HTML elements.

6 questions
1
vote
1 answer

Can I set an instance property in Javascript on a Scriptable Member property in Silverlight?

I have the following (2) 'ScriptableMember' types in my Silverlight control: Public Property MType As MyCustomType Public Property Message As String The purpose here is obviously to allow exposure via the…
atconway
  • 20,624
  • 30
  • 159
  • 229
1
vote
1 answer

Javascript Button that fires a SilverLight method?

I've created a Silverlight application that basically builds a cross section image of a multi-layered sphere (think concentric circles) from data stored in a JSON string. The JSON string is an array of diameter+color values, and looks like…
lamarant
  • 3,243
  • 2
  • 25
  • 30
1
vote
1 answer

Pass Silverlight type to Microsoft AJAX and pass parameter validation

I'm working on a Silverlight application where I want to take advantage of the Microsoft ASP.NET AJAX Client library. I'm calling the library using the HTML Bridge that is part of Silverlight 2. Silverlight got great support for passing types…
Jonas Follesø
  • 6,441
  • 7
  • 41
  • 54
1
vote
3 answers

Notification when popup is closed using Silverlight's HtmlPage.PopupWindow()

I am popping up an HTML page from a Silverlight application using the HtmlPage.PopupWindow() method. I am trying to handle the event of when the popup window is closed from within Silverlight. This is how I am attempting to do this: var window =…
Dan Auclair
  • 3,607
  • 25
  • 32
1
vote
1 answer

LocationCollection not tagged as ScriptableType but can be instantiated in script (How come?)

I'm working on a small silverlight application that involves passing some data between javascript and silverlight. I am also using the silverlight virtual earth control. The weirdness I have come across is that is possible to register…
1
vote
2 answers

Why aren't my JavaScript arrays able to be converted to the appropriate types?

I'm having some trouble passing JavaScript arrays and dictionary-type objects to methods in my managed code via the HTMLBridge. The infomation in Microsoft article detailing this topic and around the net have led me nowhere. Using the following info…
Kevin
  • 2,617
  • 29
  • 35