.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Communication Between Silverlight And JavaScript (Part 2)

Posted By: Asim Sajjad     Posted Date: December 03, 2011    Points: 2   Category :Silverlight
 
While developing silverlight application there are some situation when you need to pass some information from silverlight application (which you can say managed code) to the JavaScript and also from JavaScript to silverlight application (which you can say calling managed code from the JavaScript). So in this post I will discuss how you can communicate between JavaScript and silverlight application and vice verse.


View Complete Post


More Related Resource Links

Communication Between Silverlight And JavaScript

  
While developing silverlight application there are some situation when you need to pass some information from silverlight application (which you can say managed code) to the JavaScript and also from JavaScript to silverlight application (which you can say calling managed code from the JavaScript). So in this post I will discuss how you can communicate between JavaScript and silverlight application and vice verse.

Feature available to Silverlight 4 with VS 2010.

  
In Part I of this article series we have seen some features available to Silverlight 4 with VS 2010. We will continue to explore more in this article.

Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 2

  

Here we wrap up the call center client application we began last month. The techniques we illustrate will help you build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine February 2009


Cutting Edge: Managing Dynamic Content Delivery In Silverlight, Part 2

  

This month Dino continues his look at managing dynamic Silverlight content by discussing caching and isolated storage.

Dino Esposito

MSDN Magazine February 2009


Silverlight: Build Line-Of-Business Enterprise Apps With Silverlight, Part 1

  

Take a walk through the creation of a call center client application to learn how to build real-world enterprise solutions using Silverlight.

Hanu Kommalapati

MSDN Magazine January 2009


Cutting Edge: Managing Dynamic Content Delivery In Silverlight, Part 1

  

This month Dino tackles the problem of large download size for Silverlight applications, explaining when to use streaming, when to divide the download, and other techniques for better performance over the wire.

Dino Esposito

MSDN Magazine January 2009


SharePoint Blog - Admin web part - newBlogPostOnClient JavaScript function

  

In the Admin Links web part in a default blog site, there are several links, the last one of which launches Microsoft Word and allows you to manage your posts from the Word blog template.  Cool feature.  But that web part is not configurable and I can't figure out how to duplicate that functionality.  It appears to have 3 GUIDS that are part of the function, part of the last parameter looks like the Posts list GUID, but it is concatenated with another GUID.   I want to either create my own web part or modify the XSL of the page to call the function, but I'm not sure what those other GUID parameters are.  Does anyone know?  The last one seems to be two of the separated by the # character.

Thanks


Data-Bound Design: Create a Silverlight 4 Web Part for SharePoint 2010

  
When building custom SharePoint 2010 solutions, it makes a lot of sense to take advantage of Silverlight 4 on the front end. We'll walk you through the process of building a Silverlight Web Part with Visual Studio and Expression Blend.Paul StubbsMSDN Magazine September 2010

Silverlight media player change source and play from javascript

  
I am having trouble accessing an embedded Silverlight 2 media player in an aspx page from Javascript and was hoping someone might offer some insight on what's going on. What I want to do is fire a javascript event on the client when a button is pressed to change the Silverlight media player media source and then play the newly selected file. I found what seemed like a pretty straightforward example on the silverlight.net site that looked like this:<%@ Page Title="" Language="VB" MasterPageFile="~/master.master" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %> <%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls" TagPrefix="asp" %> <asp:Content ID="Content1" ContentPlaceHolderID="Middle" Runat="Server"> <asp:MediaPlayer ID="Media1" runat="server" Height="240px" Width="320px"> </asp:MediaPlayer> <button id="Button1" onclick="onPlay()" type="button">Play</button> <script type="text/javascript"> function onPlay() { try { var player = $find("ctl00_Middle_Media1"); player.set_mediasource("example.mp3");

Blocking javascript:SubmitFormPost() in a Web Part???

  
I have a link list I'm displaying as a web part on my site's home page. I'm using SharePoint 2010 Server. I have another document library web part as well. The link list has a couple of folders that contain other hyperlinks. Very nice for grouping. Anyways, when a user clicks on the folder in the link list, it uses "javascript:SubmitFormPost()" to refresh and display only the contents of the folder. Meanwhile, it must be passing something to my document library web part because instead of showing the nice top-level view of all the library folders, it shows a bunch of folders with names like "1", "0", "2" and othe stuff from the document library. I'm wondering if I can block the javascript:SubmitFormPost() from affecting my document library web part? Is there something else that would cause this to happen??? Thanks!!

Best method for authentication with an external WCF service called from a Silverlight 4 Web Part ins

  
If we have a Silverlight 4 application which gets its data from an external WCF service and is deployed as a Web Part on in SharePoint 2010 what is the best method to perform authentication in the WCF service itself.  The service is not on the same domain as the SharePoint server but any user authenticated by the SharePoint server (and only those users) should be able to access the service.  Since the Silverlight application is calling the service the WCF service itself must be configured to use BasicHttpBinding which, of course, severely limits possible authentication methods.

Using javascript and ActiveX in developing web part for sharepoint 2010

  

I am trying to develop a webpart that uses javascripts to access an ActiveX. The activex is a clinet side component which is accessed by javascripts to to open graphics file and display it.

I put activeX inside the _layout directory.

Please is there any help on how we refrence and includes javascripts code files and the ActiveX inside the webpart? I use VS2010 and tried to build a webpart  but it seems the javascripts didnt run and am sure there is something missing.

Thanks alot for any help.


Performing two events(saving and deleting item) on button click in javascript in a dataview web part

  

Hello guys,

I have a requirement like...I have a dvwp, in that I have comments field as text box. So that when ever user tries to delete the item, he enters comments and deletes it.It will send an notification with information and gets deleted.

So I have to do this by javascript. Do you guys have any idea?


Silverlight Web Part

  

Hi! ..i've got a silverlight web part where i load an application that i've created in VS2010...

now i need to pass a parameter on the URL to the silverlight application... i know how to retrieve the url, but how can i handle the fact that if i add for example ?id=5 to my Sharepoint site page URL that embeds the web part, it returns invalid URL...


ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

  
This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

WPF: If Heineken did MVVM Frameworks Part 4

  
MVVM is to have an instance of a particular Model (say currentPerson) inside my ViewModel (say PeopleViewModel) which is exposed to the View (say PeopleView). The View binds and edits the Model directly.

This definitely flies in the face of what most people consider to be the holy grail of MVVM pattern, but it's a fairly new pattern, so people are still finding their way with it every day, and this works for me very well. The reason I do what I do, is for the following reasons:

1.I have always had the luxury of being able to write my own UI specific Model classes. I would even do this if I was using some other Model classes first, such as LINQ to SQL or LINQ to Entity Framework. As these classes don't have everything a proper WPF Model class needs in my humble opinion. Though, they are pretty good, as they are Partial classes and use INotifyPropertyChanged/DataContract etc etc
2.I am a pragmatist and I do not like writing code for the sake of writing code. I have seen some MVVM apps where the author has had a Model with 50 properties on it, that are simply repeated in the ViewModel abstraction, where the ViewModel added nothing. On that day I decided I would never do that unless I have to.
3.I honestly see no harm in writing directly to the Model from the View, JUST SO LONG AS if the Model is InValid its data NEVER makes its way to the database. I honestly see no pro

Serving Silverlight Apps from Windows Mobile

  
Even if mobile dev is not my every day work, thanks to the .Net Compact Framework, it's still .Net programming.

Here is the scenario:

You come back home, you have a windows mobile phone wifi capable and you want to quickly get access to your phone pictures from your home network.
You just activate the Wifi, run my app and then browse to the provided link from any computer on the network.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend