This topic is locked
[SOLVED]

 button enable - disable

12/18/2009 7:48:07 AM
PHPRunner General questions
T
titanic author

Can i use "Before Dsiplay" to make some query and according to result of query, a button will be disabled or not.
like "do this" button. If the thing has already been done "do this" button will be disabled...
?
thanx in advance

L
lewisekrantz 12/22/2009

$xt->assign("back_button",false);



Can i use "Before Dsiplay" to make some query and according to result of query, a button will be disabled or not.
like "do this" button. If the thing has already been done "do this" button will be disabled...
?
thanx in advance

T
titanic author 12/22/2009



$xt->assign("back_button",false);


which parameter will be false?
i mean
<INPUT class=button onclick="frmAdmin.a.value='email'; frmAdmin.submit(); return false;"
value="Email selected" type=button>
frm.email.disable=false
like this?

J
Jane 12/22/2009

Hi,
here is a sample:

{BEGIN email_button}

<INPUT class=button onclick="frmAdmin.a.value='email'; frmAdmin.submit(); return false;" value="Email selected" type=button>

{END email_button}



and Before display event:

$xt->assign("email_button",false);
T
titanic author 12/22/2009

thnx a lot...