Cardale Posted January 10, 2010 Share Posted January 10, 2010 How many people prefer javascript/ajax sites? How many prefer the good old fashion straight php sites? Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/ Share on other sites More sharing options...
Alex Posted January 10, 2010 Share Posted January 10, 2010 It depends on many factors. Generally speaking, there has to be a balance between the two. In most cases you won't want to have everything run on ajax/javascript. Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992190 Share on other sites More sharing options...
oni-kun Posted January 10, 2010 Share Posted January 10, 2010 I prefer to keep it PHP just to keep it all tight and in one package. JS is not to be relied on. I'd classify ajax navigation and all that into the 'fancy, but useless' part in mind. Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992192 Share on other sites More sharing options...
mmarif4u Posted January 10, 2010 Share Posted January 10, 2010 I prefer to keep it PHP just to keep it all tight and in one package. JS is not to be relied on. I'd classify ajax navigation and all that into the 'fancy, but useless' part in mind. Agree with you. I also prefer to use clean PHP rather mixing it with JS. Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992207 Share on other sites More sharing options...
Daniel0 Posted January 10, 2010 Share Posted January 10, 2010 If you use progressive enhancement, you can make it work fast and you don't do stupid thinks like breaking the back button, a lot of Javascript is fine. Otherwise it's just annoying. Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992228 Share on other sites More sharing options...
Cardale Posted January 10, 2010 Author Share Posted January 10, 2010 The reason I ask is this. Personally I prefer the straight PHP site because I know it will work, but if you use sites like face book or gmail you can obviously see advantages. The debate to make even after seeing this is hard. I just don't mind going to the next page to do things..not to mention if you are working on a fast web server it usually just snaps there for me any way. Has anyone done any tests to see if server load is higher when running say a facebook style site compared to a punbb site for example? Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992336 Share on other sites More sharing options...
daneth1712 Posted January 10, 2010 Share Posted January 10, 2010 I personally like to use a mix. For example, every form I use, be it login form, or register forms I like to use both js and php validation. Mainly because if you use js validation (and the users have not turned js off) you dont have to rely on the server to check forms and can be done locally. However I would still use PHP to validate the forms incase the users turn js scripts off. This just saves a bit of server load, nothing too fancy but i think it makes sense to do it that way that just rely on PHP scripts and server-side all the time. Quote Link to comment https://forums.phpfreaks.com/topic/187916-javascript-or-not/#findComment-992442 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.