@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16



Comments:

<0> yes
<1> What's the property that tells you which function called the current one
<2> Oh, yo Jan`. Sorry, wasn't checking the channel :-P
<2> And b0at.
<3> Hello all ... any ideas for debugging 'Stack overflow at line 0' in IE for Windows?
<2> Why is it all the interesting people get on as soon as I stop looking? :-\
<1> I'm not interesting
<2> enn: Woah.
<2> enn: Got an URL?
<1> Twey_, just so I can check, is there an isInfinity() like there's an isNaN?
<2> Jan`: I don't know, let's ask.
<2> jseval: typeof isInfinity
<4> Twey_: Return: undefined
<0> I'm not sure there's an infinitiy object...
<2> jseval: typeof isNaN
<4> Twey_: Return: function



<2> Jan`: No.
<1> Bummer
<2> :-)
<0> jseval: typeof inf
<4> b0at: Return: undefined
<0> jseval: typeof infinity
<4> b0at: Return: undefined
<2> b0at: It's not an object type, it's a number value
<3> Twey_: boris.onshored.com/pir/dyn/login, login w/ eli/eli2, go to 'Find resources' and click around on the tree
<2> jseval 1/0
<0> jseval: typeof NaN
<4> b0at: Return: number
<2> Tsk
<0> NaN is a value, too.
<2> jseval: typeof Infinity
<4> Twey_: Return: number
<5> b0at, I am having some problem with addslashes. some of the data get mangled. anything I need to do on the javascript to escape it?
<0> If it's a value, it's an object (sort of)
<2> b0at: Not really. :-)
<1> Oh, I think I just fixed it anyway
<0> true and false are the archetypal exceptions
<0> The rest basically are
<2> enn: I don't have IE to test, I just wanted to see out of curiosity :-)
<0> omry: Ask #(#)php. The JSON is a string of literal script that must be valid when you eval it.
<0> You can't easily fix bad code from within the destination interpreter if you don't know what it was supposed to be
<5> b0at, it evaluates. but some tags are not working properly (img tags), must be something with the quotes.
<0> Alert the resulting html string and see if everything is right inside
<5> b0at, its still escaped on the javascript side.
<5> " = \"
<5> etc
<3> Twey_: that's OK, I just figured out the problem ... but maybe someone here can help me solve it. I have an image.onload handler which I want to only get called once, so at the end it sets itself to a function that just returns false. That seems to cause infinite recursion in IE. Is there a better way to clear a handler so it doesn't get executed again?
<0> enn: Set it to an empty function, not some other random value.
<0> Though it should only load once... on load
<0> Oh, to a function; you did that
<3> b0at: the problem is that it loads a different image
<3> <img src="spacer.gif" onload="this.src=realimage.jpg; this.onload = function () {};"
<0> Ok, that's just weird.
<0> But reverse the order of those statements.
<3> oh, of course
<3> that fixes it, thanks
<3> (it is weird, but it's the only way I could figure out to force Firefox to load the HTML without waiting for the image -- it's in the response to an XMLHttpRequest)
<5> is there a javascript function that reverse (php) addslashes?
<6> is there an easy way to have javascript wait until midnight, then execute a function?
<1> Get a time object, create another one with a specific time, compare them
<1> or rather a "date" object
<2> Jan`: Date object
<2> Jan`: Capital D
<1> Anything obviously wrong here:
<1> window.onmousemove=function(){log("Event H")};
<2> Jan`: Erm... nope, don't think so.
<1> So why's it getting called in Firefox, and not in IE
<1> is there any odd settings that causes IE to squelch certain errors?
<1> It apparently doesn't work in IE, but I get no errors
<7> Jan`, what does log function do?
<7> put an alert there or something
<1> spits a line out into my log window, which is known to be OK
<1> but I tried alert too
<1> I did this:
<1> //window.onmousemove=wwsDragScrollbarsH;
<1> window.onmousemove=function(){alert("")};
<1> ...but the alert never fires



<7> hmm, window. don't knw but might not be valid for that
<1> Ah, that might explain it
<7> try document.body or something
<1> Ah yes.
<1> Firefox supports window
<1> IE doesn't
<8> does anybody know of a javascript library that will take an html table, and dump csv to an element/out to a file/wherever?
<9> sounds like a job for DOM
<8> it does sound like it, but I'm lazy and don't want to write it myself :) just wondered if anybody had come across a pluginable library that did it
<6> Error: now.getTimeZoneOffset is not a function
<6> hrm.
<9> cschneid: sorry, don't know any
<8> ok, I guess I'll write it up. Any suggestions on where I should submit it to after I'm done?
<8> in terms of code libraries
<10> tj9991, because you can't type
<10> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Date
<10> cschneid, google, maybe JSAN
<10> or JPAN or whatever it was
<6> ah, thanks
<11> mabye a silly question, after calling a new Ajax.Request(...), I cannot call other functions? I know I can call other javascript functions via the options onSucess, onFailure, etc, but I was wonder if its possible to do something like this new Ajax.Request(...); alertHelloWorld();
<0> If it's set to async, then other code continues while the request waits.
<10> tongueroo, don't use onsuccess, onfailure, whatever
<10> tongueroo, use an AJAX library. the only callback you should rely on is onreadystatechange
<1> I can't force an event object to exist, can I?
<11> k, im slowly getting it, thanks guys
<12> here's a long shot - i'm building a table in DOM and everything appears to work fine ~except~ explorer seems to ignore the colspan att which is creating all sorts of problems...
<12> anyone have any ideas?
<10> IE is broken?
<12> jeje
<10> Does the W3C specify colspan on said object?
<10> Does IE work with it if not created via DOM?
<12> yes. i think i found the fix, hang on...
<5> how do I replace all occurences of 'a' to 'b' in a string?
<13> is there a way to set the TTL on an AJAX request? I'd like it to be, say 1second..not 5 or whatever it is.
<5> (sorrry for the newbie question, didn't manage to find a page describing it all on google).
<13> omry: string.replace I think
<12> it was setAttribute... i thought using setAttribute was safer than the dot method but i guess not
<5> emilylove, it seem to replace just the first occurence.
<0> jseval: "foo".replace(/o/g, '_')
<4> b0at: Return: f__
<12> x.setAttribute('colspan', y) => no work => x.colSpan = y => work!
<13> omry: sorry all I know about is string.replace...
<13> does anyone have any idea on my ttl question?
<0> omry: Use a regular expression, like so ^
<5> b0at, /g ?! thats javascript supports regexo>
<5> ?
<0> `js regex
<14> js regex: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:RegExp
<5> b0at, will that work on all browsers?
<5> (all that matters)
<0> Pretty much, yes
<5> cool, thanks.
<13> *sniff* anyone?
<5> b0at, I want to replace \" with \
<5> it didn't work well on my escaped "\\\"\ , "\""
<5> jseval: "foo".replace(/\\\"/g, '\"')
<4> omry: Return: foo
<0> /\\"/g, '"'
<5> jseval: "foo".replace(/\\"/g, '\"')
<4> omry: Return: foo
<0> You don't need to escape " in single quotes, fwiw
<15> hi... i'm trying to understand what 'this' refers to... does this mean that if i do new Effect.Name(..) in some onclick event, the this refers to the image object on which the onclick is? and if so, the properties and methods get added to that hash?
<10> `js this
<5> jseval: "foo".replace("/\\"/g",'"' )
<4> omry: Error: Error: SyntaxError: missing ) after argument list at line 0: "foo".replace("/\\"/g",'"' )
<5> why can't buubot accept private messages?
<5> hmm, answer to private messages, that is
<10> b0at, what is buubot for me?
<10> *where
<0> omry: (a) Don't quote the regex object. (b) "foo" doesn't have \\" in it.
<0> pstickne: What?
<10> omry, don't use quotes around the regex


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

boob.swf
damian conway mauke
#linux
#perl
lplayer ubuntu
ubuntu apt-get connection refused 111
#linux
#perl
#debian
#bash



Home  |  disclaimer  |  contact  |  submit quotes