Page 1 of 2 12 LastLast
Results 1 to 40 of 73

Thread: JS limits?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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?

  3. #3
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    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

  4. #4
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218

    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)

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    eh. thanks for the help bsw2112

  6. #6
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Go neo.. Go neo

  8. #8
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    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

  9. #9
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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

  10. #10
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  11. #11
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218

    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)

  12. #12
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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.

  13. #13
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218

    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)

  14. #14
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  15. #15
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  16. #16
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  17. #17
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    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.

  18. #18
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    Obviously the similar names was a good marketing move
    bsw

  19. #19
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  20. #20
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  21. #21

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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

  22. #22

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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

  23. #23

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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

  24. #24

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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
    Thanks.. thats cool

  25. #25

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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

  26. #26

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    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

  27. #27

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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?

  28. #28

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Originally posted by bsw2112
    Obviously the similar names was a good marketing move
    bsw
    good point

  29. #29
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    How many damn times do you need to reply?! Geeze and I thought I was bad

  30. #30

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Originally posted by kasracer
    How many damn times do you need to reply?! Geeze and I thought I was bad

  31. #31
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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.

  32. #32
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    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)

  33. #33
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292
    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.

  34. #34
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    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)

  35. #35

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Re: Argh

    Originally posted by vbNeo
    The badgers are coming RUUUUUNNNNNNN
    whats a badger?

  36. #36

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    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.

  37. #37

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Ohyes, very sure. And you don't have to capitalize Perl, it doesn't really stand for anything.
    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.)


  38. #38
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.)

    Notice they don't capitalize it, anyways.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  39. #39

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    True, True.. But after PHP it looks small being spelled at perl

  40. #40
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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:
    Code:
    {
      code
    }
    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.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width