vietonline
Aug 2 2006, 02:10 AM
| | I think most of you always confuse about java and javascript .So I make this topic to talk about it.
Javascript and Java ,they have the same first four letter.
Java and Javascript is the two language is very popular in the web world.Java is the general-purpose programming language that you can create an application or an applet.Javascript is a script language that looks sort of like java;with it you can do various nifty things in web pages.They are independent languages ,used for different purposes.If you are interesting in creating a website you should learn how to write and use javascript.
Hope this will make you make sense how is different about java and javascript. |
Reply
FirefoxRocks
Aug 2 2006, 03:25 AM
I don't get confused about Java and JavaScript at all actually.  Similarities: They both use The Web and The Internet. Both of them are used to perform a specific function. Diffferences: Java is a programming language (like C++ or Perl, I think) JavaScript is a scripting language (like VBScript) Java is much harder to integrate into web pages using valid XHTML. JavaScript is a little hard to learn at first, but easy once you get the hang of it. Java is very hard to learn, and is best left of programmers.  JavaScript usually performs functions inside webpages. Java can do a lot of other stuff as well. You can find lessons on how to compose JavaScript at http://w3schools.com. People use JavaScript for cool effects in webpages. :-}Both are used for different purposes. If you want to learn easy, cool stuff, learn JavaScript! 
Reply
rama3i
Aug 2 2006, 12:14 PM
Java can be integrated into web pages using javascript (have you ever use java web framework like struts, spring or JSF?) On a web programming Javascript is a client side script means that your script would seen by client. But not Java. QUOTE(FirefoxRocks @ Aug 2 2006, 10:25 AM)  I don't get confused about Java and JavaScript at all actually.  Similarities: They both use The Web and The Internet. Both of them are used to perform a specific function. Diffferences: Java is a programming language (like C++ or Perl, I think) JavaScript is a scripting language (like VBScript) Java is much harder to integrate into web pages using valid XHTML. JavaScript is a little hard to learn at first, but easy once you get the hang of it. Java is very hard to learn, and is best left of programmers.  JavaScript usually performs functions inside webpages. Java can do a lot of other stuff as well. You can find lessons on how to compose JavaScript at http://w3schools.com. People use JavaScript for cool effects in webpages. :-}Both are used for different purposes. If you want to learn easy, cool stuff, learn JavaScript! 
Reply
hype
Aug 2 2006, 02:25 PM
well, Java and JavaScript syntax are similar, but not the same... Once you understand how either one of them works then you will roughly know how to code the other, but the main difference is that they are different types of language, and they are used in different ways... Basically, if you are building a website its best that you use JavaScript wherease when creating normal application Java suits it better...
Reply
peroim
Dec 20 2006, 06:57 PM
Before somebody gets confused: Java and JavaScript have NOTHING to do with eachother. JavaScript just came out while Java was very popular, so they just wanted to be popular too. Java is made by Sun, and JavaScript is created by Brendan Eich of the Netscape Communications Corporation. There are some similarities in code, but you should really don't mix them up. Java is NOT JavaScript.
Reply
.hack//GU
Oct 6 2007, 08:33 AM
QUOTE(peroim @ Dec 20 2006, 06:57 PM)  Before somebody gets confused: Java and JavaScript have NOTHING to do with eachother. JavaScript just came out while Java was very popular, so they just wanted to be popular too. Java is made by Sun, and JavaScript is created by Brendan Eich of the Netscape Communications Corporation. There are some similarities in code, but you should really don't mix them up. Java is NOT JavaScript. From what I know, the first version of Javascript is called LiveScript. By the following time, they named LiveScript 2.0 to JavaScript. And so on till now.
Reply
Similar Topics
Keywords : whats, relationship, javascript, java
- Java Game
(2)
Adjusting Rows/cols Of Frames In Frameset Using Javascript Is Not Working In Firefox 3 Is Not Working
(4) I am not able to adjust frames length/width in a frameset using java script functions I am using
firefox 3. In below code changerows is not working for me. Where as same is working in IE6.
Please help me in resolving this issue. Note: here frameset1 is the name given to the FRAMESET.
CODE function changeRows() { parent.frameset1.rows="30%,70%" }function
restoreRows() { parent.frameset1.rows="50%,50%" } ....
Learn Java Programming Language Online Step By Step
(0) I had found this site >> http://learnjava.awardspace.com This website is for people who want
to learn Java Programming Language step by step. This website also includes JAVA lessons from the
beginning to advanced level. So this site appropriates for the beginner of Java programmer language
or non-basic Java Programming Language. The lessons are easy to follow and understand starting
from how to get your PC JAVA ready, the fundamental programming concept and creating the real
application. Moreover, the working examples are also included. Please enjoy the les....
Java Object[][] Help
(2) I'm having some issues with working with objects . I get an index out of bounds ex.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 heres how
I'm using it ---------------------------- Object contestants = new Object {}; contestants
= "test"; any ideas appreciated. Do I need to specify the initial size on creation or something?
It seems I answered my own question I gave it an inital size then I was able to add things. But is
there a way I can add to it on the fly without knowing its require maximum size?....
Java Vs Javascript
(11) I thought they were completely different things. Surely javascript should be seperated from the rest....
Document.write & Noscript Questions (javascript)
(1) I am trying to use javascript to include a stylesheet depending on the user's resolution. The
HTML CODE <head> <meta http-equiv="Content-Type" content="text/html;
<?php echo _ISO; ?>" /> <?php if ($my->id) {
initEditor(); } ?> <?php mosShowHead(); ?>
<noscript><link rel="stylesheet" type="text/css"
href="http://www.highimpactart.org/templates/_HighImpactArt_/1024/1024.css"
/></noscript> <script type="....
Java Or C++
(2) Many having tell me to make my MMORPG in java leads me to agree, But I'm not sure truly is it
not yet easier, but yet the outcome of programming an MMORPG in java will make it fail or succeed
more then one in C+= I've learned a lot of variables in javascript, and I don't think that
java would be too bad either. My true question is, is those who use these languages, which seems
to give better outcome, and which seems to be more in ease. Regards -PCessna....
Java Applet Query
(1) Hey there, I have made an applet that shows images moving about the screen. I have pause/resume
buttons that work. But i've noticed that when the applet is interuppted by something i.e moving
another window over it, it will automatically repaint. My question is how can I stop this? How can
I make it so that the only time that paint is called is when I want it to be called? Thanks in
advance!....
Flash And Javascript Interaction
swfobject js questions (1) I don't know if anyone on here is familiar with this script. You can check it out here .
Basically it's a script that is supposed to give you javascript control over a flash object. I
am using it for a flv player. My question is this. I would like to display the current file's
title in a span element on the page, but the function described to gather the information for the
current file doesn't seem to work for me. The function, as outlined on on this page looks
like this: CODE function getUpdate(typ,pr1,pr2,swf) { if(typ == ....
Circular Movment/animation In Java?
(6) Hey there guys! How would i go about making an object move about a fixed point for a java
applet? Thanks in advance guys! Regards, Rod....
Javascript Object Node Referencing Help
(5) I've got two buttons with an onclick event to set the hidden input field to a certain value then
continue submitting the form. I have more than one form on display on the page and I don't want
to use ids. Is there a way I can reference it from the button/button onclick event? the forms is
laid out like this echo" "; echo" "; echo" Edit "; echo" Delete "; echo" ";
So basically the idea is to fire off new_modify function and start referencing the hidden input type
with name of do and set it to the supplied argument then continue submitting t....
Capturing Username Of Computer
using javascript, is it possible? (3) I wondering if it is possible to try and make a java script to get the computer username and log it?
/huh.gif" style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" /> edit Topic
title ....
Beginning Java
where to start (10) does anyone know of any good websites with free java tutorials for people without a lot of prior
coding experience? i've read some tutorials, but every one i read starts making references to C
and C++... well i don't know either of those so it gets really really confusing really really
fast. ive downloaded the sdk but that is it.... i know a pretty good amount of php and a tiny bit of
perl but those are procedural languages so i dont know if they even helpe me at all with an OOP
language like java.....
Java Iterator Help
I need help with a method using iterator (2) /** * Remove from the club's collection all members who * joined in the given month,
and return them stored * in a sparate collection object. * @param month The month of the
membership. * @param year The year of the membership. * @return The number of members.
*/ public ArrayList purge(int month, int year) { if(month >= 1 && month
{ Iterator it = members.iterator(); ArrayList purged;
purged = new ArrayList(); int counter = 0; wh....
Jsp Or Java Chat Script Like Mig33
(4) so most of you guys know mig33. its a wap application,probaly java.most kindly to be java. does
anyone have java knowlege or knows where i can get a chat script like mig33? i also know this server
supports jsp so im planing to use it for my application. i was hosted here last year but moved
because i found a better host. now im back just to use the jsp on this server. Im planing to run
chat applictions so if any one wants to help me in my project let me know.....
The Power Of Java
the best application that shows java features (14) Java technology has various usage from mobile applications to Enterprise applications. I think the
power of Java technology in web applications and applets is showed in "meez.com" where u can create
your own 3d avatars. /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
alt="rolleyes.gif" />....
Problem With Java Script Popup Form
Doesnt work in Safari (1) This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up
however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows
tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is
everything inside my PHP Include. If you would like to view my actual site it's
http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on
those, but this i can not get. CODE <td valign="top" class="right">
....
Hiding <div> Boxes With Javascript
Javascript Help #1 (8) This is my first help post in this Java/JavaScript section. Can someone write/find me a piece of
code that will hide boxes? Preferred stuff: There is a bar that has the subtitle of the box
contents. A button on the right side of the bar shows and hides the div box. Contents are in a box
with a border and slides in and out of the bar smoothly and relatively quickly. Box MUST be
customizable using CSS internal/external stylesheets . Any help would be appreciated. All codes
will be tested and best code be selected.....
Javascript : No Right Click Script !@
This script will allow you to protect your source coad ! (12) This script will help you to protect your source code Add this to Section of your site
! HTML <script language=JavaScript> var message="Function Disabled!";
/////////////////////////////////// function clickIE4(){ if
(event.button==2){ alert(message); return false; } } function
clickNS4(e){ if
(document.layers||document.getElementById&&!document.all){ if
(e.which==2||e.which==3){ alert(message); return false; } } }
if (docume....
Java Helpdesk
All your queries regarding Java Programming goes here. (8) Hellow friends, I am creating this thread for all queries and suggestions related to java coding. If
you face any problem, post it here, and others who have a solution can post the reply here. Hope it
helps the users.....
Adding Rows & Columns In Html Table Using Javascript
(1) I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE <table border="0" width="90%"
align="center" id="itemsTable"> <tr>
<td width="20%"> Quantity
<....
One Click Copy And Paste To Clipboard
in simple Javascript (5) I've been search the web for few weeks to see if Java can do one click copy and paste function
to the clipboard and then I can just Ctrl-V the copied "texts." I initially got this idea when I
began to approve hosting application. Instead of writing the same message over and over again, I
decided to make me a page where I can simply copy the code to appropriate answers. And seems like my
laziness is the mother of inventions /laugh.gif' border='0' style='vertical-align:middle'
alt='laugh.gif' /> Instead of doing Ctrl-A, Ctrl-C then Ctrl-V to the post board I started....
Java Basic Program Guidance
(6) aving some problems taking in the Java at Uni, Was wondering if anyone could shine some light on it
for me. My task is to write a program that will ask you to enter 2 words. the program will then
print out both words on one line. However the words will be seperated by dots that will make the
total length of the line 40. so if your first word was turtle and the second was abc, the output
would be turtle...............................abc The program should check for certain conditions:
1. a word can not be longer than 37 characters; 2. there must always be atlest 2 do....
Javascript Close Window
Javascript close window (12) Hi does anyone have a code to close the browser window. This code needs to be used to close an
actual full sized window, not a pop-up window.....
How To Create Java Button Or Frame
to be customized (12) hi to all!!!! just like to ask if it would be possible if i could make a custom
button or frame in java. i got tired of using the build infeatures in java. i would like to create
my own dessign of button or frame.. can it be possible!!! /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> thank!!!! /laugh.gif'
border='0' style='vertical-align:middle' alt='laugh.gif' /> New Help In! is NOT a descriptive
topic title. Next time you decide not to follow the posting rules, you will be issued a w....
[help] Java Script: Window.open
Works with Firefox, not IE (8) CODE <HEAD> var popUpWin=0; function popUpWindow(URLStr) {
if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); }
popUpWin = open(URLStr, 'GunBound Tactics: Screenshots',
'width=820,height=550,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=90,left=90')
;; } </HEAD> <BODY> <a
href="javascript:popUpWindow('/f11/clipped.php');"><b>Clips&
#60;/b></a> This is a script for opening a new window. It works ....
Javascript Slideshow Tutorial
How to make a slideshow in JavaScript (3) JavaScript Slideshow Tutorial I'm going to show you how to make a impressive JavaScript
slideshow. First, you're probably asking: why would I want to make a slideshow in JavaScript?
There are a number of reasons. First, you don't have to build a new HTML page for each picture.
Secondly, the page will load much faster because the of the compactness of the page. Ok let's
get started with this example. First we'll add a <script> tag in the of our HTML
document. In that script tag we will build the following: CODE first = 1; la....
Java Script Drop Down Menu With Css
- a full code for a dynamic drop down (2) Introduction This is a code that I use to dynamically create the drop down menus. First, you have
to edit the following code and put it in your Javascript. Notice : /*** SET BUTTON'S FOLDER HERE
***/. Edit that to your folder. Also, the /*** SET BUTTONS' FILENAMES HERE ***/. This creates a
mouseover when the drop down is activated. Put all your onmouseover images under: oversources = new
array; and your onmouseout images under : upsources. Be sure to set your on and out images above
each other. CODE /*** SET BUTTON'S FOLDER HERE ***/ var buttonFold....
Auto Run Java Program
Run Java program on double click (11) Some of the installables in java comes in form of .jar file, one has to just double click or type
"java -jar file.jar", and it starts executing. The reason for this is a line appended in the
MANIFEST.MF file of that jar file. For writing a similar jar file of your own, just write your java
file, then compile the same and create a jar file. Create a MANIFEST.MF file and the content should
have the followings: CODE Manifest-Version: 1.0 Created-By: xyz Main-Class:
xyz.MainClass Here xyz.MainClass is the main class. Now create a jar file with the man....
Java editor
(72) In your opinion what's the best java editor/compiler? i use jcreator le and it works nicely.......
Looking for whats, relationship, javascript, java
|
|
Searching Video's for whats, relationship, javascript, java
|
advertisement
|
|