473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how do I set a radio button = true in webbrowser1

Hi,

Trying to fill in a form via webbrowser1. I can fill in all the text
inputs, but am having trouble setting check boxes true or false.

the form has these buttons:

<div align="left"> Gender:
<input type="radio" value="m" name="fvGender">
male
<input type="radio" value="f" name="fvGender">
female</div>

I want to select one of these buttons and set it true.

Any help would be great.

TIA,
Harry
Jul 17 '05 #1
3 6200
Add the word "checked" (no quotes) anywhere in the definition...

<input type="radio" value="m" name="fvGender" checked>male

--

Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.

There's no place like 127.0.0.1


Jul 17 '05 #2
"Randy Birch" <rg************@mvps.org> wrote in message news:<Hn*******************@news04.bloor.is.net.ca ble.rogers.com>...
Add the word "checked" (no quotes) anywhere in the definition...

<input type="radio" value="m" name="fvGender" checked>male


Thanks Randy,

That would initialize the button to true when the form is created,
right?

I need to set it to true after the fact when the form is loaded into
the webbrowser1 object.

TIA,
Harry
Jul 17 '05 #3
BKM
You can find some helpful code at VBPoint.

http://vbpoint.cjb.net/
"HBoy" <hb*****@yahoo.com> wrote in message
news:79**************************@posting.google.c om...
Hi,

Trying to fill in a form via webbrowser1. I can fill in all the text
inputs, but am having trouble setting check boxes true or false.

the form has these buttons:

<div align="left"> Gender:
<input type="radio" value="m" name="fvGender">
male
<input type="radio" value="f" name="fvGender">
female</div>

I want to select one of these buttons and set it true.

Any help would be great.

TIA,
Harry

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ken Loomis | last post by:
Hello: On a web page I check the value of a cookie and set one of two radio buttons accordingly. function setRadioForm() { var myCookie = document.cookie; var OpenOnly =...
1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
5
by: Digital Puer | last post by:
I have the following HTML form: - radio button A (default selected) - radio button B - input field, of type "file" with "Choose" button - submit button I would like to have it so that if the...
0
by: Shadow Lynx | last post by:
In standard HTML, the <INPUT type="radio" name="x" /control only allows one radio button to be checked at a time. When more than one are set as checked="true" then only the last one rendered...
1
by: Shane | last post by:
I think that I found a bug in the Radio Button, and I wanted to give everybody a "Heads Up". I spent three days doing trial and error until I found a work around. I created a user control with a...
9
by: IchBin | last post by:
I can not see what the problem is with this script. I am just trying to set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry I am new to javascript. <html> <head> <script...
7
by: IchBin | last post by:
I am trying to programmatically set a radio button in a table of radio buttons. I have two problems with the code below: 1 - I can not prepare the <Formstatement to be printed by php. (syntax...
2
by: muymoy2001 | last post by:
I am using WebBrowser component where I display the web site. For example: The HTML source code which let the user choose a color: <input type="text" name="firstname" value="the name entered by...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.