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