Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Feb 2003
    Location
    Miami. Fl.
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts

    javascript console

    Hey guys,

    I use netscape browser at times. I always see this "javascript console" and "java console" and wondered what that is all about. Is it to debug and check for errors ? Please let me know, I can't help myself because it's mind-boggling. It just totally blows my mind. Thanks

    Andilcho

    P.S. I love JavaScript

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    The Java Console is an interface to the Java Runtime Environment/Virtual Machine. I don't know especially much else about it.

    The JavaScript Console is both a script execution tool (it has a simple textbox commandline, nothing fancy), a JavaScript Error/Warning/Notice panel, and a general error panel. For example, you will see an error reported in if each time a webpage in Standards compliant mode tries to load a CSS file that is not sent as "text/css".


    Opera also has a JavaScript Console, though in their case it only reports JavaScript errors.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    New Coder
    Join Date
    Feb 2003
    Location
    Miami. Fl.
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts

    javascript console

    Ok,

    But may I use it to debug javascripts and java applets ?
    Imagine, copy and paste any code any try to debug cetrain scripts and applets. Can I?

  • #4
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, not that way you seem to want to do it. Java is compiled. JavaScript (which, for the record, is an entirely different language than Java) on the other hand is interpreted. However, it doesn't allow script editing, only simple command execution and Error and Warning notification.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #5
    New Coder
    Join Date
    Feb 2003
    Location
    Miami. Fl.
    Posts
    47
    Thanks
    1
    Thanked 0 Times in 0 Posts

    java question

    I know Javascript and Java are two complete different languages. In fact, I heard java is a more powerful language than Javascrpt. However, is it posible for me to edit java applets in the .class files ? Just like I edit my own javascripts but imagine being able to do so with java applets. Please let me know.

    Thanks,

    Andres Losada
    www.eyedj.com

    P.S. I love JavaScript

  • #6
    Master Coder
    Join Date
    Feb 2003
    Location
    UmeŚ, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Nope. Java is bytecode compiled, and the .class file is the compiled code. If you want to edit Java code you need to edit the source and recompile the .class file. (There are Java bytecode-->Java compilers, but I don't think you'd want to use them.)

    That Java is a more powerful language than JavaScript is debatable. I would say it is a more efficient but less powerful language. How powerful a language is depends on the core features of the language, and JavaScript has a very powerful core syntax. Sure, it's no Ruby, Python or Scheme, but it's powerful nonetheless. Java is a lower level language compared to them, and that can be seen in that you have to enter far more code to do things that take only a very few lines of code in either of them.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

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