Send a custom variable through server side and much more
Send a custom variable through server side and much more
Hello and one more time thanks for the awesome script.
Everyday that passes i realize how useful it is.
In my problem now ;-)
What i want to achieve is the following:
I want to have a div that will show success-error messages to the user.
I already know how to do this in plain PHP without AJAX : just set a SESSION Variable after successful form
processing or as a second option use a POST variable and redirect the user to the page that you want.
Then you need some php code to check those variables and display the appropriate message accordingly.
My problem now is that i use Datatables which is based on AJAX and the page does not refreshes so
the message always stays there after successful completion of the form.
From what i understand i must use some javascript code, to grab a special variable which i will create inside the server_process file, so every time the user clicks on whatever controls of the datatable, the variable resets to 0 so the success message can disappear from the screen since the user has passed to the next action and already has seen the message.
Is there anything that can help me in this adventure ? All suggestions and ideas are welcome.
Thanks again.
Thanasis
Everyday that passes i realize how useful it is.
In my problem now ;-)
What i want to achieve is the following:
I want to have a div that will show success-error messages to the user.
I already know how to do this in plain PHP without AJAX : just set a SESSION Variable after successful form
processing or as a second option use a POST variable and redirect the user to the page that you want.
Then you need some php code to check those variables and display the appropriate message accordingly.
My problem now is that i use Datatables which is based on AJAX and the page does not refreshes so
the message always stays there after successful completion of the form.
From what i understand i must use some javascript code, to grab a special variable which i will create inside the server_process file, so every time the user clicks on whatever controls of the datatable, the variable resets to 0 so the success message can disappear from the screen since the user has passed to the next action and already has seen the message.
Is there anything that can help me in this adventure ? All suggestions and ideas are welcome.
Thanks again.
Thanasis
This discussion has been closed.