i need some help. I want to make my tables update the status when i click refresh button. But can i make it without refreshing the page? Like just the value on the table that updated. Something like re-render in javascript when there is an update to the state..
There are so many ways to accomplish what you are asking... some examples here:
You could use a javascript ajax that ask for the updated table and
reload it when you click refresh.
You could use a javascript ajax that ask only for changes and update
only changed fields.
You could set and Interval with setInterval that ask for changed
values automatically.
For something more tricky: you could manage a serverSocket for push updates to client and trigger javascript to manage the updating
data
Related
So i'm trying to update a user status to either enabled or disabled in the user database. I already have my toggle in place. When i view the user table from the dashboard, i want to be able to see the toggle button according to their status. I also want to be able to update their status using the same toggle.
I know it can be done with AJAX but i'm not sure about the implementation.
Anyone kind enough to enlighten me?
You are right!
You should implement it with ajax.
Firstly create a route and controller method for accessing/controlling data. Then, implement ajax call. You can use axios library for this,too. It is a very powerful library. After you send ajax call and take the response, You should manipulate DOM according to ajax response. It is a generic question and generic answer :)
I am working on a project with Oracle APEX. There is one thing that I am not able to figure out.
When I create a form and add data to it and run my application it keeps the data in itself so when I try to run it again it still has the data from the last user.
How do I change that and stop the form retaining the data?
When you create a branch on the page you can provide the page numbers which cache you want to be cleared with the "clear cache" attribute.
When a page is submitted, make sure it triggers a branche where you set this attribute.
As #Non Plus Ultra said, you can use the Clear Cache attribute of a branch, or you can add a "reset page" Process to run when the page is submitted. Which method you use depends on what navigation paths you wish the page reset to happen.
Option
1)Clear Cache --Go to page --> edit page(top left first option after clicking)-->in edit page at bottom some where you will see Clear.
2) create Branch when page renders set rest page in it.
i would suggest option one
The disable pager functionality is not working as I would expect when using ajax with tablesorter. The pager controls are disabled but the complete set of rows is not retrieved and shown. When not using ajax, it works fine - ie the complete set of rows is shown.
I notice that clicking on the disable pager button triggers the showAllRows function in the jquery.tablesorter.pager file. Then showAllRows calls pagerArrows if ajax is being used. This last function only seems to manipulate the css for the pager controls and does not re-render the table. Is this working properly for others?
Thanks
This does sound like a problem. I would recommend opening an issue so that it can be tracked and addressed.
I am on a sabbatical at the moment, so if the caretakers of the repository are unable to take care of it, I will look into this issue upon my return. Sorry for the delay.
As per my project requirement i want to develop an Ajax application with GWT Ui-Binder.. for achieving page refreshing automatically while getting content from database..
Remember: withOut click Refresh button (or) any mouse motion.If u aware about this task...can you please give me with any related exmaple..
if you want to refresh automatic, so you may have any condition where you get event of getting data from database like rpc came on success method etc.. then simply call Window.Location.refresh(); there.
I've got a form that has, among other things, a preview button and a submit button. Let's say that the form contains a person's data. Clicking preview will submit the form to example.com/preview and get it opened in a new tab. The preview controller will insert the person's data in a table and, based on the value of LAST_INSERT_ID(), it will redirect to example.com/person/ID. When the redirect occurs, all session data is lost. I want to be able to keep session data so that, upon checking the example.com/person/ID page, the admin user can close it and do some changes to the form or submit it.
I've noticed that storing the session id in a flashdata item won't work, it won't get past the redirect. Also, if i somehow manage to get the session_id past the redirect (although adding it to the url is not what my client wants), I still don't know a way to regenerate the Codeigniter session with it. Another option I've looked into is using Codeigniter Native Session class, but the version I've found on the site is not for Codeigniter 2.0.0.3, and I'm afraid that using it might break something.
Any advice is much appreciated.
The solution was to change my ci_sessions database table fields' collations to utf8_general_ci (the default was latin1_swedish_ci)