Typically when I put together dynamically generated HTML markup, I've been using PHP to store the information and then looping through that to create elements on the page. One example is navigation; create an array of objects and then loop through them to echo the markup. This helps out a lot for times that I might have to make minor (or major) changes during development or maintenance.
Lately I've been wondering if I should use JavaScript to do this instead. Same principle, but using addElement.
Just wanted to get some opinions on this; pros, cons, php vs js, seo considerations, etc.
Thanks folks!
Doing it client side means:
When deciding if you should do something client side instead of server side, as a rule of thumb ask yourself two questions: