@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> hmm, once it injects the input box it doesnt go away when a different setting is picked... do i need to add a fuction to delete it?
<1> i suppose so
<0> would running a loop work?
<1> wtf for?
<1> oh what more could one have wished for
<2> I still got his younger picture from the old msft annual report
<3> hello
<3> is there a way in .valueOf() method to determine which primitive type is expected on return?
<2> typeof
<2> hmm not really sure what you mean, but typeof give you the type of value that the var is holding
<3> uh, typeof(this) always returns "object" inside .valueOf()
<4> if I have a bunch of elements like addvalue_1 addvalue_2 etc... how do I get the total of all addvalues eg. is there a way to using the dom model to sum up the values of all addvalue_* elements?
<5> hi, is javascript truly single-threaded? does setTimeout(foo, 500) spawn a new thread that interrupts whatever is happening 500 ms from now?
<6> single thread



<6> gives the *illusion* of things happening at once
<2> you can consider that as "thread", but the there only one op running at one instance
<2> yes. "illusion"
<5> what about event callbacks
<2> same
<5> if I'm in the middle of var b = 6; and an event gets caught and the callback executed does it wait for var b=6; to finish and then start executing code?
<2> it will
<2> there is no such thing as in the middle of var b=6, this is one op unit
<5> ok, bad example
<5> what if I have a function foo() { while(1) { var a = 6; var b = 5;} }
<5> if I call foo and then an event fires
<5> will it interrupt the execution of foo to do its thing?
<2> it won't , you will have an illusion that foo is still running and event is being handle
<5> ok one more: what if I have a function foo() { var a = 5; var b = 6; } and at the moment I reach the semicolon after var = 5 an event callback calls foo(). Does the previous call of foo ever get a chance to complete?
<2> trevo: it will
<5> wouldn't that imply true threading? like what if I make foo like: function foo() { print("a"; print("b") } // pseudo-code. So I could potentially see something like: "aabb" ?
<2> yes
<5> everyone is saying javascript is not threaded though
<2> it act like threading but it is not real thread
<5> a single threaded design would produce something like "aab"
<2> no, abab
<5> well that's pretty nuts how they simulate threading then
<5> do you know of cases where it breaks?
<2> well , the code run in js interputer, i think the code pipeline is just smart enough to simulate that.
<2> when you didn't clean up the "thread" nicely, the browser will go nuts
<7> hey guys
<7> I'm trying to link AS with JS but it is not working
<7> anyone care to help?
<5> the code from the jsflash site works
<7> jsflash?
<7> www.jsflash.com?
<7> sorry I am not familiar with that site?
<5> flashjs excuse me
<5> http://osflash.org/flashjs
<5> there's a macromedia package that can help you link as and js
<5> (call as from js, call js from as---it's pretty sweet)
<7> I know I tried to use the External cl***
<7> but I wasa unsuccessful
<5> don't know anything about external...I know flashjs works though
<7> do I need another s/w?
<7> besides macromedia MX?
<5> no just flash
<5> it works if you read the documentation line for line...the other sites that have tutorials on how to do it rely on outdated code (found this out the hard way)
<7> k I'll take a look
<7> thank you
<7> but this way it makes a new object everytime you call a js function?
<8> whats the way to document.write a "
<9> hi
<10> yoo tlm
<11> hi guys. does anyone know how to compare two dates which are of yyyy-mm-dd format.validating the date fields work correctly.im just left with making sure the to date is bigger than the from date
<12> even if there was no method
<12> its obvious
<12> you compare the years first
<12> if its the same year the month
<12> if its the same month the days
<12> if
<12> else if
<12> get it?
<11> PutItak: thanks.i am a beginner.searched certain tutorials, tried what was said but nothig.let me try what you said



<12> ok
<12> show me the code if you get errors but I think its pretty straight forward
<11> ok,thanks heaps
<13> yiot: You may create a Date object from your date and compare the values from the Date object's getTime() method.
<11> kirschkern: how?
<13> how what?
<14> new Date()
<11> kirschkern: how can i create a date object.i am a beginner
<14> yiot: new Date()
<14> Look it up.
<11> Pilum:i thought new date was for the current date
<14> No, it can take a date string as a parameter.
<11> Pilum:thanks,i am going to check further
<13> yiot: http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/reference/date.html#1193137
<13> yiot: Example: "Is today > yesterday"?
<13> alert(new Date(2006,05,22).getTime() > new Date(2006,05,21).getTime())
<13> Note: The month starts with 0! So June is 5
<11> kirschkern:thanks, im going to try it now
<14> Beware that month index is zero based.
<14> Oh kirschkern already said it. :-)
<13> Cheers!
<11> Pilum: regarding the month index, would that be a good choice.people getting filling in my form may put 12 as december
<14> Use a date picker.
<14> And you could always convert the index afterwards.
<15> ppl> hi..._
<16> yop people
<14> Yop?
<16> hi if you want :)
<10> stupid french... (:p)
<16> lol
<16> that's not french
<16> that's international
<16> :)
<16> 14:14:17 >MJBoY87 yop on #css
<16> :)
<17> hello all in the house
<18> ;)
<17> anyone can help me with a small ***igment with javascript?
<16> question: function a() calling function b(), any chance to get the name and parameters of function a() from function b()?
<14> Depends on what it is.
<14> Aquel: Return value
<14> R1^26: Do not msg me.
<16> Pilum, didn't get that
<14> return somevalue;
<14> and in a: somevalue = b(...);
<16> ah, hum
<19> the pastebin didn't work ;-) http://www.phpfrance.com/irc/TheWall/index.php?wall=630
<14> Should be a caller keyword
<20> hi
<20> how do i set the name attribute on an input created using createElement, this doesn't work in IE: http://junk.****software.com/inputName.html
<13> set the name property
<13> hmmm... doesn't seem to work either
<20> bah, msdn says IE doesn't support setting the name at runtime
<13> So use an id
<20> id's don't get posted
<13> ?
<20> ?
<20> i have to use this bollocks createElement('<input name="foo" />');
<13> Can you use innerHTML instead?
<13> document.body.innerHTML += "<input name='foo'></input>";
<13> works
<20> doesn't work with XHTML
<13> Not for Mozilla, but for IE
<13> Even in IE 7.0
<20> well that's no use then
<20> i used a try catch
<20> works now
<21> Has anyone tried javascript development using Eclipse? If so, how did it work out for you?
<2> in what specific area you want to know?
<2> using js eclipse, it work pretty good
<21> Specifically regarding javascript in web pages. But I'm also generally curious
<21> you use sciTE Pilum?


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#linux
#MissKitten
YM!Cam
What was the name of the housekeeper in Doctor Finlays Casebook
heaos define
#c++
#AllNiteCafe
user bun suport
#php
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes