Based on what you've said, I wouldn't put a lot of faith in whoever
advised you about .html & .js.
For starters, giving all your pages the .js extension will make them
unviewable to your users. For fun, try to view a .js file in your
browser. You'll get a download window instead of a viewable page. A .js
extension is usually used for external javascript files that are called
into your html pages in the header section.
Secondly, simply adding javascript isn't really considered making a page
dynamic (some purists might disagree with me ;). When someone mentions
dynamic, I usually think of server pages, either .asp or .jsp
(perhaps .jsp is what you meant to write, particularly given your "to do"
list? I really hope you aren't going to do those things with client-side
javascript.)
WRT mixing .htm/.html files with .asp/.jsp or other files, do whatever
makes the most sense. Don't feel compelled to call everything .jsp just
because someone said so. For example, I use a lot of .asp pages.
However, there are a number of pages that don't require any server side
processing, so I've left them as .html. A while back the server was
having problems and guess what, the .asp pages were crashing but the html
pages were served up just fine (because they require far less computing
power).
"Santa"
> Hello there
We are in the process of designing a site. However, Stage 2 and 3 of the
site is required to be dynamic. We have the expertise in-house to use .js.
Most of the site will be static pages however. We have been advised that
because we intend to use .js and html, that we best use the extension on
all
pages as .js instead of some being .html and some being .js
The dynamic pages will be:
automatic email generation
creation of secure site
contacts submission form
form submissions
database use to store links and contracts
keyword search and search using different search variables.
My question is - is there a best practice to follow with regards to using
two types of coding? What would be the best solution to mix static and
dynamic pages in a site?
Any advice would be greatly appreciated.
Regards
Felicia Forbes
-------------------------------
This email message and any attachment(s) is intended only for the
person(s) or entity(entities) to whom it is addressed. The
information it contains may be classified as IN CONFIDENCE and may be
legally privileged. If you are not the intended recipient any use,
disclosure or copying of the message or attachment(s) is strictly
prohibited. If you have received this message in error please
notify us immediately and destroy it and any attachment(s).
Thank you. The Ministry of Social Development accepts no
responsibility for changes made to this message or to any
attachment(s) after transmission from the Ministry.
-------------------------------