Send data to the server with javascript and then retrieve it

-3

People I have the following problem, I need to send the data of a page to the server and after recovering this data, I was seeing an option to send this data of the page with a javascript event.

I thought of the onkeyup event but nothing feasible because the requisition amount would be absurd.

Does anyone have a better option to send this data and then retrieve them? I thought of saving in the cache, but I still have not found a viable option I think because I have little experience with javascript.

So my doubts are these which event I could use to send the pro server data and then retrieve them using javascript and what a good option to save the data from this my cached screen and every time I need that data I retrieve they.

I have a Java web application with CDI and Primefaces, and in that application I have a component where I create some tabs for each screen I want to access. The problem in question is that when I go through these screens I update via ajax, but I'm having some problems, in relation to that, and I ended up removing this update that was done with ajax and wanted a way to not lose this data when changing tab and I thought of the javascript to do that.

    
asked by anonymous 19.01.2016 / 13:57

1 answer

0

An idea would be to save you every change of tab, onkeyup is unfeasible.

    
19.01.2016 / 16:13