arvgta / ajaxify

Ajaxify - An Ajax Plugin
https://4nf.org/
275 stars 124 forks source link

Add refresh same page parameter #99

Closed NZX-DeSiGN closed 8 years ago

NZX-DeSiGN commented 8 years ago

Hi,

I share what I made for my project. I needed to reload the page if the target of clicked link is the same page, so I added a refresh parameter to Ajaxify (with default true). I understand you don't need it for 4nf.org because of the hover navigation, but in my project content of pages can change very quickly and do nothing when the same link is clicked is a problem for me. Tell me what do you think about it !

Thanks, Nicolas

arvgta commented 8 years ago

Hi Nicolas,

absolutely fabulous! Of course, very useful in a highly dynamic environment...

Thanks for sharing your findings!

EDIT: The only thing worth discussing further is whether to really make it default?

NZX-DeSiGN commented 8 years ago

Hi,

Yes, it's up to you to choose ! I made it default, because for me it's the default behaviour of a non ajaxify website !

arvgta commented 8 years ago

Hi,

it should be set to what the majority of users expect... I think the usual are not that dynamic sites?

NZX-DeSiGN commented 8 years ago

Hi,

Ok, no problem for me, disable it by default !