colap Posted January 1, 2011 Share Posted January 1, 2011 Hello, I have links at above of the page. if i click a link a new page will appear. The menu links above are same for all pages. Which is better reloading the whole page with all menu links or keeping the above menu link permanent/unchange reloading bottom division with ajax? I mean only one page will contain the menu.Is it better? Or every page will contain the menu above.Is it better then the first one? I say many web site they have link menus above if i click a link from above it seems the whole page reloads or chages. For example:http://www.sitepoint.com/ Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/ Share on other sites More sharing options...
BLaZuRE Posted January 1, 2011 Share Posted January 1, 2011 Sorry, but I got confused by your use of 'above'. Above the page = Stuff not on the page but on top, like an address bar or a toolbar. The top of the page = Stuff on the page at the top. Above the content = Stuff not in the content, but on top of it (but still on the page). AJAX involves the client (the person/computer browsing your page) to allow JavaScript. I personally turn off JavaScript because I don't want to hassle with its vulnerabilities, pop-ups, or pages that won't close. Also, I prefer functionality over 'flashiness' and don't believe in requiring proprietary add-ons or plug-ins. So I'd recommend having a page without AJAX navigation or if you go the AJAX route, provide an alternative. It'll also score you brownie points with search engines. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153625 Share on other sites More sharing options...
colap Posted January 1, 2011 Author Share Posted January 1, 2011 Above means the navigation link menu which is located above the web page.You can say horizontal menu. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153631 Share on other sites More sharing options...
trq Posted January 2, 2011 Share Posted January 2, 2011 Reloading a part of a page via Ajax will not change the url. Hence, users of your site can no longer bookmark the pages they like. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153739 Share on other sites More sharing options...
Anti-Moronic Posted January 2, 2011 Share Posted January 2, 2011 Yeh, even though it does provide a faster, more seamless experience you do lose the ability to bookmark! However, I do believe solutions are already being thought up which will alleviate this problem. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153748 Share on other sites More sharing options...
trq Posted January 2, 2011 Share Posted January 2, 2011 Yeah, there are various client side MVC (models are server side - requested via Ajax) frameworks around which allow urls to change while still using Ajax to load the page. I'm not convinced it's the right approach, not for all occasions anyway. Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153757 Share on other sites More sharing options...
Anti-Moronic Posted January 2, 2011 Share Posted January 2, 2011 Yeah, there are various client side MVC (models are server side - requested via Ajax) frameworks around which allow urls to change while still using Ajax to load the page. I'm not convinced it's the right approach, not for all occasions anyway. Ahh that's it! hmm..I think it's good enough. Of course, this all assumes js is enabled. You're always going to need to degrade gracefully should js be disabled. I can't wait for the new web. Ajax is really taking over, ey? Quote Link to comment https://forums.phpfreaks.com/topic/223151-which-is-better-reloading-the-whole-page-or-reloading-division-with-ajax/#findComment-1153764 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.