-3
People I am with following problem, I need to send the data of a page to the server and after being able to recover this data, I was seeing an option to send this data of the page with an event javascript.
I thought the onkeyup event put nothing viable because the amount of requisition would be absurd.
Does anyone have a better option to send this data and then retrieve it? I thought about saving in cache, but I haven’t found a viable option I think because I have little experience with javascript.
So my doubts are what event I could use to send the data to the server and then recover them using javascript and which is a good option to save the data from this my screen in cache and every time I need this data I recover them.
I have a Java web application with CDI and Primefaces, and in this application I have a component where I create some tabs for each screen I want to access. The problem in question is that when passing through these screens I update via ajax, however I am having some problems, regarding this, and I ended up removing this update that was done with ajax and wanted a way not to lose this data when changing tab and thought of javascript to do this.
Please try to better expose your question with examples. Edit it.
– Andre Mesquita
The time to send would be when changing tab. But if you want to send everything at once, have you thought about using localStorage? If you explain better how you’re doing it, adding code I’ll make an example for you.
– Randrade