RandomlyKnighted's Profile User Rating: -----

Reputation: 115 Stalwart
Group:
Authors
Active Posts:
1,331 (0.86 per day)
Joined:
14-January 10
Profile Views:
52,389
Last Active:
User is offline Yesterday, 11:39 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Ford
Dream Kudos:
300

Latest Visitors

Icon   RandomlyKnighted who has an interview with Adtran at 1:00? This guy! :D

Posts I've Made

  1. In Topic: Changing the value of a cell in a table

    Posted 10 Apr 2014

    Ah I see what I'm doing wrong. I was using slice instead of splice. Thanks ArtificialSoldier!
  2. In Topic: Changing the value of a cell in a table

    Posted 10 Apr 2014

    By changing my loop from a for..in to a standard for loop I was able to change the value using innerHTML. Below is the code that worked:

    function setupTable()
    {
        var tiles = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
        var cells = document.getElementsByTagName("td");
    
        for (var i = 0; i < cells.length; ++i)
        {
            var randomValue = tiles[Math.floor(Math.random() * tiles.length)];
            cells[i].innerHTML = randomValue;
            var index = tiles.indexOf(randomValue);
            tiles.slice(index, 1);
    		}
    	}
    
    


    Now I just figure need to figure out why I'm getting repeating numbers after I'm slicing that value from the array.
  3. In Topic: Changing the value of a cell in a table

    Posted 10 Apr 2014

    I tried textContent in IE 11, Firefox 26, and Chrome 34 and in all 3 browsers it would not change the value just like with innerHTML. However, when I tried firstChild.nodeValue I got the error:

    TypeError: cell.firstChild is undefined

    Usually when I get this error it's because I'm using a regular for loop and I accidentally let it increment to a number larger than the size of the object I'm looping through. Though that's why I decided to use a for each loop this time so I could avoid that.
  4. In Topic: Alternative to Partitioning in SQLite

    Posted 28 Mar 2014

    I was able to accomplish the same thing by creating a nested query. The query below is what I ended up using to get the information needed.

    SELECT d.ip_address AS "IP Address",
           d.name AS "Computer Name",
           av.name as "Antivirus Name"
    FROM devices d, anti_virus_products av
    WHERE d.deviceID IN (
                          SELECT deviceID
                          FROM anti_virus_products
                          GROUP BY deviceID
                          HAVING COUNT(deviceID) > 1
                        )
          and d.deviceID = av.deviceID
    ORDER BY d.name;
    
  5. In Topic: What OS do you guys program on?

    Posted 12 Sep 2013

    Windows 7 Pro at work

    Windows 8 Pro at home, though I tend to try and keep Linux on an old laptop to mess around with.

My Information

Member Title:
D.I.C Lover
Age:
22 years old
Birthday:
June 11, 1991
Gender:
Location:
Albertville, AL
Years Programming:
4
Programming Languages:
ASP.NET, C#, Java, SQL

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://randomlyknighted.com
LinkedIn:
http://www.linkedin.com/in/thughes01
Twitter:
tyler_b_hughes

Comments

Page 1 of 1
  1. Photo

    ishkabible Icon

    26 Jun 2011 - 18:13
    happy belated birthday!!
  2. Photo

    chinalwb Icon

    07 Jun 2011 - 21:33
    Your birthday is coming, Happy Birthday to You~!
  3. Photo

    v0rtex Icon

    18 May 2011 - 04:24
    Hey, Hope your GWAToolbox program is coming along nicely :)
  4. Photo

    no2pencil Icon

    11 Apr 2011 - 19:57
    GO BLUEJAYS!
  5. Photo

    modi123_1 Icon

    14 Feb 2011 - 13:33
    Just a heads up on your sig image: 364x166 != 400x80.
  6. Photo

    Dogstopper Icon

    05 Nov 2010 - 03:58
    GO BRAVES!
  7. Photo

    Alex6788 Icon

    25 Oct 2010 - 10:03
    Posted a new scaled down signature in the request signature thread
  8. Photo

    Alex6788 Icon

    22 Oct 2010 - 15:45
    I'm in your profile.
Page 1 of 1