Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javascript and radio button with redirect

562548Feb 27 2007 — edited Feb 27 2007
Hi all

The trouble I am having is something like this :
I am having a radiogroup with redirect on my page. The name of this is ccddatasource.
It has got two members with values 'new' and 'current'.

Following is the javascript I have in my code :
<script language="JavaScript1.1" type="text/javascript">
<!--
function message()
{
alert(document.getElementById('CCDDATASOURCE').value)
var change = 'new';
if (document.getElementById('CCDDATASOURCE').value == 'new' )
{
alert('Please select the CCD file to be uploaded');
}
else
{
doSubmit('UPLOAD');
}
}
//-->
</script>

On calling this script, the alert box displays the word 'undefined' irespective of the selection I made for this radio button. How do I get the correct value for this radiogroup with redirect?

Thanks
-Shantanu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2007
Added on Feb 27 2007
2 comments
512 views