That solution would fit my needs.
I use the JavaScript code below to make sure that users have selected a row before
activating any function:
<SCRIPT language=javascript>
function isRadioSelected()
{
if ( document.forms[0].primarySelection.length )
{
for(var i=0,n=document.forms[0].primarySelection.length; i<n; i++)
if(document.forms[0].primarySelection[i].checked == true)
{
//alert(document.forms[0].primarySelection[i].value);
return true;
}
}
else
{
if(document.forms[0].primarySelection.checked == true)
{
//alert(document.forms[0].primarySelection.value);
return true;
}
}
alert("You must select an element to perform the requested function ");
return false;
}
</SCRIPT>
Regards,
Christian Kullmann
-----Oprindelig meddelelse-----
Fra: Henner Kollmann [mailto:[EMAIL PROTECTED]
Sendt: Monday, April 19, 2004 11:43 AM
Til: Christian Kullmann
Cc: [EMAIL PROTECTED]
Emne: AW: [dbforms] db:associatedRadio - default selection
Wie could insert an new attribute to the tag. Somthing like noDefaultSelect with
standard value = false which will no check the
first line if set to true!
Cheers,
Henner
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im
> Auftrag von Christian Kullmann
> Gesendet: Montag, 19. April 2004 11:27
> An: [EMAIL PROTECTED]
> Betreff: [dbforms] db:associatedRadio - default selection
>
>
> Hi,
>
> I am in the process of upgrading an application using
> jdbforms from 1.1.2 to 2.3.
>
> I have used the db:associatedRadio extensively and i have
> noticed that the new version always have a selected item. Is
> thee any way to have the db:associatedRadio behave like in
> version 1.1.2 ?
>
> Regards,
>
> Christian Kullmann
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President
> and CEO of GenToo technologies. Learn everything from
> fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
> _______________________________________________
> DbForms Mailing List
>
> http://www.wap-force.net/dbforms
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms