@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> http://pastebin.bafserv.com/2543
<0> this is a function that has two switch statements at the top...they are identical, but only the first one works...
<0> all they're doing is incrementing a variable and then setting a button's value to the new value
<1> do you have any error message ?
<1> your error is here :
<1> if( isWrong == null )
<1> this is always false for true or false
<1> pbink ?
<0> sorry



<0> no error
<0> ah
<0> can i do !isWrong?
<0> L`OcuS, ?
<1> if( isWrong == false)
<0> hmm well i changed it to if( !isWrong ) and still nothin'...the points can be added but not the }else{ that subtracts them
<0> ahh
<1> should resolve the problem
<0> gotcah
<1> is it ?
<0> it seems to work...i may have other flaws that it revealed
<0> thx
<1> the probleme was that sometimes, isWrong was "undefined"
<0> ah and false catches that?
<1> but undefined == true is false
<0> gotcha
<1> and undefined == false is false also
<0> okay why won't this else statement fire when isWrong == 0? http://pastebin.bafserv.com/2544
<0> L`OcuS, ?
<2> Heh. Stinky code.
<2> L`OcuS: Next time, tell him to use proper references instead of that silly switch thing.
<1> i had not enouth time to learn him javascript basic's...
<3> Hi, just a quick question if someone can help me... Is there a way to stop program execution like exit() or die() (I know those two don't work)
<4> return;
<4> and you can use break; for loops
<1> return can be used only in a function
<4> don't tell me he is using document.write :)
<3> hmm the problem is that (onchange="function")
<3> when I change the value and press tab, the focus gets to the next field
<3> even if I do field1.focus()
<3> the focus gets to field2



<3> I tried with onblur, works better, but other problems...
<3> it seems the function ends, end AFTER that, the focus is set to field2
<4> onchange only fire when blur occcur , so what happen is blur, then onchange, and field2 got focuse via tab at the same time.
<4> hmm, onchange happen before field2 got focus
<3> so how can I set the focus back to field one (preventing the tab to switch field)
<3> I could do it with parsing the typed key (looking for a tab) but I wish there is an easier way
<4> either you can handle the tab key and cancel the event
<4> or change if the onchange/blur is triggered by the tab key,
<4> i will go for the 2nd one
<3> can you detect what keypressed triggered the event ? or I need to setup a onkeypress
<4> http://www.quirksmode.org/js/events_properties.html
<3> thanks I will read through this !
<3> thanks a lot
<4> you should be able to find the key in onchange or blur, if not, you need to setup onkeysomthing
<3> ok thanks
<1> NeoFuture : nice toy :)
<5> hi! anyone knows how to have google ads open in a new window
<5> ?
<4> is that a javascript question?
<6> contact google support
<5> suppose so
<5> no... google does not allow it
<6> then you will get no help here
<5> why is that?
<6> guess
<5> I don't know.
<5> that's why I asked =)
<4> ;)
<5> that was NOT very friendly
<4> we can help if it is javascript related question
<7> anyone from romania?
<8> hm, that's the first javascript-oriented question today
<8> asdfasdfc
<4> hi fb. ;)
<8> hello ht311


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

jbuilder2006 cvs
#windows
#linux
#chatzone
host-powered DVD USB
#teens
#linux
#mirc
problems vc8 intellisense
#java



Home  |  disclaimer  |  contact  |  submit quotes