User Name Password Register
DaniWeb IT Discussion Community
All
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 456,479 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,761 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: 2172 | Replies: 14
Reply
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Help tweaking some java

  #11  
Aug 26th, 2007
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Help tweaking some java

  #12  
Aug 29th, 2007
Then this book I have is trash.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Help tweaking some java

  #13  
Aug 30th, 2007
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.
Last edited by MidiMagic : Aug 30th, 2007 at 3:58 am.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 7,012
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 25
Solved Threads: 368
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: Help tweaking some java

  #14  
Aug 30th, 2007
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.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 971
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 48
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: Help tweaking some java

  #15  
Aug 30th, 2007
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?
Plato forgot the nullahedron..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 2:43 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC