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.
Printable View
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.
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?
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
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)
eh. thanks for the help bsw2112
No, You are an idiot, very much so, because they are related - JavaScript uses the Java syntax for clientside scripting...Quote:
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)
And I think he wanted it in JavaScript, and not any Server Side Language
Go neo.. Go neo :eek:
here are two links that talk about some of the differences
between the two J's
http://www.geocities.com/anatole_m/J...vacompair.html
http://www.dannyg.com/ref/javavsjavascript.html
The syntax is similar, but that is pretty much where the simularities stop. He mentioned java script, but then mentioned an applet. Applet != ScriptQuote:
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
Yeah, I know - I just wanted to get back to the guy for calling him an idiot, and besides, that is a major similarity...Quote:
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
It was the second time in the same day that I pointed out to Evan that JavaScript != Java.Quote:
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
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).
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.Quote:
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...
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.
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.Quote:
Originally posted by kasracer Also, I am sure Evan can defend himself if he wants to.
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).
Quote:
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 ...
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...Quote:
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).
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.
Quote:
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.
And I still stnad by the fact that I'm NOT a badger(or a kitten)!Quote:
Originally posted by vbNeoI just wanted to get back to the guy for calling him an idiot
PS: I'm actually a seaturtle, but don't tell the government!
Obviously the similar names was a good marketing move
bsw
He wants to connect to a database. I'm sure that would require a server-side language.Quote:
Originally posted by vbNeo
And I think he wanted it in JavaScript, and not any Server Side Language
Many people doesn't realize that(although it is rather logical)Quote:
Originally posted by The Hobo
He wants to connect to a database. I'm sure that would require a server-side language.
yes it isQuote:
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...
oh ok thanksQuote:
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
I didnt ever mean Java Applet.. was a typo.. oh wellQuote:
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)
Thanks.. thats coolQuote:
Originally posted by bsw2112
here are two links that talk about some of the differences
between the two J's
http://www.geocities.com/anatole_m/J...vacompair.html
http://www.dannyg.com/ref/javavsjavascript.html
Yep yep.. trueQuote:
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).
ArgeedQuote:
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...
PHP after PERL? You sure?Quote:
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.
good pointQuote:
Originally posted by bsw2112
Obviously the similar names was a good marketing move
bsw
How many damn times do you need to reply?! Geeze and I thought I was bad
:pQuote:
Originally posted by kasracer
How many damn times do you need to reply?! Geeze and I thought I was bad
The badgers are coming RUUUUUNNNNNNN
Ohyes, very sure. And you don't have to capitalize Perl, it doesn't really stand for anything.Quote:
Originally posted by Evan
PHP after PERL? You sure?
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.
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
hhmmm....i wonder in what other language i saw that term used before ;)Quote:
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.
bsw
Uhm... all of them? Duh.Quote:
Originally posted by bsw2112
hhmmm....i wonder in what other language i saw that term used before ;)
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.
whats a badger?Quote:
Originally posted by vbNeo
The badgers are coming RUUUUUNNNNNNN
I was sure perl was from a lot of older languages, and he took all the stuff he liked and put them together.Quote:
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.
http://www.pconline.com/~erc/perl.htmQuote:
Ohyes, very sure. And you don't have to capitalize Perl, it doesn't really stand for anything.
Perl, the practical extraction and report language, has captured the hearts and minds of computer users everywhere. So much, so, in fact, that some people go so far as to write poetry in Perl, taking advantage of Perl's confusing syntax. (Perl is also called the pathologically eclectic rubbish lister.)
:D :D :D :D
Notice they don't capitalize it, anyways.Quote:
Originally posted by Evan
http://www.pconline.com/~erc/perl.htm
Perl, the practical extraction and report language, has captured the hearts and minds of computer users everywhere. So much, so, in fact, that some people go so far as to write poetry in Perl, taking advantage of Perl's confusing syntax. (Perl is also called the pathologically eclectic rubbish lister.)
:D :D :D :D
True, True.. But after PHP it looks small being spelled at perl
But at least it DOES stand for something.
1) C++ is very much a language unto itself.Quote:
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.
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 ;)
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:Quote:
I don't know about Python and Ruby.
Python uses only indentation, soCode:{
code
}
I think it's dangerous, because if I copy & paste this little snippet to my post again, but this time without the code tagsCode:if cond
this is dependent
this too
this not
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.