Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-20-2012, 01:12 PM   PM User | #1
JS Newbie
New Coder

 
Join Date: Dec 2012
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
JS Newbie is an unknown quantity at this point
HTML CSS and JS combined into one file.

Hi,

I have a automotive web page that runs on an industrial PLC web server. I have adopted the project and I note the HTML, JS and CSS items are all in one XX.HTM file instead of a HTM file for the HTML stuff, JS file for the functions and CSS sheet for the styles etc.

The server can hold and is capable of accessing the separate files no problem, in fact, the demo from the manufacturer has a htm file and a JS file.

Is this good / bad or no difference? The reason I ask is because we get some communication issues that don't seem to be tied to a specific function and i was wandering if the structure was influencing things here?

Thanks in advance.

Last edited by JS Newbie; 12-20-2012 at 01:57 PM..
JS Newbie is offline   Reply With Quote
Old 12-20-2012, 06:31 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,454
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Best to keep them separate - that way you can reuse the css and JavaScript on other pages - also the code will be easier to maintain.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Users who have thanked felgall for this post:
JS Newbie (12-21-2012)
Old 12-21-2012, 09:14 AM   PM User | #3
JS Newbie
New Coder

 
Join Date: Dec 2012
Posts: 13
Thanks: 6
Thanked 0 Times in 0 Posts
JS Newbie is an unknown quantity at this point
Ok Thanks.

That seems to be the general opinion on the web too.
JS Newbie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:54 PM.


Advertisement
Log in to turn off these ads.