0
votes

I have pretty long Visual force page in my application i have to requirement to save it automatically for every 60 sec seconds.So whenever i save the page the cursor goes to the top of the page instead of being where they are previously present.Can anyone give me answer on how to handle this issue?

1

1 Answers

0
votes

Use JavaScript Remoting instead of a apex:actionPoller. JavaScript Remoting doesn't invoke a page refresh automatically. So set up your timer in JavaScript using setInterval() and when it fires your JavaScript method, call the Apex save method that does the saving you want from there.