Page 1 of 1

which is best to use?

Posted: Mon Feb 10, 2014 11:22 pm
by Violation
what is best for a navigation?

Bootstrap through an index.html or index.php file

or

php coding + css with an header.php being connected through an index file.

I will want to add account options on their at some point as well. but is bootstrap just as good as an php source code?

Re: which is best to use?

Posted: Tue Feb 11, 2014 12:44 am
by Jackolantern
While I have not used Bootstrap, if the question is whether to use a JS option or code it in PHP, I would go JS every time. You can load Bootstrap in through a CDN so most users will have it cached (no bandwidth overhead for most users), and it also unloads needless processing from your web server onto the users. So if Bootstrap or another JS library can meet the needs of something you would otherwise do in PHP, and there are no security concerns, definitely unload it to JS.

Re: which is best to use?

Posted: Tue Feb 11, 2014 1:34 am
by Violation
are their any good tutorials for javascript navigation bar's from like step 1 and forward, as I have been all over google and no site can give a good tutorial. this is the only site where I know that staff and members help out. so If you could help me out please this would be fantastic.

Re: which is best to use?

Posted: Tue Feb 11, 2014 3:17 am
by Jackolantern
I mentioned it in PM, but I will put it here for future reference: I would drop Bootstrap until you get more experience with JS, and pick up jQuery instead. jQuery is so helpful and is used on almost every site today. Here is a list of jQuery tutorials for a ton of different types of nav bars :cool:

Re: which is best to use?

Posted: Tue Feb 11, 2014 5:56 pm
by Violation
what do you think would be best to use then?

Re: which is best to use?

Posted: Tue Feb 11, 2014 9:07 pm
by Jackolantern
If something can be done in JS that can be done with PHP, use JS (less processing for you on the server).

If something can be done with only CSS that can be done with JS, use CSS (less memory and CPU usage on the user's browser).

Of course, these are not interchangeable, and you will find their purposes only overlap in a few places. They all play their own part.

Re: which is best to use?

Posted: Sat Feb 15, 2014 8:05 pm
by Violation
Thank you I value your opinion. I will use Javascript and CSS