mahmoodee
Member
Hello ,
I have created custom ajaxify Div List template using this wiki
http://fabrikar.com/forums/index.ph...t-template/#example-ajaxify-div-list-template
I am using a custom button above list to update the list when click the button
Everything works fine , but I'm having the following problem :
In custom template I am using "if else" statement to check "yesno element" value
On page load or refresh browser the " if statement" work fine and execute the "
if($status==1){
//code1
}
"
but if I click on button to refresh list using ajax it execute
"
else
{
//code2
}
"
Why updateRows() not return the correct value of $status ?
thank you
I have created custom ajaxify Div List template using this wiki
http://fabrikar.com/forums/index.ph...t-template/#example-ajaxify-div-list-template
I am using a custom button above list to update the list when click the button
Code:
<INPUT type="button" class="btn bupdate" value="Update the list" name="btnRefresh" onClick="Fabrik.blocks['list_<?php echo $this->table->renderid;?>'].updateRows();">
Everything works fine , but I'm having the following problem :
In custom template I am using "if else" statement to check "yesno element" value
Code:
$status=$this->_row->data->students___status_raw;
if($status==1){
//code1
}
else
{
//code2
}
On page load or refresh browser the " if statement" work fine and execute the "
if($status==1){
//code1
}
"
but if I click on button to refresh list using ajax it execute
"
else
{
//code2
}
"
Why updateRows() not return the correct value of $status ?
thank you