...

View Full Version : Help Need Regarding Radio Button.



chocks
07-08-2006, 10:13 AM
I have retrive the values from database and it is displaying in front end using radio button.This radio button values are read only. i have to use separate Buttons to do below task


Archive - Move the record status to Archive (disabled for Archive status records, enabled for others)

I tried but script functionality not working. In database the status value are updating

// Database Code

if("ARCHIVE".equals(a)) {
try {
PreparedStatement pst;
String sqll="update DB_FCICONNECTOR.T_CONTACT_TEST set ID_STATUS=3 where ID_COUNTRY=? and ID_DIVISION=? and ID_LANGUAGE=?";
pst= conn.prepareStatement(sqll);
pst.setString(1, ID_COUNTRY);
pst.setString(2, ID_DIVISION);
pst.setString(3, ID_LANGUAGE);
pst.executeUpdate();
}
catch(SQLException e){
System.out.println("I am Caught"+e);
}
}

// JavaScript Code:

function valbutton3(){
document.fci_contact.a.value="ARCHIVE";
document.fci_contact.submit();
checkval(thisform);

}


function checkval(thisform){
if(thisform.ID_STATUS[2].checked == true){
thisform.bt_ARCHIVE.disabled=true;
thisform.bt_purge.disabled=false;
thisform.bt_publish.disabled=false;
}
}

<input type="button" name="bt_ARCHIVE" value="Publish" onclick="valbutton3()">


Please try to solve this probs

rm-f
07-08-2006, 04:09 PM
Please try to solve this probs

I made a try and gave up as well as you did.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum