Where with function disable auto refresh after update.
Where with function disable auto refresh after update.
BalaKrishnanDhanuskodi
Posts: 45Questions: 17Answers: 0
in Editor
Happy Morning,
I have a data table to list all column related to data 'One' or 'Two' under the column 'target' - please refer the where syntax used in the PHP file. After using this where with a function the autorefresh option upon edit is not working - I have to refresh the whole page to see the updated content.
PHP File: code of where with function.
->where( function ( $r) {
$r->where( 'target', 'One' );
$r->or_where( 'target', 'Two' );
} )
This discussion has been closed.
Answers
That suggests that the newly added content doesn't match the query condition.
If you could let me have a look at a test case showing the issue, that would be helpful.
Allan
Thanks for the reply.
Please find the test case.
HTML
PHP
JS
If you submit the
target
field as either "One" or "Two" the table should be updated with the new data. Anything else would not be shown.Can you link to a page showing the issue please?
Allan
Please find the link
http://lifeisbeautiful.ooo/DT/keycard.html
Thanks. Something odd going on with the server-side - if I send:
It is returning:
Can you add
->debug( true )
immediately before the->process( $_POST )
line please?Allan
Happy Morning Allan,
Added,
Happy Day Allan,
As requested added
->debug( true )
to the code.I'm not seeing any debug information in the JSON returned from the server at
http://lifeisbeautiful.ooo/DT/keycard.html
(nice domain name btw ). Was that chance deployed to the server?Allan