Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7851335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:08:58+00:00 2026-06-02T19:08:58+00:00

I have an OOB silverlight application. I have Silverlight 5 developer runtime and all

  • 0

I have an OOB silverlight application. I have Silverlight 5 developer runtime and all the silverlight 5 developer tools installed. The OOB Application has a silverlight view with a WebBrowser control on it. The Source that of webBrowser control is this aspx page:

<head>
    <title></title>
    <script type="text/javascript" language="javascript">

        function test() {
            if (hiddenDiv.style.display == "none")
                hiddenDiv.style.display = "block";
            else
                hiddenDiv.style.display = "none";
        }

        function handCursor() {
            clickTest.style.cursor = "hand";
        }
        function defaultCursor() {
            clickTest.style.cursor = "default";
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <%--This Link Doesn't Work--%>
        <a href="javascript: test()">Javascript Href test</a></br>


        <%--This Link Works--%>
        <a id="clickTest" onclick="test()" onmouseover="handCursor()" onmouseout="defaultCursor()" style="text-decoration: underline; color:Blue">OnClick Test</a>

            <div id="hiddenDiv" style="display:none; background-color:Black">
                <span style="color:White; display:inherit">Look at me!</span>
            </div>
    </div>
    </form></body>

(Note: Yes I know the above code is not complete HTML. I could not get the editor to display the full page properly. I cut off the html tags. Also note that this is just a test page, not the real page I want to display in my app. I was just trying to isolate the problem).

When the above code is run in IE9 it works just fine. The links make the Div called “hiddenDiv” hide and show. When it is displayed in a WebBrowser control in a silverlight app it works fine on another developer’s machine, but on my machine it does not. I click the link and nothing happens. It appears that the javascript simply does not execute. It appears to only have this issue using the href=javascript method. onclick works great. Unfortunately I don’t own the pages i want to display in my app and cannot change the code.

A co-worker of mine believes that this issue might be due to my mistakenly installing the standard silverlight 5 runtime before realizing my mistake and installing the developer runtime. Even though I have since removed the offending file and reinstalled the Silverlight5 Tools.exe. In fact I uninstalled and re-installed all silverlight related products (except VS 2010) and uninstalled IE 9. All to no avail.

If anyone has any additional information on this problem please let me know. We need a solution that does not involve modifying the html. I dont control that html. I am hoping to embed an external web application in my OOB SL application by simply displaying it in a web browser control inside my application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:09:00+00:00Added an answer on June 2, 2026 at 7:09 pm

    I discovered the answer to this issue on this thread:

    FEATURE_SCRIPTURL_MITIGATION

    The issue is a registry setting that turns elements of javascript execution on and off. It is also described in this MSDN Article:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running OOB silverlight application where I have a WebBrowser control but I
I have a silverlight app that will be installed OOB with full trust and
We have a Silverlight application that runs OOB (out of browser) so the user
I have created a Silverlight application that runs OOB with extra features. We've taken
I have an OOB Silverlight 4 application (I can upgrade to Silverlight 5 if
When a Silverlight 4 application is installed and run out-of-browser (OOB), is it possible
I am currently developing a Silverlight OOB application using the Bing Map Control, however
I'm developing a SL4 OOB application that has suddenly started giving me the white
I have a signed XAP (Silverlight version 4.0.50401.0) installed with elevated trust in OOB.
When running Silverlight 3.0 in OOB mode, you don't have to worry about any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.