Go Back   CodingForums.com > :: Client side development > General web building

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 10-04-2012, 12:59 AM   PM User | #1
spacecadet11
New to the CF scene

 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
spacecadet11 is an unknown quantity at this point
Smile Beginner’s Question

Hello. I do not know javascript at all at this time but I am 'dabbling'. Is Java like 'codes' that are 'invisable' that controls how things appear on a web page?

If so..is it also possible to reveal 'hidden' codes on a web page on the internet that are 'by default...' already hidden?

Thanks for any and all responses
Bye
SC
spacecadet11 is offline   Reply With Quote
Old 10-04-2012, 03:31 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Are you asking about Java or about JavaScript - they are two completely different things.

With web pages the content is defined using HTML, how it looks and whether it is visible or not is defined with CSS and the behaviour of the page is defined using JavaScript.

Note that not everyone has JavaScript and so anything that starts out hidden may remain hidden. Usually you are better off to start with things visible and use JavaScript to update the CSS to hide whatever doesn't need to be visible for those with JavaScript available.
__________________
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:
spacecadet11 (10-04-2012)
Old 10-04-2012, 02:30 PM   PM User | #3
spacecadet11
New to the CF scene

 
Join Date: Oct 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
spacecadet11 is an unknown quantity at this point
Smile Response

Hello. What is the difference between java & javascript? I think js is just about how you control 'text' on web pages..where java is....what?

Right now I am trying to learn the very basics so I can progress further.

Thanks for any and all further responses
Bye
SC
spacecadet11 is offline   Reply With Quote
Old 10-04-2012, 07:36 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,584
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Quote:
Originally Posted by spacecadet11 View Post
Hello. What is the difference between java & javascript?
http://www.htmlgoodies.com/beyond/ja...JavaScript.htm

Quote:
Originally Posted by spacecadet11 View Post
I think js is just about how you control 'text' on web pages..where java is....what?
Very basically:

Java is a programming language that is used to create stand-alone programs or used on a server to generate websites (e. g. compile HTML snippets into one document that is then shown in the browser). You can’t see Java code in a website because it is executed on the server and only outputs HTML, for example, based on whatever conditions are met.

JavaScript is a client-side scripting language (“client” is the user’s computer) used to modify a document after it has been rendered (i. e. is shown in the browser). JavaScript is used to add dynamic functionality to websites, apart from basic stylistic things that CSS can do. For example you can quickly add and remove elements from a website through user interaction or do advanced calculation, form validation on the fly while typing, etc.
__________________
Don’t click this link!
VIPStephan 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 12:32 AM.


Advertisement
Log in to turn off these ads.