Script to auto-select a specific radio button from a group

381 views
Skip to first unread message

oldtima

unread,
May 9, 2007, 5:35:38 PM5/9/07
to greasemon...@googlegroups.com

I'm trying to accomplish this on the
https://login.live.com/login.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1033&_lang=EN
Hotmail login page . Yes, I know crappy mail/site/organization, etc. But
this could prove helpful on other sites once I learn it.

Using Page Info > Forms, I see 2 methods: get & post. Inside 'post' is all
the info concerning radio buttons. What I wonder now is, how do I take this
information and make it so that it selects the 'Always ask for my e-mail
address and password' radio button.

The field name is: 'LoginOptions' and its current value is '3'. The label
is: 'Always ask for my e-mail address and password'.
--
View this message in context: http://www.nabble.com/Script-to-auto-select-a-specific-radio-button-from-a-group-tf3718441.html#a10403282
Sent from the GreaseMonkey List mailing list archive at Nabble.com.

oldtima

unread,
Jul 9, 2007, 9:20:04 PM7/9/07
to greasemon...@googlegroups.com

Um I wonder if this is at all possible?

Just need some help so I can write my own script. Firefox's Page Info
won't be helpful if you're using Minefield; since it's been
redesigned. I guess 2.0's interface hasn't changed so you can use Page
Info there to see what I'm talking about.

Of course, there's always Page Source (Ctrl+U) if you're handy w/
that.

I'm just trying to constantly set a radio button value w/o manually
setting/clicking it myself.

I guess this is the new link: http://login.live.com/login.srf?id=2 New
Hotmail Login page
--
View this message in context: http://www.nabble.com/Script-to-auto-select-a-specific-radio-button-from-a-group-tf3718441.html#a11513397

LouCypher

unread,
Jul 10, 2007, 8:15:21 AM7/10/07
to greasemon...@googlegroups.com
On 5/10/07, oldtima <adhate...@gmail.com> wrote:
>
>
> I'm trying to accomplish this on the
> https://login.live.com/login.srf?id=2&svc=mail&cbid=24325&msppjph=1&tw=0&fs=1&fsa=1&fsat=1296000&lc=1033&_lang=EN
> Hotmail login page . Yes, I know crappy mail/site/organization, etc. But
> this could prove helpful on other sites once I learn it.
>
> Using Page Info > Forms, I see 2 methods: get & post. Inside 'post' is all
> the info concerning radio buttons. What I wonder now is, how do I take this
> information and make it so that it selects the 'Always ask for my e-mail
> address and password' radio button.
>
> The field name is: 'LoginOptions' and its current value is '3'. The label
> is: 'Always ask for my e-mail address and password'.
> --

var loginOptions = document.getElementsByName("LoginOptions");
if (!loginOptions.length) return;
loginOptions[2].checked = true;

--
LouCypher

oldtima

unread,
Jul 10, 2007, 1:52:16 PM7/10/07
to greasemon...@googlegroups.com

Dude... your the best! And funny enough I thought you'd be just the person
that might post the code. I saw 'Zoolcar9' had been posting recently and I
remember you from MozillaZine forums. :D

So once again, thanks.
--
View this message in context: http://www.nabble.com/Script-to-auto-select-a-specific-radio-button-from-a-group-tf3718441.html#a11526039

Reply all
Reply to author
Forward
0 new messages