CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Radio Buttons

Print topic Send  topic

Author Message
mljonzs

Posts: 124
Posted: 06/06/2007, 9:49 AM

Hi. I thought I had asked this question in the past but I cannot seem to locate any answers so I will ask again.

Besides using the CodeCharge Required property to check to see if a value has been selected in a radio grouping, how can I do this? I try using javascript in a before submit validation routine but I can't figure out that syntax to be able to see what, if any, value has been selected.

Can anyone help me? Users prefer to see javascript pop-up windows with informatino rather than having the standard CodeCharge Error display.

Thanks!
mlj
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message
Benjamin Krajmalnik
Posted: 06/11/2007, 10:25 AM

http://www.hscripts.com/tutorials/javascript/dom/radio-events.php
http://www.javascriptkit.com/javatutors/radiocheck.shtml

Should get you on your way.
You will have to iterate through the elements of the radiobox and look for a
"checked" state.

"mljonzs" <mljonzs@forum.codecharge> wrote in message
news:64666e57e2c593@news.codecharge.com...
> Hi. I thought I had asked this question in the past but I cannot seem to
> locate
> any answers so I will ask again.
>
> Besides using the CodeCharge Required property to check to see if a value
> has
> been selected in a radio grouping, how can I do this? I try using
> javascript
> in a before submit validation routine but I can't figure out that syntax
> to be
> able to see what, if any, value has been selected.
>
> Can anyone help me? Users prefer to see javascript pop-up windows with
> informatino rather than having the standard CodeCharge Error display.
>
> Thanks!
> mlj
> _________________
> Happy coding!
> mljonzs
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

mljonzs

Posts: 124
Posted: 02/20/2008, 9:46 AM

update.... In case anyone else out there is struggling with validating and working with RadioButtons, I finally found some javascript code that works to check the value of a radioButton in CodeCharge

This URL is where I found the javascript methods that I needed: http://www.somacon.com/p143.php

to get the checked value from the CCS form I used the following javascript code:

var def = getCheckedValue(document.forms["SubProjects"].elements["bQuickHit"]);
where bQuickHit is the name of my RadioButton element on the SubProjects from of my code charge page....
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.