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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:05:00+00:00 2026-06-08T11:05:00+00:00

Updated: Narrowed this down even further eliminating the aspx JavaScript reference. So it’s down

  • 0

Updated: Narrowed this down even further eliminating the aspx JavaScript reference.
So it’s down to this…if I uncomment the 1 line inside the init and remove the click event it behaves as expected. However, if I put the assignment statement inside my button click event I get the incorrect behavior as shown way down below.

<script type="text/javascript">
    var pageDefault = {
        btn1: document.getElementById('Button1'),
        tdtarget: document.getElementById('targetTD'),
        bg: document.getElementById('txtBGColor'), //jscolor textbox
        init: function() {
            //pageDefault.bg.value = pageDefault.tdtarget.getAttribute('bgcolor'); 
            this.btn1.onclick = function() {
                pageDefault.bg.value =
                    pageDefault.tdtarget.getAttribute('bgcolor');
            }
        }
    }
    pageDefault.init();

I am using jscolor. I am experience 2 different behaviors, one of which I don’t understand.

All I’m trying to do is get the background color from a <TD> element of a <Table> and show the color value in a jscolor textbox.

enter image description here

  • 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-08T11:05:01+00:00Added an answer on June 8, 2026 at 11:05 am

    Found it on their website. I did look at it before but just had to narrow it down this far. Thanks for feedback and time (views).

    pageDefault.bg.color.fromString('ffcc99');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Based on some standard web searching, I have narrowed down my problem to this:
UPDATE: Hi, I've narrowed down the problem(s) and it appears to be in this
UPDATE: I narrowed it down, when I got rid of this tag in the
-- update -- Ok, I've narrowed this down to the keywords being checked, The
I'm downloading files from a HTTPS website. I've narrowed the problem down to this:
Ive narrowed down to this method but i don't understand why its locking the
Updated Will this line of code work: boost::shared_array<struct sockaddr> addr( reinterpret_cast<struct sockaddr *>( (ipv6
UPDATED: I have some table with sync_numbers, like this: --------------------- id | sync_number ---------------------
I have narrowed down an earlier question I asked and found out what is
I'm running into some troubles with my code, which I narrowed down and simplified

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.