|
-
Jan 27th, 2004, 03:22 PM
#1
Thread Starter
Frenzied Member
JS limits?
im thinking about making a new project in JS, this application will need to write to a database. Can java do that?
Im not really sure what the limits of it are. Im not good with it.
-
Jan 27th, 2004, 03:25 PM
#2
Thread Starter
Frenzied Member
The first thing I will want to do is find a complete java applet, and put it on the website to make sure i can get it to work.. and start playing and see if I can do stuff with java.
Can anyone point me somewhere that I could find a applet to do this?
-
Jan 27th, 2004, 03:53 PM
#3
Hyperactive Member
this will be a good place to begin you research
http://java.sun.com/learning/tutorial/index.html
and yes JAVA can do all that stuff you need
but it won't be an applet...
it will be JSP (that is if you want this to be on the net)
bsw
-
Jan 27th, 2004, 04:21 PM
#4
Addicted Member
Re: JS limits?
Evan, you must be an idiot.
For the second time today:
JavaScript is in no way related to Java!!!
There is a seperate Java forum for questions like these. This forum is for questions about JavaScript.
And just to keep you from getting more confused:
JSP = Java Server Pages (Again not related to JavaScript)
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jan 28th, 2004, 01:05 PM
#5
Thread Starter
Frenzied Member
eh. thanks for the help bsw2112
-
Jan 29th, 2004, 02:08 PM
#6
Frenzied Member
Re: Re: JS limits?
Originally posted by Travis G
Evan, you must be an idiot.
For the second time today:
JavaScript is in no way related to Java!!!
There is a seperate Java forum for questions like these. This forum is for questions about JavaScript.
And just to keep you from getting more confused:
JSP = Java Server Pages (Again not related to JavaScript)
No, You are an idiot, very much so, because they are related - JavaScript uses the Java syntax for clientside scripting...
And I think he wanted it in JavaScript, and not any Server Side Language
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 29th, 2004, 03:40 PM
#7
Thread Starter
Frenzied Member
Go neo.. Go neo
-
Jan 29th, 2004, 08:05 PM
#8
Hyperactive Member
-
Jan 29th, 2004, 08:16 PM
#9
Re: Re: Re: JS limits?
Originally posted by vbNeo
No, You are an idiot, very much so, because they are related - JavaScript uses the Java syntax for clientside scripting...
And I think he wanted it in JavaScript, and not any Server Side Language
The syntax is similar, but that is pretty much where the simularities stop. He mentioned java script, but then mentioned an applet. Applet != Script
-
Jan 29th, 2004, 09:41 PM
#10
Frenzied Member
Re: Re: Re: Re: JS limits?
Originally posted by kasracer
The syntax is similar, but that is pretty much where the simularities stop. He mentioned java script, but then mentioned an applet. Applet != Script
Yeah, I know - I just wanted to get back to the guy for calling him an idiot, and besides, that is a major similarity...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 29th, 2004, 09:58 PM
#11
Addicted Member
Re: Re: Re: JS limits?
Originally posted by vbNeo
No, You are an idiot, very much so, because they are related - JavaScript uses the Java syntax for clientside scripting...
And I think he wanted it in JavaScript, and not any Server Side Language
It was the second time in the same day that I pointed out to Evan that JavaScript != Java.
But to educate you:
JavaScript gets its syntax from C++ (from C from BCPL yadda yadda). It was orignally called LiveScript when it was being developed.
Java gets its syntax from C++ (from yadda yadda).
Their syntaxes are similar because they come from the same place, not because one comes from the other. Netscape changed the name of LiveScript to capitalize on Java's recognition and purpose (write once, anywhere).
Netscape didn't change the name of LiveConnect though, and I don't know why.
Rarely is there the need to write to a DB with client-side scripting, so he either wants server-side JavaScript (not really worth it, IMO) or, as someone pointed out, a Java Applet (which could set up a connection back and do magic, yadda yadda).
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jan 29th, 2004, 10:11 PM
#12
Re: Re: Re: Re: Re: JS limits?
Originally posted by vbNeo
Yeah, I know - I just wanted to get back to the guy for calling him an idiot, and besides, that is a major similarity...
That isn't a major similarity, I'd say it is minor compared to the other differences. Also, I am sure Evan can defend himself if he wants to.
How do you know he isn't an idiot? I'm not trying to call him one, but you have no idea who he is or how smart he is.
-
Jan 29th, 2004, 10:40 PM
#13
Addicted Member
Re: Re: Re: Re: Re: Re: JS limits?
Originally posted by kasracer Also, I am sure Evan can defend himself if he wants to.
Besides, I've been known to be wrong. Evan may not be an idiot. In either case, he may be embarrassed to have you defending him, vbNeo.
People change, Evan may be an idiot, or he may have been, and simply got better. I don't know, I don't care. The point remains, JavaScript != Java (and if you really want to get into it, JScript is not JavaScript is not Java).
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jan 30th, 2004, 04:04 AM
#14
Frenzied Member
Re: Re: Re: Re: Re: Re: JS limits?
Originally posted by kasracer
That isn't a major similarity, I'd say it is minor compared to the other differences. Also, I am sure Evan can defend himself if he wants to.
How do you know he isn't an idiot? I'm not trying to call him one, but you have no idea who he is or how smart he is.
I've been working with the guy for about 1½ year now so yes, I do ...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 30th, 2004, 04:05 AM
#15
Frenzied Member
Re: Re: Re: Re: Re: Re: Re: JS limits?
Originally posted by Travis G
Besides, I've been known to be wrong. Evan may not be an idiot. In either case, he may be embarrassed to have you defending him, vbNeo.
People change, Evan may be an idiot, or he may have been, and simply got better. I don't know, I don't care. The point remains, JavaScript != Java (and if you really want to get into it, JScript is not JavaScript is not Java).
I still think there are striking similarities... The String object for example... I'm not that much into C++ but I'm pretty far with Java right now...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 30th, 2004, 09:52 AM
#16
The String object has been modeled in some places after Java's String class, but only in some. There's differences in the available methods, and after all, you don't have all that much choice.
Besides, PHP was modeled after Perl, yet there never are any postings in the wrong forum with that. Why's that?
The real problem are the similar names, which confuses people. But as Travis pointed out, we already told him once that day that JavaScript != Java.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 30th, 2004, 10:45 AM
#17
Frenzied Member
Originally posted by CornedBee
The real problem are the similar names, which confuses people. But as Travis pointed out, we already told him once that day that JavaScript != Java.
Originally posted by vbNeoI just wanted to get back to the guy for calling him an idiot
And I still stnad by the fact that I'm NOT a badger(or a kitten)!
PS: I'm actually a seaturtle, but don't tell the government!
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 30th, 2004, 11:42 AM
#18
Hyperactive Member
Obviously the similar names was a good marketing move
bsw
-
Jan 30th, 2004, 12:05 PM
#19
Stuck in the 80s
Re: Re: Re: JS limits?
Originally posted by vbNeo
And I think he wanted it in JavaScript, and not any Server Side Language
He wants to connect to a database. I'm sure that would require a server-side language.
-
Jan 30th, 2004, 12:42 PM
#20
Frenzied Member
Re: Re: Re: Re: JS limits?
Originally posted by The Hobo
He wants to connect to a database. I'm sure that would require a server-side language.
Many people doesn't realize that(although it is rather logical)
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 30th, 2004, 01:03 PM
#21
Thread Starter
Frenzied Member
Re: Re: Re: Re: Re: JS limits?
Originally posted by vbNeo
Yeah, I know - I just wanted to get back to the guy for calling him an idiot, and besides, that is a major similarity...
yes it is
-
Jan 30th, 2004, 01:05 PM
#22
Thread Starter
Frenzied Member
Originally posted by bsw2112
this will be a good place to begin you research
http://java.sun.com/learning/tutorial/index.html
and yes JAVA can do all that stuff you need
but it won't be an applet...
it will be JSP (that is if you want this to be on the net)
bsw
oh ok thanks
-
Jan 30th, 2004, 01:05 PM
#23
Thread Starter
Frenzied Member
Re: Re: JS limits?
Originally posted by Travis G
Evan, you must be an idiot.
For the second time today:
JavaScript is in no way related to Java!!!
There is a seperate Java forum for questions like these. This forum is for questions about JavaScript.
And just to keep you from getting more confused:
JSP = Java Server Pages (Again not related to JavaScript)
I didnt ever mean Java Applet.. was a typo.. oh well
-
Jan 30th, 2004, 01:05 PM
#24
Thread Starter
Frenzied Member
-
Jan 30th, 2004, 01:05 PM
#25
Thread Starter
Frenzied Member
Re: Re: Re: Re: JS limits?
Originally posted by Travis G
It was the second time in the same day that I pointed out to Evan that JavaScript != Java.
But to educate you:
JavaScript gets its syntax from C++ (from C from BCPL yadda yadda). It was orignally called LiveScript when it was being developed.
Java gets its syntax from C++ (from yadda yadda).
Their syntaxes are similar because they come from the same place, not because one comes from the other. Netscape changed the name of LiveScript to capitalize on Java's recognition and purpose (write once, anywhere).
Netscape didn't change the name of LiveConnect though, and I don't know why.
Rarely is there the need to write to a DB with client-side scripting, so he either wants server-side JavaScript (not really worth it, IMO) or, as someone pointed out, a Java Applet (which could set up a connection back and do magic, yadda yadda).
Yep yep.. true
-
Jan 30th, 2004, 01:06 PM
#26
Thread Starter
Frenzied Member
Re: Re: Re: Re: Re: Re: Re: Re: JS limits?
Originally posted by vbNeo
I still think there are striking similarities... The String object for example... I'm not that much into C++ but I'm pretty far with Java right now...
Argeed
-
Jan 30th, 2004, 01:06 PM
#27
Thread Starter
Frenzied Member
Originally posted by CornedBee
The String object has been modeled in some places after Java's String class, but only in some. There's differences in the available methods, and after all, you don't have all that much choice.
Besides, PHP was modeled after Perl, yet there never are any postings in the wrong forum with that. Why's that?
The real problem are the similar names, which confuses people. But as Travis pointed out, we already told him once that day that JavaScript != Java.
PHP after PERL? You sure?
-
Jan 30th, 2004, 01:06 PM
#28
Thread Starter
Frenzied Member
Originally posted by bsw2112
Obviously the similar names was a good marketing move
bsw
good point
-
Jan 30th, 2004, 01:14 PM
#29
How many damn times do you need to reply?! Geeze and I thought I was bad
-
Jan 30th, 2004, 01:18 PM
#30
Thread Starter
Frenzied Member
Originally posted by kasracer
How many damn times do you need to reply?! Geeze and I thought I was bad
-
Jan 30th, 2004, 01:25 PM
#31
Frenzied Member
Argh
The badgers are coming RUUUUUNNNNNNN
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jan 30th, 2004, 01:25 PM
#32
Addicted Member
Originally posted by Evan
PHP after PERL? You sure?
Ohyes, very sure. And you don't have to capitalize Perl, it doesn't really stand for anything.
To add to the geaneology reports from earlier:
PHP gets its syntax from Perl. Perl gets its syntax from C.
It is safe to say that C is the mother of modern-day programing languages: C++ (not a language unto itself so much as a superset of C), C# (MS's .Net version of C++), VC++, Java, JavaScript, JScript (MS's extention to ECMAScript standards since they would be sued for admitting to extend JavaScript), J++ (don't ask me), Perl (written in C), PerlScript (the difference is very slight), and PHP. BCPL is the grandmother.
I don't know about Python and Ruby. I've not worked with them, but I'd guess they share the same syntax. I'm sure there are many others.
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jan 30th, 2004, 02:10 PM
#33
Hyperactive Member
although javascript is mostly known for it's client side uses...
you can use javascript to access databse etc...
if you use it on the server (ie. server side javascript)
here is a very interesting link
http://resource.dcs.st-and.ac.uk/Jav...sref/intro.htm
from that page
In contrast to pure client-side JavaScript scripts, JavaScript applications that use server-side JavaScript are compiled into bytecode executable files. These application executables are run in concert with a web server that contains the JavaScript runtime engine. For this reason, creating JavaScript applications is a two-stage process.
hhmmm....i wonder in what other language i saw that term used before 
bsw
Last edited by bsw2112; Jan 30th, 2004 at 02:14 PM.
-
Jan 30th, 2004, 03:34 PM
#34
Addicted Member
Originally posted by bsw2112
hhmmm....i wonder in what other language i saw that term used before
Uhm... all of them? Duh.
And that isn't true, mind you, but it is very likely true. There are languages that aren't compiled into executables and just handled at run-time. Client-side JavaScript and Perl (though you can if you really want to you) are examples.
Point is, JavaScript nor Java have any distinction in being compiled.
Travis, Kung Foo Journeyman
Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
OSS: Mozilla, MySQL (Manual)
-
Jan 30th, 2004, 04:05 PM
#35
Thread Starter
Frenzied Member
Re: Argh
Originally posted by vbNeo
The badgers are coming RUUUUUNNNNNNN
whats a badger?
-
Jan 30th, 2004, 04:11 PM
#36
Thread Starter
Frenzied Member
Originally posted by Travis G
Ohyes, very sure. And you don't have to capitalize Perl, it doesn't really stand for anything.
To add to the geaneology reports from earlier:
PHP gets its syntax from Perl. Perl gets its syntax from C.
It is safe to say that C is the mother of modern-day programing languages: C++ (not a language unto itself so much as a superset of C), C# (MS's .Net version of C++), VC++, Java, JavaScript, JScript (MS's extention to ECMAScript standards since they would be sued for admitting to extend JavaScript), J++ (don't ask me), Perl (written in C), PerlScript (the difference is very slight), and PHP. BCPL is the grandmother.
I don't know about Python and Ruby. I've not worked with them, but I'd guess they share the same syntax. I'm sure there are many others.
I was sure perl was from a lot of older languages, and he took all the stuff he liked and put them together.
-
Jan 30th, 2004, 04:13 PM
#37
Thread Starter
Frenzied Member
-
Jan 30th, 2004, 04:16 PM
#38
Stuck in the 80s
Notice they don't capitalize it, anyways.
-
Jan 30th, 2004, 04:19 PM
#39
Thread Starter
Frenzied Member
True, True.. But after PHP it looks small being spelled at perl
-
Jan 30th, 2004, 05:15 PM
#40
But at least it DOES stand for something.
It is safe to say that C is the mother of modern-day programing languages: C++ (not a language unto itself so much as a superset of C), C# (MS's .Net version of C++), VC++, Java, JavaScript, JScript (MS's extention to ECMAScript standards since they would be sued for admitting to extend JavaScript), J++ (don't ask me), Perl (written in C), PerlScript (the difference is very slight), and PHP. BCPL is the grandmother.
1) C++ is very much a language unto itself.
2) C# is MS's .Net version of Java, it's much more similar to that than to C++. (Yeah, I know about J#, but that one's a joke.)
3) J++ isn't really a language. Visual J++ was MS's IDE for Java, but they modified their own virtual machine so hard that it didn't work with normal Java anymore.
4) Then CPL would be the great-grandmother, and you forgot B 
I don't know about Python and Ruby.
Never heard of Ruby, but Python uses its very own syntax, which I find very weird, unreadable and dangerous, if intuitive. But to each his own. The typical sign of a C-like language is the braces for blocks:
Python uses only indentation, so
Code:
if cond
this is dependent
this too
this not
I think it's dangerous, because if I copy & paste this little snippet to my post again, but this time without the code tags
if cond
this is dependent
this too
this not
the program suddenly gets a different meaning. I don't think it's wise to trust functionality to something as volatile as whitespace.
But apparently people like it.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|