Advertisement

02.07.2008 at 12:03PM PST, ID: 23145659
[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!

7.0

Find control within parent of 'this'

Asked by allidap in JavaScript

Tags:

Greetings!

I'm new to javascript and have a little problem requiring your expertise...

I've an asp repeater that generates an html table.  When the tabe item is generated, I locate a particular row and cell.  This works fine.  For the cell, I create a 'onclick' javascript reference that also works

     tdv.Attributes.Add("onclick", "ChangeColorOf(this)")

    where tdv is defined as a htmltablecell
     Dim tdv As HtmlTableCell

The javascript for this is

    function ChangeColorOf(obj)
    {
        if (obj.style.backgroundColor=='white')
        {
            obj.style.color = 'white';
            obj.style.backgroundColor = 'green';
            obj.innerHTML = '1';
        }
        else
        {
            obj.style.color = 'black';
            obj.style.backgroundColor = 'white';
            obj.innerHTML = '0';
        }
    }

The question...  'this' points to the table cell.  Within the same table cell is a asp:textbox control.  I'd like to have the asp:textbox, with it's visible attribute set to false and a label of 'tbnv', text value take on the value of the cell ( 1 or 0 ).  Is this possible?

The reason I'm doing is simple.  The textbox doesn't have a onclick event.  The table cell has one through javascript.  I want the user to simple click over the table cell to change to value from one to zero or zero to one with the hidden textbox taking on the value.

When, on the web page, the save button is selected, the table cell values, in the textbox can be referenced and saved.  It's eith this approach or using asp:checkbox with postback to control background color.  Unless javascript can be placed on the checkbox control to perform that function.

Your thoughts?

Allidap

Start Free Trial
[+][-]02.07.2008 at 12:15PM PST, ID: 20844545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 01:19PM PST, ID: 20845331

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 01:24PM PST, ID: 20845397

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 01:34PM PST, ID: 20845511

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 01:36PM PST, ID: 20845531

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 03:08AM PST, ID: 20849142

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 09:26AM PST, ID: 20852185

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 09:36AM PST, ID: 20852245

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 10:44AM PST, ID: 20852795

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 12:08PM PST, ID: 20853602

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 02:11PM PST, ID: 20854678

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 04:22AM PST, ID: 20865673

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 10:00AM PST, ID: 20868529

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 10:17AM PST, ID: 20868697

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: javascript
Sign Up Now!
Solution Provided By: Lakio
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.11.2008 at 02:22PM PST, ID: 20870916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628