SMF For Free Support Forum
Signup For Free Forum
October 15, 2008, 05:32:53 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Im new to java i made this code is it a good code?  (Read 913 times)
0 Members and 1 Guest are viewing this topic.
blahs
SMF For Free Sr. Member
*
Offline Offline

Posts: 252


5 out of 4 people have trouble with fractions!


View Profile WWW
« on: March 10, 2008, 06:30:37 pm »

This displays the date and time here right now for me Mon Mar 10 19:29:28 EDT 2008

Code:
<SCRIPT TYPE="text/javascript">
<!--
document.write("<P>right now: " + new Date() + "<P>");
//-->
</SCRIPT>
« Last Edit: March 10, 2008, 06:47:45 pm by blahs » Logged
Ravage™
SMF For Free Sr. Member
*
Offline Offline

Posts: 484


Ravage Beast!


View Profile WWW
« Reply #1 on: March 10, 2008, 06:38:25 pm »

thats not html thats javascript
« Last Edit: March 10, 2008, 06:53:39 pm by Ravage™ » Logged
blahs
SMF For Free Sr. Member
*
Offline Offline

Posts: 252


5 out of 4 people have trouble with fractions!


View Profile WWW
« Reply #2 on: March 10, 2008, 06:47:25 pm »

opps my bad i was studing both so i messed up plz move to java rofl...
Logged
Celebrus
SMF For Free Hero
*
Offline Offline

Posts: 788


Previously known as Omikron


View Profile WWW
« Reply #3 on: March 11, 2008, 01:38:36 am »

That is not java. It is javascript. There is a huge difference between java and javascript. As Douglas Crockford puts it,
Quote
The Java- prefix suggests that JavaScript is somehow related to Java, that it is a subset or less capable version of Java. It seems that the name was intentionally selected to create confusion, and from confusion comes misunderstanding. JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is a different language.

JavaScript has a syntactic similarity to Java, much as Java has to C. But it is no more a subset of Java than Java is a subset of C. It is better than Java in the applications that Java (fka Oak) was originally intended for.

JavaScript was not developed at Sun Microsystems, the home of Java. JavaScript was developed at Netscape. It was originally called LiveScript, but that name wasn't confusing enough.
Logged

blahs
SMF For Free Sr. Member
*
Offline Offline

Posts: 252


5 out of 4 people have trouble with fractions!


View Profile WWW
« Reply #4 on: March 11, 2008, 11:53:57 am »

That is not java. It is javascript. There is a huge difference between java and javascript. As Douglas Crockford puts it,
Quote
The Java- prefix suggests that JavaScript is somehow related to Java, that it is a subset or less capable version of Java. It seems that the name was intentionally selected to create confusion, and from confusion comes misunderstanding. JavaScript is not interpreted Java. Java is interpreted Java. JavaScript is a different language.

JavaScript has a syntactic similarity to Java, much as Java has to C. But it is no more a subset of Java than Java is a subset of C. It is better than Java in the applications that Java (fka Oak) was originally intended for.

JavaScript was not developed at Sun Microsystems, the home of Java. JavaScript was developed at Netscape. It was originally called LiveScript, but that name wasn't confusing enough.
Yeah just labeled it java its in the javascript section see im nt stupid...
Logged
Jason Jones
SMF For Free Member
*
Offline Offline

Posts: 31


Live for yourself because life is too short


View Profile WWW
« Reply #5 on: June 15, 2008, 01:35:05 am »

Still there is a Java portion of this forum so by labeling it Java it creates confusion so I would just rename it. Also as Omikron said Java is NOT the same as JavaScript. Netscape renamed LiveScript because of the rising Java they did it as clever yet confusing advertisement trick.
Logged

Kalphiter
SMF For Free Full Member
*
Offline Offline

Posts: 136


DE30AC #409


View Profile
« Reply #6 on: July 03, 2008, 07:45:52 pm »

Javascript

It's a scripting language you see? <script> maybe?

Java is a programming language?
Logged
Crasy
Global Moderator
*
Offline Offline

Posts: 3326


I Approve of this Message


View Profile WWW
« Reply #7 on: July 09, 2008, 10:46:28 am »

Are we done discussing the semantics of the words?
Logged

LaundryLady
Global Moderator
*
Offline Offline

Posts: 3061


Multi-Tasking Maven


View Profile WWW
« Reply #8 on: July 09, 2008, 07:17:47 pm »

No wonder everyone looked at me strangely when I offered them a cup of coffee.
Logged



Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.576 seconds with 17 queries.