Internet Explorer Question

Home Forum Chat Forum Internet Explorer Question

Viewing 16 posts - 1 through 16 (of 16 total)
  • Internet Explorer Question
  • brakes
    Member

    I need to select 3,600 checkboxes on a single page in Windows IE6. The only option available to me at the moment is to select them individually. Is there a way that I can select them all at the same time? โ“

    Biffer
    Member

    Hmmm – you seem to have a lot of interests or are you selecting porn titles to download ?

    Sorry its the end of the day and I have nothing sensible left to say ๐Ÿ™‚

    brakes
    Member

    unfortunately not, it’s a web-based reporting tool and there are 2 years of reports that I need to delete…

    Premier Icon aracer
    Subscriber

    AutoIt could probably help.

    brakes
    Member

    not sure what that is, but can’t be writing any script

    Premier Icon aracer
    Subscriber

    …though I’d be tempted to hack it by seeing what request ticking a couple of boxes sent and sending the appropriate request for the lot (can’t remember what TCP/IP hacking tool I use offhand, as I’m in work where we’re not supposed to use such things).

    Premier Icon aracer
    Subscriber

    but can’t be writing any script

    Not even if it’s considerably quicker than doing it by hand?

    brakes
    Member

    nah, I’m at work and also wouldn’t have a clue where to start

    Premier Icon aracer
    Subscriber

    Have fun then. ๐Ÿ˜•

    brakes
    Member

    surely Firefox has a miracle solution?

    richtea
    Member

    just paste this (and only this) into your address bar.

    javascript:var f=document.getElementsByTagName("input");for(var i=0;i<f.length-1;i++){if(f.type=="checkbox"&&!f.checked){f.checked=true}};void(0);

    brakes
    Member

    what will happen if I do?

    brakes
    Member

    richtea, thanks you’re a legend – worked perfectly ๐Ÿ˜€

    richtea
    Member

    no probs. being a code monkey does help from time to time ๐Ÿ™‚

    simonfbarnes
    Member

    javascript:var f=document.getElementsByTagName("input");for(var i=0;i<f.length-1;i++){if(f.type=="checkbox"&&!f.checked){f.checked=true}};void(0);

    just what I was thinking, except I’d have used for(var i in f) ๐Ÿ™‚

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Internet Explorer Question’ is closed to new replies.