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 7821625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:42:37+00:00 2026-06-02T07:42:37+00:00

I have an Object and I’m trying to use jquery to quickly change the

  • 0

I have an Object and I’m trying to use jquery to quickly change the parameter values, but the parameters keep coming back null. code brings back the list of parameters but I can’t seem to change anything. Even if I put it at it’s base of parameters to change everything – it still comes back as null.

Other than that it works, but if u look closely you will see some api error messages in black at the top left. I added a pastebin so you can see what I’m doing.

http://jsfiddle.net/f4qMe/

and below is the javascript I’m running to try and change the objects parameters. The object is called (id) twitchTV.

function test(){             
    var data = "http://www.twitch.tv/widgets/live_embed_player.swf?channel=day9tv";
    var src = "hostname=www.twitch.tv&auto_play=true&start_volume=25&channel=day9tv";

    var code = $("#twitchTV").html();
    var newcode = $("param", code).attr("value", src).html();
    $("#twitchTV").html(newcode);
    $("#twitchTV").attr("data", data);
}​
  • 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-02T07:42:39+00:00Added an answer on June 2, 2026 at 7:42 am

    Your problem is probably here:

    var code = $("#twitchTV").html();
    var newcode = $("param", code).attr("value", src).html();
    

    html() returns a string so code is a string and you’re using it as context in newcode which expects an DOM element or jquery object instead.

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

Sidebar

Related Questions

I have object (div-box), and it's draggable (I'm using jQuery). How I can get
I have object of type WebClient which successfully connects to web server. But when
I have object that is serialized into db. The question is where to keep
Application use NHibernate. I Have object A that contains set of objects B. I
But I'm wondering what the naming conventions are for this? Like.. I have object
I have object XML serialized messages coming into a class called MessageRouter . The
I have object with relation, and want save it, but I have only id
Im working with tree. Every node have object with Tree * values. I read
This is an odd question. But here goes. I have object X, which gets
I try to update my objectt task in database, but in parameter I 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.