@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<Icewolf> How can I do it so, if an user presses a checkbox on my site, some http code gets shown below
<[Torgo]> put the code in <div style="display:none" id="divMyDiv"> </div>
<[Torgo]> then in the checkbox's onclick="document.getElementById('divMyDiv').style.display='';"
<Icewolf> I see
<Icewolf> Thank you :)
<Icewolf> But how can I take the display away again?
<Icewolf> style.display=none; ?
<Icewolf> or 'none' to be specific
<Icewolf> And do you find this code to be messy for this simple thing: http://pastebin.com/523155
<fatbrain> hm... bed awaits...
<fatbrain> now I only have to move 4feet to get to it...
<Icewolf> and turn off the screen
<Icewolf> and take cloths off
<Icewolf> so forget it! :)
<fatbrain> I'm already nekked!! (ihhhk!)
<Icewolf> yieeek!
<fatbrain> and I tend to leave the screen on
<Icewolf> why is that?
<Icewolf> movie?
<fatbrain> If I turn it of the usb-hub (embedded on my tft) also turns off, which is no good
<fatbrain> I *charge* my Mp3-player using the usb-hub.
<Icewolf> ah
<fatbrain> no, it's step 8 on my 10-things-todo-before-hitting-the-sack list.
<fatbrain> too bad my soundcard is busted :'(
<fatbrain> I only get some static noise... really annoying...
<fatbrain> hehe, I better start turning off my tft before going to bed...
<fatbrain> do you still call a tft a monitor? or is that crt-exclusive?
<fatbrain> I never gotten the hang of *that* lingo.
<ht311> no once call those tft
<ht311> all lcd now
<fatbrain> ah, so I should refer to it as *the lcd* ?
<ht311> you can still them monitor
<fatbrain> monitor it is.
<ht311> or mon. ;)
<fatbrain> or mon.
<fatbrain> :P
<ht311> i have a 60" monitor
<ht311> :p
<fatbrain> crappy thing is, I've been dead-tired for past 4hours, and I have to go to some retarded matlab course in 4hours :'(
<fatbrain> 60"... that's almost as big as my room.
<ht311> nah, but your bed may be
<fatbrain> you havn't seen my room :(
<fatbrain> been up all night writing a mod for world-of-warcraft that will allow you to communicate with other factions (pvp-wise)
<fatbrain> *yawn*
<fatbrain> cu tomorrow guys.
<ht311> nite
<fatbrain> cu <- what's that!?
<fatbrain> *see you*
<fatbrain> (I'm not 14, so I have to remember to behave)
<ht311> nah, is fine, I don't even know how to spell :D
<fatbrain> xD
<fatbrain> /exit-quit-boot
<Smawg> how can I set a default value to a text box?
<[Torgo]> value=""
<archaevs> <input type="text" name="myName" value="My default value"/>
<GMFlash> hello, does anyone know why adding a custom property to a 'rule' object doesn't work in IE? here is an example: http://mjsdigital.com/js_test_gmflash.htm
<L`OcuS> salutations matinales / morning greetings
<SufiBlade> hiya
<Pilum> Hello.
<FonZzie> hello everybody :)
<FonZzie> someone alive here ? ;)
<Pilum> Only undead roam the halls of #javascript
<SufiBlade> the way is shut :)
<FonZzie> I've a problem when I test an email validity... My function (with regexp) works if the email is xxxx@yy.com but does not work if the email is xxx@.yyy.zzz.com
<FonZzie> so what will be the change on the regexp in order to check "complex" and "simple" email addresses ? :)
<Pilum> Doesn't look like a valid address to me. :-)
<FonZzie> at present my regexp : var reg = /^[\w\._-]+@[\w]{2,}[.][A-Za-z]{1,6}$/;
<FonZzie> in france we've email like : toto.toto@midi-pyrenees.ecologie.gouv.fr
<FonZzie> for example !
<Pilum> Regexp isn't my forte, but if you google you'll find hundreds of e-mail validation patterns.
<james26> anyone knows of a good channel for java programming discussions?
<Pilum> #java ?
<james26> yeah, not sure if that's actually for programming, or for the island of java (indonesia) :)
<Pilum> Javascript and Java are not the same languages btw.
<Pilum> #java was for programming last I checked.
<james26> yep, i do some work with both languages, so i thought i should find a place and see if i can help out anyone with java questions
<james26> yep it seems to be for java programming. ill check out the website
<ht311> 'morning
<GeirOla> morning
<GeirOla> good afternoon, actually =]
<ht311> ;)
<fatbrain> lo ht311
<ht311> lo
<Rex_Goodhear> Good morning guys. Is there some way I can get a function to stop the browser from advancing to the <a href URL? In other words, with <a href=test.php onClick=thisfunction()> I would want thisfunction to negate the URL.
<Rex_Goodhear> I tried return false.... but it didn't work :(
<L`OcuS> salutations du soir / evening greetings
<ht311> Rex_Goodhear: return false work for sure.. (in IE at least)
<Rex_Goodhear> ht311, do you know of a Firefox workaround? It doesn't work in Firefox..... :)
<Rex_Goodhear> :(
<fatbrain> Rex_Goodhear: onclick="return thisfunction()"
<Rex_Goodhear> fatbrain, but I want other statements in the function to work also
<fatbrain> what?
<Rex_Goodhear> Technically, onclick='return false' should not advance to the URL, correct?
<ht311> technically, it have to do which how to cancel an event
<ht311> return false is one of the way to cancel the event.
<Rex_Goodhear> Well, this is interesting....
<ht311> or set the .cancel = true; <- (I believe this is how it work in FF)
<ht311> there is .returnValue = false; kind of same as return false;
<Rex_Goodhear> <a href=test.php onClick='return false'> cancels the URL
<Rex_Goodhear> <a href=test.php onClick='return false'> cancels the URL but <a href=test.php onClick='return()'> advances to the URL when even though the only statement in the function is "return false"
<ht311> good then. just in FF like fatbrain said, onclick="return myFunc();" make sure your function return something
<Rex_Goodhear> ht311, I just tried that
<Rex_Goodhear> it didn't work
<Rex_Goodhear> <a href=test.php onClick='return false'> cancels the URL but <a href=test.php onClick='return()'> advances to the URL when even though the only statement in the function is "return false"
<ht311> tried ="return myfunction()" where myfunction() return false at the end?
<Rex_Goodhear> And <a href=test.php onClick='return return()'> also advances to the URL
<Rex_Goodhear> oh wait
<Rex_Goodhear> I had too many {'s
<ht311> don't use return as function name too.
<Rex_Goodhear> I think fatbrain's solution might have worked
<Rex_Goodhear> I made a typo
<Rex_Goodhear> fatbrain, ht311.... Thanks! 'return thisfunction()' was the answer.
<fatbrain> heh.
<ht311> I learned somethine too *what a FF noob*
<fatbrain> ;)
<Servo> why would IE error on this: FiberAmt = parseInt(document.forms[0].FiberAmt.value);
<fatbrain> Servo: define *error*
<Servo> ok
<Servo> Error: Object doesn't support this property of moethod
<fatbrain> the problem is more like an incorrect reference to the form element FiberAmt
<Servo> works great in Firefox
<fatbrain> try, alert(document.forms[0].fiberAmt); and see what you get
<Servo> ok
<Servo> alert's 1
<Servo> which is the value
<Sh1no> I dont know if this is JS problem or not but I would like help on it, I have a form that I submit, but instead of using onsubmit to validate I use onclick button so I can use 'this.form' but the problem is when I do form.submit() i don't get the values when I try to retrieve them in PHP.. does anyone know what might be causing this..
<fatbrain> Sh1no: I have no idea.
<fatbrain> Servo: then try add a parseInt around that.
<fatbrain> alert(parseInt(document.forms[0].fiberAmt.value));
<Servo> i got it
<Servo> i need to add var in front of it
<Sh1no> Can this.form be used with onsubmit to refer to the form without needing to use its name property?
<fatbrain> well, problem is you'r ***igning a <numerical> value to the global <html-input-element> fiberAmt
<fatbrain> sorry, FiberAmt
<fatbrain> you should *not* name your varaibles the same as an element.
<furtive> ok, i've done some hardware changes concerning router and whatnot, the site should be up and stable.
<Thunder^> COOL!
<[Manos]> sweeeeeeeet
<furtive> i'm also setting up some hosting over the next month and will migrate things then.
<Thunder^> excellent :-)
<furtive> terribly sorry for the lacsidasial (sp?) attitude the last month.
<furtive> :-)
<[Manos]> torgo be-gone!
<furtive> it's been a thorn in my side for too long
<[Torgo]> 'member those guys you did some 'tree work' for?
<furtive> yeah
<[Torgo]> they need some more done if you're interested


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#chatzone
#MissKitten
#london
White Label Don't Stop vs Insomnia
#linux
#teens
php + imagepath in variable
extrabling.com
#linux
carnies in toronto



Home  |  disclaimer  |  contact  |  submit quotes