Need quick programming help bad!!!

Discussion in 'BlackHat Lounge' started by livinitup0, Sep 10, 2009.

  1. livinitup0

    livinitup0 Registered Member

    Joined:
    Jul 24, 2009
    Messages:
    79
    Likes Received:
    14
    I have a web page that has about thousands of individual names on it. On the left of each name is a HTML check box. All the boxes are checked by default and I need to uncheck them all.

    I can do tab and space over and over, but its still going to take forever...

    isnt there some simple notepad script I can write that will do this action for me? I just need something that will automatically perform the SPACE and then TAB key over and over again...

    Any help would be super appreciated.
     
  2. blindgrdn

    blindgrdn Newbie

    Joined:
    Jul 1, 2009
    Messages:
    33
    Likes Received:
    11
  3. livinitup0

    livinitup0 Registered Member

    Joined:
    Jul 24, 2009
    Messages:
    79
    Likes Received:
    14
    nvrmnd
     
  4. blindgrdn

    blindgrdn Newbie

    Joined:
    Jul 1, 2009
    Messages:
    33
    Likes Received:
    11
    well, do it by hand then. *shrug*
     
  5. utkarshpaliwal

    utkarshpaliwal Regular Member

    Joined:
    Jun 8, 2009
    Messages:
    498
    Likes Received:
    91
    This will be done more quickly if posted in "hire a freelancer" section..
     
  6. BozoClown

    BozoClown Junior Member

    Joined:
    Jan 4, 2009
    Messages:
    150
    Likes Received:
    109
    You can use a text editor with regexp search and replace.
     
  7. livinitup0

    livinitup0 Registered Member

    Joined:
    Jul 24, 2009
    Messages:
    79
    Likes Received:
    14
    I found a small script called "toggle 'em all" that I could just add as a bookmaked site that does exactly what I needed with the checkboxes.
    If anyone ever needs something like this just g00gle "Toggle 'em all"
     
  8. kaidoristm

    kaidoristm BANNED BANNED

    Joined:
    Feb 13, 2009
    Messages:
    564
    Likes Received:
    727
    Shoot it between head tags
    Code:
    	<script type="text/javascript">
    function checkByParent(aId, aChecked) {
        var collection = document.getElementById(aId).getElementsByTagName('input');
        for (var x=0; x<collection.length; x++) {
            if (collection[x].type.toLowerCase()=='checkbox')
                collection[x].checked = aChecked;
        }
    }
    checkByParent('YOUR DIVS ID', true);
    </script>
    
    And generate some buttons
    Code:
    <input type="button" value="check all" onclick="checkByParent('YOUR DIVS ID HERE', true);" />
    <input  type="button" value="uncheck all" onclick="checkByParent('YOUR DIVS ID HERE', false);" />