| |
| |
| |
|
Page: 1 2
Comments:
<0> how do i check if t is defined ? <1> typeof(t) == "undefined" <1> or typeof t == "undefined" , it act both a function or operator <0> thanks <0> can i use typeof(t) !== "undefined" so se if it IS defined ? <2> yes <3> is anyone alive? <4> no <4> and we'll kill you for asking <1> hi furtive :P <4> HOWDY <4> howdy even <4> stupid thinkpad <1> what happen to it? <4> oh nothing, i just hit the caps lock key a lot on it
<3> anyone know how to work a keyed-in search like campusbooks.com has on the front page? <4> yeah, you put a text input and a submit button in a form <1> search for javascript combobox <3> i just like how it updates the feild immediately <3> nifty. <1> add ajax to the keyword list <1> for search <5> hmm how to trim the left most two characters off a string? <6> Substrings. <6> http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/reference/string.html#1194618 <5> thanks <5> what am i doing wrong here: <5> for (i=1; i<115; i++) { <5> var surah; <5> if (i.length == 1) { <5> surah = "00" + i; <5> alert("ji"); <5> } <5> } <5> the .length doesnt seem to work <6> Pasting in the channel for one. <5> erm, oops :D wont happen again <6> i is an integer. They don't have length. <5> oh ok, thanks...i'll convert it to string if that doesnt stop the loop <6> It will. <6> What are you trying to accomplish? <5> i need to print to screen strings like 001.mp3 till 115.mp3 <6> if(i<10) { <6> Is the only thing which gets close to it <5> hmm yeah, that'll do it! thanks a lot <5> gtg for lunch, then i'll put it on :) <6> Awkward though. <6> I'd check the length of surah and append as many 0's at the beginning as you need. <7> salutations matinales / morning greetings <5> yes Pilum, thats what i was trying to do <6> No, you were checking the size of the loop counter. :-) <5> actually, what i did was that i appended 00 to surah regardless, and then was trying to keep only the 3 right most characters <6> var surah = ""; surah += i; while(surah.length < 3) { surah = "0" + surah; } <5> hmm good! thats best so far <8> hi there <8> anybody here ?? <9> hello <10> Hi <9> hwo can i erase all the <li></li>'s from an <ul id="foo"></ul> ? <9> childNodes.length = 0; is cool? <10> eIf: try it out <10> I would do a while(e.childNodes.length > 0) e.childNodes.removeChild(e.childNodes.firstChild); <9> fatbrain i get error while childnodes.length = 0 <9> ok lemme try with while <10> sure <9> hm, evil <9> using e.childNodes.removeChild won't work <9> unidentified function <10> sorry not childNodes <10> e.removeChild. <9> if i try to use directly e.removeChild, i get somekind of weird error like "Component returned failure code: 0x80etc <10> call it like this: e.removeChild(e.firstChild, true); <10> (I was putting in to many 'childNodes' :P) <9> http://webdev.neomarket.ro/upload/11138622706.JPG <9> i see, lemme try <10> sure
<9> hehe, it works <9> thanks a lot fatbrain <10> you'r welcome. <1> 'morning <4> howdy <11> if i got a <select> sel[x]. <11> how can i get the option values <1> .value <11> nah i want all of them <11> not the selected <1> loop .options <1> then you can get .text , .value , .selected <1> how much booze you drank? <1> :P <11> oh brain fars <11> farts <11> http://www.neofuture.co.uk/select.php <11> im struggling :( <11> ive just tried var i in sel[x].options <11> dont wana work <11> and i dont know why <1> loop the length <1> that's why i only use "for var i in" for standard js obj <11> done <11> still no workie workie# <1> document.forms["a"].elements[ <1> document.forms["a"].elements["sel[x]"].options <1> noob :D <11> there not in a form <11> also i cant specify the form <1> or document.getElementbyId("sel[x]") <11> that wont work <11> sel[x] aint a string <11> it works for the first two elements <11> then stops <1> wt ... you replace the outerHTML and try to access the old stuff before replace? <1> go drink some more booze :D <11> the object is still in the dom tho aint it <11> yeah tiss <1> you never know <11> ffs why dont this work <11> refresh if you want too <1> don't count of on it will be in the dom tree as soon as you decide to replace it ... <11> it semi ks <11> ok <1> still have error <11> yeah <11> **** <11> dont refresh <11> i got an infintae loop <1> for (var i=0;sel[x].options.length ;i++){ <- go get some sleep :D <11> yeah whats wrong with that <11> (cant sleep on a deadline) <1> i < sel[x].options.length <11> its working now <1> ;) <1> hmmm, NeoFuture, you don;t have to change your nick when you ask silly quesiton :D <12> hi <10> hehe <11> http://www.se7en-x.com/argue/argue.jpg <11> oooh lots of ops on now <4> op party! <4> optocus isn't invited <6> Good call. :-P <13> furtive... are there any chicks, booze? no? well if i'm not invited... <14> #j html <14> ups :p
Return to
#javascript or Go to some related
logs:
googledeskop #chatzone sitook mara iggiba #MissKitten HAMALLU.COM dev-c++ missing initializer for member sexygirl25 webcam #mirc #chatzone
|
|