| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> buubot: type two answers <1> Woosta: Type two answers are annoying, but are often more correct than type one. http://rick.measham.id.au/paste/type_2_answer.htm <2> Type III answers don't fit in the slot. <3> okay i ask somewhere else <3> thx anyway <0> . o O ( .. wish they were all that easy .. ) <4> Tobsn: try #regex or http://www.regularexpressions.info <3> thx <2> #regex will tell you not to parse HTML with regex. <3> i have a regex question, not a html parse question <0> Awww .. let him find that out for himself .. <2> He did. <0> hehe <2> I'm not psychic, I'm just consistent. <3> you just anoying... <2> No, I'm just right.
<3> no because i want a regex and trust me thats the solution for that problem. <0> He is. <2> I don't trust you, since it's a terrible solution. <0> Of course. Grab a wrench and start hammering <3> if you guys dont wanna answer me than just say nothing <0> We have answered you. We've answered you a whole LOT <0> You're just either not listening or not asking your question right <3> okay and thats not i wanna hear so, i said thanks and its done now. <5> is there a way to get the ids of all of an element's childNodes <2> mickly: Just looping through... <2> If it's an element, then check if it has an id <0> childNodes or descendents? <3> there is a way but why should i walk thru all tds to find 'mnnlich' || 'weiblich'... <0> if (x.nodeType == 1 and x.id != '') rv.push(x.id) <3> if i can just regex it with something like <td>((mnnlich)|(weiblich))</td> <0> Tobsn: coz that's how you do it <3> makes no sense to me <2> Tobsn: (a) It doesn't sound like you'd be doing any "walking", just looping. (b) Don't parse HTML with regex. <3> damn... so you dont parse, but i want to... <3> wheres the problem <3> then let me parse html with regex <3> damn man <2> If that were coherent, then you might've already answered yourself. <3> ... <6> what should i look into for creating "fancy sliding object" for example i want to create a search engine - and there will be a footer, and i'd like it to smoothly move down the screen as more results pop up <3> look <3> var udv = /name="user_vorname" size="35" value="(.*?)"/; <3> thats what i do <3> and it works fine <3> very fine <2> itrebal: Some scriptaculous effects do that <2> might make it easy <3> so why should i make a bunch of useless loops thru the DOM... <2> Tobsn: That's going to break horribly when your markup changes, even if all the attributes and their values are the same. <0> TDs = document.getElementsByTagName('td'); var rv=[]; for(var i=0; i < TDs.length; i++) if (TDs[i].firstChild.nodeValue.match(/a|b/)) rv.push(TD[i]); <6> heh, looks like too much work <2> And maybe yahoo ui has some effects <2> haven't looked closely at that <0> scripaculous or whatever it's called does all that <0> Bah, b0at already said that <6> yea but for what i'm donig its not worth it :P <0> Then don't do it :) <6> mmaybe i wont :) <6> thanks anyway gusy <7> "frankg" at 66.180.175.30 pasted "sad - my 2 line js code does not work - help" (19 lines) at http://erxz.com/pb/1992 <8> define "does not work" <5> the state were something dose not do what is wanted :P <5> like my script right now <5> :P <8> *sigh* <2> `doesn't work <9> doesn't work: What do you mean it doesn't work? What happens when you try to run it? What's the output? What's the error message? Saying "it doesn't work" is pointless. <10> I put the explanation on the pastebin - so I don't flood the channel <10> see comments on the bottom <2> Is there an input with the name "submit"? If so, remove it. <10> that's it <10> thx <10> Worked like a champ! <7> "frankg" at 66.180.175.30 pasted "// Trying to submit form to different script but changing form.action has no affect" (18 lines) at http://erxz.com/pb/1993 <11> Is it possible to "chain" javascript functions? For example, I want to do a('bla').b('blabla'); function a() {..) function b() {..} b should take as input the returned result of a.
<12> zanzina: That would be "call the b() method on the returned result of a()". You want: b(a('bla')); <11> yeah i don't like that syntax <12> zanzina: Um. "Too bad"? <11> i've seen it done before <10> FYI: blank value for href in the anchor was causing my problem <10> I hate quirks!!!! <12> frankg: It sounds like you were calling the onclick method, then the link be being followed, which would cancel anything that the JavaScript did to change the URL. <10> hmm - what's the proper whay to do this? -- yes I am using onClick="func()" <12> frankg: <a href="URL-to-visit-if-the-js-fails" onclick="return func()"> and have the function return false if you don't want the link followed. <10> now <a href="#" onClick="func()" >xxx</a> <10> ok <10> thx <12> frankg: href="#" is "the top of the page", which probably doesn't make sense as an alternative to your JavaScript. <10> wasn't there a href="javascript:func()" <12> frankg: http://www.jibbering.com/faq/#FAQ4_24 <10> thx <10> good link thx <3> any fast solution to get the PHPSESSID out of the document.cookie? <13> Is there a way to determine what element has the focus? <14> i have a problem with Date object <13> I have a problem with an input element, where a dropdown suggests possible values. When the focus goes to the dropdown I cant make it automatically return the focus to the input element after. <14> when I add to the date of 23/10/2006 7 days it returns a date object with the characteristics 28/10/2006 23 h <14> try to add 60*60*1000*24 to new Date(2006,9,29) and you'll see that the day that is returned is still 29/9/2006 23h UTC +1:00 <0> eu_neo: how's that incorrect? <14> anybody has any ide why? <0> It's a DST changeover <0> eh .. hang on <14> what does that mean ? <0> no it'snot :) <0> jseval: new Date(2006,9,29) <1> Woosta: Return: { } <0> jseval: new Date(2006,9,29).getTime() <1> Woosta: Return: 1162080000000 <14> if i do on 28/9/2006 the same thing it returns me 29/9/006 <14> var _date=new Date(2006,9,29); <14> var _time=_date.getTime(); <14> _time+=60*60*1000*24; <14> _date.setTime(_time); <14> return _date; <14> see yourselves <0> jseval: (new Date(2006,9,30)) - (new Date(2006,9,29)) <1> Woosta: Return: 86400000 <0> I think I'm missing something <0> Use buubot's jseval to show me what you mean <14> do u want me to paste somewhere the page <14> the whole code <15> hi, when you have a form and you do <input type="submit" name="submit" onclick="function(this);" /> <15> you are p***ing the form? <14> ? <0> No <0> jseval: var d = new Date(); write(d.toLocaleString()); d.setTime( d.getTime() + (7*24*60*60*1000) ); d.toLocaleString(); <1> Woosta: Mon 10 Jul 2006 10:44:55 AM UTC Return: Mon 17 Jul 2006 10:44:55 AM UTC <7> "eu_neo" at 66.180.175.30 pasted "date object bug ?" (21 lines) at http://erxz.com/pb/1994 <0> ^^ isn't that correct? <14> Woosta add to 23 oct 2006 7*24*60*60*1000 <0> jseval: var d = new Date(2006,9,23); write(d.toLocaleString()); d.setTime( d.getTime() + (7*24*60*60*1000) ); d.toLocaleString(); <1> Woosta: Mon 23 Oct 2006 12:00:00 AM UTC Return: Mon 30 Oct 2006 12:00:00 AM UTC <0> You too can use the bot .. <0> efkoj: Don't name it submit .. it confuses IE <14> Woosta: for that code this what i print "dimanche 29 octobre 2006 23:00:00" (dimanche=sunday) <14> or otherwise : Mon Oct 23 00:00:00 UTC+0200 2006 <14> Sun Oct 29 23:00:00 UTC+0100 2006 <0> Two different time zones <14> yes <14> eu_neo doesn't know what is DST changeover <14> :) <14> Woosta how can I avoid that ? <0> Wind your clock back and forward an hour near the equinoxes <0> You're not supposed to avoid it <0> It's correct <14> Woosta: I'm making a calendar ... and i don't need to have two days with 28 October content :) <0> The write it using UTC dates
Return to
#javascript or Go to some related
logs:
what is tuxplorer compviz solaris ANSI_ESCAPE_SEQUENCES
fglrx nmi
fedora Losing some ticks... checking if CPU frequency changed. mkfs.vfat large disk #physics pylibpcap ImportError: No module named pcap xhat ubuntu inbox applet FC5
|
|