Am 05.01.2012 22:56, schrieb Robert:
Hi,

I have written my own update routine that checks my server for a new version of the script. If so user will be prompted if he wants to install the new version. If yes, self.location.href = 'http://.../newversion.user.js' is executed. This works so far...

But is there a way to react on Install or Cancel by my script?

E.g. to automatically refresh the page as soon as the script install was successfull?


Tnx in advance,
Robert


Hi Robert,

I don't think this is possible easily, but I'm not sure. However, even if it was possible I would not reload the page, because you never know what was done on the page beforehand. If there's something typed in, that will be lost. If it was a POST-Query that sent a request to the server, you mustn't reload a page or otherwise that query will be sent again, redoing all action (adding a comment, buying items, etc.). I would recommend to add a statement to your update confirmation prompt like "After the update, you have to reload the page for the changes to take effect.". This is much simpler and the user can decide whether he wants to reload the page immediately or not.

Chris

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to