olivernn / davis.js

RESTful degradable JavaScript routing using pushState
http://davisjs.com
532 stars 58 forks source link

How to refresh a page without doing a full window reload #95

Open Deeheks opened 10 years ago

Deeheks commented 10 years ago

How to reload a page through Davis.js ? Here's my situation.

I'm doing some ajax call triggered by a jQ click ; onSuccess I display a message ; then I want to refresh the page.

I've tried

Davis.location.assign( new Davis.Request( window.location.pathname ) );

but it's not working in Chrome.

Davis.location.refresh would be convenient, wouldn't it?