Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 8 results for DOM.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  Apr 26, 2010 (1 month ago)
    Tags: DOM , jQuery , CSS , Timmy Kokke
    Timmy Kokke explains how to use jLight to interact with the DOM from Silverlight.

    Lately I’ve ran into situations where I had to change elements or had to request a value in the DOM from Silverlight. jLight, which was introduced in an earlier article, can help with that. jQuery offers great ways to change CSS during runtime. Silverlight can access the DOM, but it isn’t as easy as jQuery.



  • Silverlight and DOM Events

    0 comments  /  posted by  Silverlight Show  on  Apr 22, 2009 (more than a year ago)
    Malcolm Sheridan has written an article in which he shows how to attach Document Object Model (DOM) events to .NET event handlers in Silverlight.

    I want to demonstrate this by showing the mouse’s X and Y coordinates in a Silverlight Grid. The DOM event to connect to is the MouseMove event. I will connect to the BODY HTML MouseMove event. This means anywhere the user moves their mouse, it will display the corresponding X and Y coordinates. This can all happen thanks to the HtmlWindow.AttachEvent method. This method attaches a .NET Framework event handler to an event on the current Document Object Model (DOM).

  • Calling JavaScript functions from Silverlight 2

    0 comments  /  posted by  Silverlight Show  on  Apr 08, 2009 (more than a year ago)
    Tags: JavaScript , DOM
    Malcolm Sheridan demonstrates how to call JavaScript functions from Silverlight 2.

    Silverlight 2 is a great technology to build business centric applications, and one of the coolest features is the ability to call JavaScript functions from your Silverlight code.   

  • 3 comments  /  posted by  Jeff Paries  on  Jan 26, 2009 (more than a year ago)

    Note: This article is submitted by Jeff Paries for Silverlight: Write and Win contest.Thanks a lot, Jeff! Hello All, Please drop a comment if you like it.

    Introduction

    There have been many requests online regarding methods to go about sending content to a user from within a Silverlight application. Many Silverlight users have asked for a “Save File” dialog that can be leveraged to pass files out of an application. The technique described in this tutorial shows how you can leverage a standard HTML right-click dialog to allow a user to select the “Save Link/Target As” menu and pass any type of file from any type of object to the user, allowing them to save the file to any location they wish.

  • 5 comments  /  posted by  Boyan Mihaylov  on  Jan 12, 2009 (more than a year ago)

    Introduction

    Silverlight helps for creating Rich Internet Applications (RIAs). It runs in the context of the browser. There is an isolated area, called sandbox, which holds the Silverlight application. But why is it necessary to restrict the Silverlight applications in such a way? The answer of this question is pretty simple - because of the security. Running such applications locally is dangerous. They may damage your computer or your data. So, there is a necessity to somehow restrict them. Thus, a Silverlight application runs in the sandbox.

  • 10 comments  /  posted by  Martin Mihaylov  on  Aug 19, 2008 (more than a year ago)
    Tags: HTML , JavaScript , DOM

    Update: The demo, the source code and the code in the article are compatible with Silverlight 2 RTW. The only changes I made were to the object element in the host page.

    This tip is about adjusting the size of the Silverlight object in the Html to the size of the content in our Silverlight application. The example I will use will manipulate only the height, because the width can be manipulated in analogical way.

    Let's start with explanation of how we're going to access the Silverlight object in the HTML. We use the HtmlPage object in the codebehind. With its help we invoke a javascript function, which will deal with Silverlight object in the mark up:

    private void ResizeSilverlightOnject( double height )
    {
        HtmlPage.Window.Invoke( "ResizeObject", new object[] { height } );
    }
    

     

  • 0 comments  /  posted by  Ola Karlsson  on  Jul 25, 2008 (more than a year ago)

    Note: This article is submitted by Ola Karlsson for Silverlight Contest: Write and Win.Thanks a lot, Ola! Hello All, Please drop a comment if you like it.

    Overview

    In this article we’ll be looking at the concept of adding interactive Silverlight elements to existing Web pages to provide added rich features. We’ll be looking at creating an animated Silverlight panel which will slide in from the side of the browser window when a button is clicked.

    The somewhat tricky bit is that we want the panel to lie on top on the normal HTML content of the page and when when the Silverlight UI is slid out we want to be able to interact with the HTML instead.

    Download source code

  • 6 comments  /  posted by  Jonas Follesø  on  Jul 24, 2008 (more than a year ago)

    Note: This article is submitted by Jonas Follesø for Silverlight Contest: Write and Win.Thanks a lot, Jonas! Hello All, Please drop a comment if you like it.

    Introduction

    Silverlight and Flash have many similarities. Both are browser plug-ins that enables web developers to build richer internet applications. You can choose to have Silverlight or Flash occupy the entire screen and build all off the application, or you can have Silverlight or Flash embedded as small islands on your HTML page.

    When you decide to include Silverlight or Flash on your page there are many scenarios where you may want to enable the application to interact with the rest of your page. You may want to read data from the HTML page, or update certain HTML elements at runtime. Perhaps you are gradually enhancing an existing web application and need to leverage existing JavaScript code running on the page. In these scenarios you need to leverage the browser integration model supported by Silverlight or Flash to communicate between your application and the hosting HTML page.

    In this tutorial I’ll walk you through the basics of browser integration, and how you can make Silverlight and Flash talk to each. The tutorial starts off with some basic examples of browser integration in Flash and Silverlight, and move on to show how to enable webcam support in Silverlight using Flash.

    Download source code


Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)