Bonjour,
voici, ma fontion !
je souhaiterai savoir et tester apres cette execution si "bool" = true !
Malheuresment ma variable reste dans la fonction.je ne gere pas trop^! pouvez vous m'eclairer svp ?
function verifRs(rs,bool)
{
if(rs != '')
{
if(rs.length<2)
{
writediv('<span style="color:#cc0000"><b>'+rs+' :</b> Ce champs est trop court</span>');
return false;
}
else if(rs.length>30)
{
writediv('<span style="color:#cc0000"><b>'+rs+' :</b> Ce champs est trop long</span>');
return false;
}
else {
writediv('<span style="color:#1A7917"><b>'+rs+' :</b> ok</span>');
bool=true;
}
}
else
{
writediv('<span style="color:#1A7917"><b>'+rs+' :</b>Veuillez indiquer votre raison sociale</span>');
return false;
}
return bool;
}Configuration: Windows Vista
Internet Explorer 7.0