cal20 Posted December 16, 2009 Share Posted December 16, 2009 Hi, I'm just wondering if it's possible to set a code that prevents a user from constantly loading/refreshing your page. I'd like to prevent them from opening 10 things at once, but instead having to wait like 10 or 30 seconds after opening one thing, before opening another. Is that possible? Thanks for your time. Quote Link to comment Share on other sites More sharing options...
vinpkl Posted December 16, 2009 Share Posted December 16, 2009 not able to understand fully but if you want to load content on your page one by one then you can use jquery or ajax preloaders to load your content. vineet Quote Link to comment Share on other sites More sharing options...
cal20 Posted December 16, 2009 Author Share Posted December 16, 2009 Oh what I meant was, limit the user to one page load at a time. For example, if they tried to right click on the "Home", "Contact Us", and "Forums" link and clicked "Open in new window" on all 3, I want something to block 2 of them from loading if they're already loading 1 page. Thanks. Quote Link to comment Share on other sites More sharing options...
haku Posted December 16, 2009 Share Posted December 16, 2009 Can't be done. Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted December 16, 2009 Share Posted December 16, 2009 You would need to use php and java / ajax for this, track your users and guests and then store a value in a database based on the connected client i.e. a user or guest, holding their current page, use java / ajax to handle an event for the onunload event which will tell you that they have left a page, this should be sufficient to allow your server to realise that a page has been loaded but then when a user clicks a link or leaves the page your variable should be changed to reflect this. Quote Link to comment Share on other sites More sharing options...
FaT3oYCG Posted December 16, 2009 Share Posted December 16, 2009 Thought about this just (cant edit and this isnt really a bump seen as its at the top of the list), I would also add a timeout timer so that if an error occours with the system then the user will not be blocked out of the site. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.