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

  • Home
  • SEARCH
  • 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 8989391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:14:51+00:00 2026-06-15T22:14:51+00:00

I am working with a Silverlight application, that when loaded into the browser, it

  • 0

I am working with a Silverlight application, that when loaded into the browser, it sets an html <param> tag (which is within the silverlight <object> tag) with a value. Later on during the execution of the SL application, I need to change the value attribute of the <param> tag. I’m trying to accomplish this by simply calling a client side javascript function that gets the param tag by it’s id, and then call objById.setAttribute(value,”my new value”). Here’s where it gets strange. Setting the attribute this way seems to work, according to an alert message displaying the value of the attribute AFTER setting it to the new value. However, when I view source on the browser after dismissing the alert dialog, I’m still seeing the old value in the source of the webpage. Any idea why the source view wouldn’t show the new value? The param tag does have a runat="server" attribute on it because it’s initially set by the Silverlight application when it loads. Does the runat=server attribute cause problems here?

HTML:

<div id="silverlightControlHost">
  <object id="silverlightObject" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
    <param .../>
    <param .../>
    <param .../>
    <param name="initParams" id="Ip" runat="server" />
    ...

Javascript:

function refreshInitParams(newParams) {
  var slObjIp = document.getElementById("Ip");

  //Display Initial Value
  alert(slObjIp.getAttribute("value").toString());
  //Set New Value
  slObjIp.setAttribute("value", "New Value");
  //Display new value
  alert(slObjIp.getAttribute("value").toString());
}
  • 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-15T22:14:52+00:00Added an answer on June 15, 2026 at 10:14 pm

    When HTML is parsed, the browser builds a Document Object Model (DOM) out of the raw text. This is somewhat analogous to compiling a computer program, as it organizes the information in a way where the browser can quickly find information it needs and make the overall browser experience smooth. For example, if you call document.getElementById(), the browser isn’t going to re-parse all that HTML again, it’s simply going to look in an index of IDs (probably a hash table) for the element in question.

    For this reason, when you update a DOM element, using setAttribute in your case, the browser only updates the DOM. It has no reason to re-generate the HTML the DOM was built from; this would be pointless and create an unnecessary expense. For this reason, you won’t see any DOM changes reflected if you look at the browser source. You’ll only see the source as it originally came from the server.

    Hope this helps!

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

Sidebar

Related Questions

I'm working on an in-browser Silverlight application that has some fairly compute-intensive operations, e.g.,
I'm working on a Silverlight application that works with WCF services. While loading the
I am working on a C# Silverlight application that needs some text rotated 90
I am currently working on an application that allows reverse geocoding using silverlight +
I am trying to get out of browser support working for my Silverlight application
I am working on a Silverlight application that has resource files that define styles
I have a Silverlight application that I am working on. I have a few
I have a Silverlight application that consists of a MainWindow and several classes which
I've been working on a Silverlight application. I just noticed that the .xap file
I am working on a Silverlight application that uses WCF. I need to have

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.