| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> if I have an input string in the form of "<name>1" <0> I want to just get the number at the end of the string <0> since I'm a regex noob, is there a way to pull that? <1> CerebroJD: /[^\d]*(\d+)/ <0> and how do I use that? <0> ooh <2> Twey_: I worked around it by creating a private data buffer for each action <2> thanks anyway <1> mst: Heh, OK <1> CerebroJD: var num = yourstring.replace(/[^\d]*(\d+)/, '$1'); <0> what does the $1 mean? <3> firs () <3> *first <0> is $0 the first bit, with $1 being the second? <0> jseval "test1".replace(/[^\d]*(\d+)/, '$1');
<0> jseval: "test1".replace(/[^\d]*(\d+)/, '$1'); <4> CerebroJD: Return: 1 <0> win <0> thx :D <5> I am using request.respon***ML to get my response back, yet .getElementsByTagName gives me an error <6> http://pastebin.ca/106726 <5> it always seems like ti comes back as plain text <4> The paste 106726 has been copied to http://erxz.com/pb/2409 <6> why do the bullets disappear? <6> at least they do in FF and safari <6> yes, opera too <6> any ideas? <7> possibly because you're setting their style to "block" when they should really be "list-item" (see http://www.w3.org/TR/CSS21/visuren.html#propdef-display) <6> sounds promising, thanks :) <7> this is why it's better to toggle visibility by setting display to "none" to hide and setting it to "" to show again, which reverts to whatever the default display attribute is <6> oh, that's a good idea <6> thanks again :) <8> hey. i got a problem here with events... I'm p***ing an event around (it gets p***ed to the event handler, then I set a global variable to it (globalvar = e)), and when I then try to access that event in another function (globalvar.PageX or anything), I get "member not found" in IE, and an "uncaught exception" in firefox... <8> can you not p*** around events in global vars? <8> hmm, the exception only happens if I try to access event.type ... <8> but all other members are set to 0... <9> you set a reference to the event object <9> but the original gets cleared and so is the reference <9> at least that's what i bet happens.. <8> TheSeer: oh, yes, that might be the case. so, how can I set it "by value" rather than by reference? <9> try creating your own object setting the values you need/want <8> heh, ok... <8> a bit impractical... there should be a way to p*** a copy of the object, not a reference... <8> ok, like this it works... <8> finally, my own custom tooltip thing :-) <10> Hey Guys,is it possible to update a textera or a RTE put keep the cursor position? <11> good evening <10> good morning <10> Is it possible to set a cursor position in a RTE or textarea? <0> RTE? <1> Rich Text Editor <1> Ries: Yes. Go and find the logs for this channel, I talked to someone about it yesterday (or maybe the day before). <10> Twey_: I'll check them out.... I tried http://jsfreenode.homelinux.org/ but no log <10> Twey_: Happen to have a pointer to the channels logs? <1> Ries: www.irclogs.net/freenode/javascript/ <10> Twey_: cool thanks..... <10> Twey_: I hate to but you... But there are no logs since 2006 07 17 :( <12> OLEH <0> >_> <12> Brazil? <0> I think he joined every channel he could <0> he was in every one I'm in <1> Hahaha <4> 1, apparently <4> 1, apparently <1> Er, er. <4> 1, apparently <13> ?? <4> 1, apparently <14> buubot's broken <4> GarethAdams: 1, apparently <15> broken bot? <4> 1, apparently <13> this could get annoying quick :)
<4> 1, apparently <14> how many broken bots are in here? <4> 1, apparently <15> 1 too many <4> 1, apparently <16> hehe <4> 1, apparently <17> hey all, can anyone tell me what I did wrong here ? http://pastebin.d3xt3r01.tk/index.php?show=6 <4> 1, apparently <17> anyone ? <4> 1, apparently <17> buubot, shut up :)) <4> BlackBishop: 1, apparently <17> lewl <4> 1, apparently <18> er <18> wtf? <17> dunno .. ask your bot ! <17> :) <4> 1, apparently <18> buubot: hush on #javascript <18> er <17> lewl <4> 1, apparently <18> buubot: hush #javascript <4> buu: I will be silent on #javascript <18> Sorry. <17> yupiii <17> no problem .. now .. anyone can tell me what I did wrong in http://pastebin.d3xt3r01.tk/index.php?show=6 <18> That was really ****ing weird <14> y'think? <16> couldn't you just restart the program? <17> if( p***1Field != p***2Field ) should be ok .. right ? <16> you haven't told us what the problem is yet <17> it just doesn't work :) <17> no alert pop's up ... <17> and the form isn't submited <16> nobody who says "it just doesn't work" deserves to be a programmer <19> BlackBishop: "can't find the server at pastebin.d3xt3r01.tk." <17> :D <17> Dorward, works for me .. <17> I guess the dns servers aren't updated yet .. <16> works ok here <16> did you try it both with matching and unmatching p***words? <17> yeah .. <16> by the way, i meant the link works, not the script <17> it doesn't give any alert <17> no nothing <17> chessguy, I know :P <17> http://erxz.com/pb/2411 <17> Dorward, you can see it there <16> what value is the function returning on each case? <19> BlackBishop: How are you trying to call it? (And incidently, I'd strongly suggest forgetting calling submit() using JavaScript - use an onsubmit event handler the returns true or false along with a regular submit button instead) <16> you should probably have a return true; at the end <16> buubot: welcome back <17> return false; I don't want it to submit the form if the values are different ! <17> only if they match ! <16> but if the form got submitted, you should retern true <17> this is the html I use http://pastebin.d3xt3r01.tk/index.php?show=7 <0> Dorward, if onsubmit returns false, the form wont submit, right? <16> return <19> CerebroJD: Indeed <0> o_0 <0> sweet <17> chessguy, I'm calling it from a "<form>" ... <17> and I have to <input> things there .. <16> i don't care <17> two* <16> if you have a return false; you should have a return true; <17> I DON'T want it to return true if they are different ! <17> + it doesn't even show the alert window !
Return to
#javascript or Go to some related
logs:
five or more+xfce cflags for akita #perl #mysql #egghelp how to rebuild mysql what is the difference between REMOTE_ADDR REMOTE_HOST iptables http acccept #web gentoo cannot open shared libXaw nvidia
|
|