@# 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 17



Comments:

<0> zanzina: Unside the function "this" is the function. You need to p*** it into a variable. function handle(something_to_hold_this) {}
<1> <form onsubmit="handle(this);"> function handle(form) { form.getAttbitute('id'); }
<1> so that doesn't work in IE?
<0> zanzina: I said "I'd worry about the support from MSIE", not that it wasn't supported. MSIE's implementation of getAttribute is buggy.
<0> zanzina: I wouldn't be surprised if it ended up giving you the same as form.id (i.e. form.elements.id)
<1> hmm ok thanks
<2> Twey_: still here?
<3> hey all, I've got a page that uses an <a> tag to run some javascript with onclick but without an href it doesn't change the mouse cursor from a beam to a hand in IE, suggestions?
<1> I have: var comment = { delete:function() {..} } but i get an error "invalid property id: delete".. Is delete a restricted keyword?
<4> I have a string and want that to be the source of a new document in a new window. What's the easiest way?
<5> zanzina yes
<1> where can i get a list of those words
<4> devmo
<5> zanzina http://www.crockford.com/javascript/survey.html
<1> thanks
<6> is it somehow possible to access the file from the file location that has been entered into a file upload form?



<0> JViz: Not in the standard browser security environment
<6> i saw this file chunker ajax app on digg, and it seems like the only way it could work is if somehow the javascript is accessing the local filesystem from within the browser
<7> hi, can someone help me debug http://www.ahri.net/js.html - when i select the "Part Number" dropdown I want it to update the neccessary fields with values from the 'parts' object...
<7> i'm using `arr' as a temporary object holder
<8> tlhiv: Not for long
<2> Twey_: http://home.tlhiv.org/default.shtml
<9> Hm
<10> can i set o={'do': 'login'} ?
<9> If I wanted to post a largeish chunk of xml to the server, there isn't actually a very good way of doing that, is there?
<10> cause I have error 'invalid property id'
<9> (The XMLHttpRequest only recieves XML as far as I know...)
<5> ks yes
<10> thanks
<11> the XMLHttpRequests gets any kind of data
<11> if it's valid xml, it will get parsed into a domDocument
<11> if not, then not...
<9> TheSeer: The XMLHttpRequest *gets* any kind of data.
<9> But that's not what I want to do. :)
<11> well.. i just read the last sentence ;)
<9> Yes.
<9> You're misreading the emphasis though.
<9> Only recieves XML as opposed to posting XML
<11> darn ;)
<11> well.. you can post any kind of data too ;)
<11> as long as it's text of some kind
<9> By the way, are you the TheSeer who frequents efnet's #math?
<11> nope
<9> ok
<11> is that good or bad? ;>
<9> Neither
<9> I was just wondering.
<11> k ;)
<11> i didn't know there is another theseer on efnet
<11> (since i'm in there too)
<9> I think he's a The_Seer
<9> Hm. Anyway, the XMLHttpRequest is a GET rather than a POST. Doesn't this rather limit how much you can stuff into it?
<11> you can send a post
<11> just tell it to use POST method
<9> Really?
<11> and supply data in the send(BODY);
<9> Ok. I stand corrected then. :)
<9> Thanks
<12> Hello. How do I rertreive some text from DOM? :\ (the ones indicated with #text in DOMi)
<0> Tracid: data propert of the text node IIRC
<9> (I don't use it that often, so XHR still catches me by surprise a lot)
<12> Well, yes, but how do I access access that?
<0> Tracid: The usual array of walking through childrend and siblings. Browse the DOM methods available. http://w3.org/DOM/DOMTR
<13> aha new victims!
<13> hey folks, if I've created a drag and drop function, how do I find out the source of the destination div after the drop?
<13> I've got it working in IE, but it doesn't work in Firefox so I know I've botched it
<13> the actual example to look at is at: http://www.unitorganizer.com/websitebuilder/testing/coloradder.html
<9> dwees: Download the "View source chart" extension for firefox.
<9> It will, among other things, show you the generated html.
<13> yeah I can see the generated HTML using the web developer extension
<13> thing is, I won't know ahead of time which div the color will jump into, or what color the div is I've picked up so the source won't help me too much
<14> hello
<14> i'm reading that jscript numbers are stored all as 64bit floating point numbers, is this accurate?
<4> How to make a string the source of a new window?
<14> document.write?
<14> or what do you mean?
<4> that gives a security exception



<14> hmm
<14> i have no idea, i'm quite new to jscript :)
<15> cya
<13> you want a pop up window with just a string in it?
<4> I have the complete source of a document in a string: "<?xml ....</svg" that i want to be loaded in a new window
<12> Dorward, the only way to access a #text [object Text] that has no <p> </p> tags is by finding previous or next Sibling, and from that, by using nextSibling or previousSibling?
<0> Tracid: Possibly
<12> So there is no way that I could read in all of those text in some array?
<0> Tracid: Loop over all the elements. Check the object type
<16> Tracid: #text are DOM nodes with a type (3 or 1, don't remeber), anyway. They are childres of their parent node
<16> .childNodes
<12> So they could be accessed for example by document.body.childNodes[?] ?
<16> yes
<16> "childres"?!
<16> bah
<17> is there some way of making opera not ****?
<17> it's seems to be about as useful as IE when debugging javascript
<4> it's definitely better
<4> i prefer firebug though
<17> firebug is craptastic unless you're doing XHR
<18> In Firefox, is there a way to get childNodes of an element without returning any of the text nodes?
<4> maybe with XPath
<17> anyone with experience in using MS Visual Web Developer Express for JS debugging?
<17> opera is crap, it says line 344, has a little click item, then goes to line 1, not 344
<19> hmm, when I get an stack overflow, does that mean too may recursions or is it more memory related?
<19> *error
<10> how do I see entire output of xmlhttp other than innerHTML, alert is to small or lacks scrollbars
<10> textarea maybe ?
<20> howdy
<20> can someone help me understand why "ttKeyButton = document.createElement('<a>' + keySecondaryLabel);" causes an exception in firefox's js handler
<4> it's like createElement("a");
<2> when i get the width of a div with JS, it gives me "584px" (as it should) ... but i want only 584 ... how can i remove the "px"
<4> createElementNS is better even
<4> tlhiv, check devmo for substring and indexOf
<20> stelt, i'm trying to keep my code as close to standard as possible
<19> thliv .parseInt()
<4> Soopaman, that's good then
<20> which is why createElementNS isn't an option
<20> isn't createElementNS a mozilla only call?
<19> tlhiv, parseInt(input); even
<2> ok
<2> let me try that
<4> Soopaman, it's W3C
<4> http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-DocCrElNS
<2> how can i get the height of an image?
<21> im having problems running this document.getElementById('node1').getElementsByTagName('a').nextSibling
<21> there is only one a tage in node1
<4> tlhiv, maybe you should just go to devmo and read through the javascript reference
<4> sia-soup, what do you expect?, what do you get?
<21> it gives an interface error
<4> i think getElementsByTagName is only defined on document
<21> stelt: ok, that makes sense
<17> is there a quick way to add 2 arrays?
<4> loop through them
<21> i think thats my only option
<17> that I can do :P
<17> anyone know how to use visual studio to debug JS/
<4> frb, it's JS in SVG instead of HTML, but it is JS debugging with VS http://www.kevlindev.com/blog/?p=56
<22> frb, why not use firefox or opera (or even ie) for debugging
<17> maybe I should just ask all my coworkers
<17> they develop .net all day
<21> is there anyway to remove an element of an array? like arr[0].remove
<17> slice
<22> delete ?
<21> yes
<20> can't you just go arr[0] = null to remove it?
<21> but its still apart of the length correct?
<21> i want it to be gone. Like pop or shift
<21> but in the middle of the array, in a loop... arr[i].delete
<23> sia-soup: do you want the other elements renumbered?
<21> yes
<23> splice
<21> i ended up doing arr.splice(i,1);


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

hostname cmd
#suse
#linux
#linux
#gentoo
ubuntu terminal window arrow key problem
apt4suse howto
python os.command capture output
Diana Significate
bnx2 driver in ubuntu



Home  |  disclaimer  |  contact  |  submit quotes