•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,858 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,474 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1708 | Replies: 14
![]() |
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,576
Reputation:
Rep Power: 18
Solved Threads: 184
What are you smoking kid?
In Java every statement (unless it is a compound statement) needs to be terminated with a semicolon (compound statements need not be, as they're demarkated by braces which act as terminators).
Your "Java" example looks more like Visual Basic to me.
In Java every statement (unless it is a compound statement) needs to be terminated with a semicolon (compound statements need not be, as they're demarkated by braces which act as terminators).
Your "Java" example looks more like Visual Basic to me.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
I did some more investigation, and found out that the only book I have on Java (as opposed to JavaScript) was worth what I paid for it: It was given to me as "surplus materials" at the library fundraiser auction two years ago. Now I know why they got rid of it.
Now that I look at it closer, it seems to be a book on programming tricks using the quirks of one particular interpreter. It's in "cookbook" form. I thought it was a reference book, since the library's reference department had it, and stamped REFERENCE all over it. (Maybe I should have read the preface.)
I am writing an appropriate word across the front cover:
"Void"
It reminds me of an economics book I used to have, which purported to be an econ textbook, but which actually distorted economic theory to advocate socialism.
Now that I look at it closer, it seems to be a book on programming tricks using the quirks of one particular interpreter. It's in "cookbook" form. I thought it was a reference book, since the library's reference department had it, and stamped REFERENCE all over it. (Maybe I should have read the preface.)
I am writing an appropriate word across the front cover:
"Void"
It reminds me of an economics book I used to have, which purported to be an econ textbook, but which actually distorted economic theory to advocate socialism.
Last edited by MidiMagic : Aug 30th, 2007 at 2:58 am.
Daylight-saving time uses more gasoline
Glad you got rid of that book. The content it had was kind of giving us fits... ;-)
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 916
Reputation:
Rep Power: 4
Solved Threads: 45
•
•
•
•
Originally Posted by MidiMagic
Internet Explorer allows some JavaScript statements to work correctly without semicolons, but other browsers do not. So IE cheats. Don't write your code to rely on IE quirks.
IE is correct; according to the 'standard' semicolons after javascript statements are optional. Or, as I just read; 'automatically inserted by the parser when it encounters newlines'. Read the ECMAScript standard document if you like.. javascript is approximately equal to ( and syntatically identical to ) ECMAscript. I'm not sure which ecmascript version corresponds to which JS version, but the semicolon thing has been around since before I saw any javascript. If other browsers aren't allowing this, they're not using conformant ECMAscript parsers.
http://www.ecma-international.org/pu...s/Ecma-262.htm
it's a word doc, do a search in it for 'automatic semicolon insertion'. saying that though; I'd personally recommend a real semicolon after every statement. ( in javascript and english. )
perhaps you're getting confused about java / javascript yourself there MidiMagic
... but, the OP did insist on repeatadly 'saying' java even after correction... the original code is html + javascript + asp with vbscript, without a hint of java. and it's way too long for me to read more than half of it.who had the java.* name first?
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- Java 3D Environment (Java)
- Java 3D (Java)
- Java Expert (Needed) (Java)
- Java Chat Reboots (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: master page interaction
- Next Thread: Opening a Template in NVU to edit



Linear Mode