Advertisement

03.12.2008 at 05:51AM PDT, ID: 23234836
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

How to call a JavaScript function from XAML when the page has a Master Page having multiple content holders

Zone: Silverlight
Tags: .NET 2.0, IE
I am using .NET 2005/Silverlight 1.0. I have included the mandatory CreateSilverlight.js and Silverlight.js files. I have a xaml file named Ticker.xaml having a Canvas root and calling a script function like so ...
<canvas
  xmlns="http://schemas.microsoft.com/client/2007"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 Loaded="MyRoot">
...... etc ....

So when the Canvas loads (as a result of a call to CreateSilverlight() from my .aspx page), it should be calling a JavaScript function MyRoot(). I've defined this function as follows:

<asp:ContentID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" RunAt="Server">
<script type="text/javascript">
var topCanvas;
function MyRoot(sender, args)
{
  alert("XAML called MyRoot");
}

The alert doesn't get fired. I've made sure the .xaml file is getting called by the defn in CreateSilverlight(). My guess is you can't make a call to MyRoot() like this directly as this is inside a contentplaceholder control. So how do I place the call to this function??? Thanks in advance!!


Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: anand_007
Solution Provided By: anand_007
Participating Experts: 1
Solution Grade: A
Views: 9
Translate:
Loading Advertisement...
03.13.2008 at 05:45PM PDT, ID: 21122207

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.14.2008 at 12:44AM PDT, ID: 21123572

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.14.2008 at 05:04AM PDT, ID: 21124617

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.14.2008 at 04:39PM PDT, ID: 21130532

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.16.2008 at 10:11PM PDT, ID: 21139950

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.20.2008 at 10:30PM PDT, ID: 21178362

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.24.2008 at 12:49AM PDT, ID: 21192343

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.30.2008 at 02:06AM PDT, ID: 21240069

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.30.2008 at 11:57PM PDT, ID: 21243569

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.01.2008 at 10:19PM PDT, ID: 21260345

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 01:08AM PDT, ID: 21279708

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2008 at 01:13AM PDT, ID: 21279734

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628