@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> Anyone know of any free or GPL software that will make a directory structure easy to navigate and nice?
<1> hi
<2> Hello.
<1> newEl.setAttribute('onfocus', 'onTagFocus(this);'); <-- this isnt working :S, any help?
<1> or workaround?
<2> You don't use setAttribute for events.
<2> In your case, newEl.onfocus = onTagFocus; suffices.
<2> (In which case the "this" keyword can be used directly inside the function)
<1> oh ok
<2> There's also addEventListener (non-IE) and attachEvent (IE)
<3> sweet
<4> Hi could someone help me with a regexp 101... I would like to replace the "3" in there with variable "foo" how can I force it to be evaluated as a var and not as text ? if (objField.value.match(/^\.\d{3,}/)){ // .999
<5> i can't understand what's your problem



<6> neither can I.
<6> Please elaborate.
<4> let say foo is a variable and it's value is 5, I'm looking for a way to do if (objField.value.match(/^\.\d{foo,}/)){ // .999 that will be evaluated as if (objField.value.match(/^\.\d{5,}/)){ // .999
<5> oh
<5> objField.value.match(new RegExp('^\.\d{' + foo + ',}'))
<6> You have to use the new RegExp("string-pattern", "regex-option") for that
<5> like I did :)
<4> oh thanks :)
<4> I'll check into it thanks a lot
<4> ah ok... I was trying if (enteredDate.match(new RegExp ('/^\d{4}-\d{2}-\d{2}$/'))){
<4> it didn't work because of the slashes
<5> my cat walked on the computer plug -_-
<5> (h'es dead now :)
<4> Could someone tell me why the first line will find 2005-12-31 while the second won't ?
<4> if (enteredDate.match(/^\d{4}-\d{2}-\d{2}$/)){ //2005-12-31
<4> if (enteredDate.match(new RegExp ('^\d{4}-\d{2}-\d{2}$'))){ //2005-12-31
<5> why the first line will find 2005-12-31 while the second won't ?
<5> (I'm too funny)
<5> both should...
<4> yep lol, I though they were equal... I'm trying to convert them to the new RegExp like you told me
<4> the second one returns false;
<4> lol I think I need to escape the backslashes..
<3> RUN!!!
<4> lol that was it...
<4> rofl
<5> Herrick : you should use // syntax in this case
<5> your code would be less complicated
<5> it's time to go to sleep
<7> hey ht311, you do any "friends" stuff on the ds yet?
<8> how do i recieve variables into a javascript file that were sent as querystring
<8> <script src="test.js?loadtype=1">...
<9> any ide on how can I get the carret possition from a textarea element?
<9> *idea
<5> yoo
<10> I'm working on an html editor (contentEditable), how can I apply a cl***/style on the current selection (TextRange) using a SPAN wrapper?
<11> how can i appendChild a table cell before the other cells that already there?
<2> Just move around on the cols.
<11> what do u mean?
<2> Rows and cells are stored in tableRef.rows[y].cols[x]
<11> i append him to a table row
<11> how inside a table row can i decide to append to the first cell not the last
<2> Well then you have the rowRef.cols don't you?
<11> like rowRef.cols[0].appendChild?
<12> you may use insertBefore
<2> No. Forget appendChild.
<11> insertBefore? i didn't know that
<12> http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-952280727
<11> thanks, got it
<2> Hm. Seems to be better supported than I thought. :-)
<13> can somebody help me in this small program since its notworking
<13> <HTML>
<13> <HEAD>
<13>
<13>
<13> <TITLE>
<13> Count letters



<13> </TITLE>
<13> </HEAD>
<13> <BODY>
<14> use http://pastbin.com (or similar) the ops will kick you
<13> ok
<14> I know just enough to be dangerous. Maybe can help but dont guarantee anything
<13> its ok. i trust your judgment
<13> pls help me
<14> ask you question. if I can answer I will. And you can always hope someone better than me sees it
<13> well, i'm trying to write a small program the one I posted here, but its not working & I cant understand why
<14> I only see a few lines of html. flood protection I guess. Did you paste your code in pastebin?
<13> no
<13> can u tell me how to do so & i will paste it there
<14> got pastebin.com paste the relevant code (put @@ at the sate of any line you want highlight). Enter a name and press the send button. Copy the url it gives you and paste it here
<14> sate -> start
<13> ok
<13> its slow to upload the data
<15> hello
<15> is there any way to p*** a reference to the function as a parameter so that at the end of the function the referenced will be executed?
<15> nevermind'
<5> function F(someArguments){/* ... */} function foo(bar, func) { /* instructions */; func(); } foo('bar', F);
<15> oh, that is cool!
<15> i thought making it with eval, but this is really cool!
<15> thanks
<16> eval? ...... there is only one case you need that nowaday
<15> which case?
<16> json string to object
<15> i thought p***ing a string containing commands that sould be executed in one of the parts of the function
<16> you can always create a new function to contain the commands and p*** it through, so need to p*** string and eval it
<15> L`OcuS: what if i want to p*** arguments to F when calling from foo('bar', F)?
<6> what are we talkinga bout?
<6> dZ0GE: func(1, 2, 3); // as you normally do
<15> forget it
<17> 'lo people
<15> i receive xml data (ajax type request). which functions should i use to enumerate top level tags and retrieve child ones?
<18> do you have control over the xml generation?
<15> i generate it with php
<18> then I would suggest you use JSON instead
<18> make things *much* easier on yourself
<15> json.org... interesting! is it something new? or am i just a complete newbie to js?
<18> the later
<16> If i need to deal xml with i just used getElementsByTagName, 99% of my data is in json
<19> i hate json.
<18> yeah, why's that?
<20> huh...
<20> :P
<16> :D
<20> that's the wrong ending
<16> you need to work today?
<20> ht311 that's a question for me?
<16> yup
<15> I use XMLHttpRequest() / ActiveXObject("Microsoft.XMLHTTP") to communicate with my server. how should i retrieve tha data in case of JSON?
<20> well yes i do, you don't?
<16> we work last friday and take today off
<19> retrieval isnt the problem dZ0GE
<19> sending the data is a mess :P
<16> dZ0GE: responseText
<18> personally I just var obj = domapi.urlToJson("theurl"); ;)
<21> we should count the XMLHttpRequest() being typed here :)
<19> lol [Torgo]
<19> i didnt know domapi had that too...impressive
<20> ht311 oh... same for Canada's day?
<18> domapi was an early adopter of all this
<16> [Torgo]: you should make an async version of that :P
<19> back in those days AJAX was not called AJAX?
<15> OhhBehave: why do you hate json?
<18> ht311, use the ajax uint ;)
<22> hello
<22> how can i remove the first 9 characters of a string ?
<16> StaZ[work]: yup
<22> please advice
<16> read about substr


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#linuxhelp
#AllNiteCafe
thg520 upgrade
#linux
#AllNiteCafe
#MissKitten
xemxx
#linux
#gentoo
libGL warning: 3D driver claims to not support visual 0x4b



Home  |  disclaimer  |  contact  |  submit quotes