@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<User579> Hey guys
<furtive> heyoooo1
<User579> whats the command to check what an indivudal command in a string is?
<furtive> you mean eval() .... if you're using eval() there's a 99.999999% change you're doing something wrong.
<User579> no
<User579> ill explain what im trying to do
<User579> i want to go through a string using a for loop and check each character to see if it matches certain requirements
<User579> like thisChar() or something. thats not it
<User579> but i cant remember what it is
<furtive> charAt()
<User579> aaa there we go
<User579> thanks man
<RoGone> !brb
<NeoFutur3> ht311 got a min
<ht311> yup
<NeoFuture> can you do me a favout
<NeoFuture> favour
<NeoFuture> http://www.aflax.org/examples/sockets/sockets.html
<NeoFuture> see if you can locally get that working
<NeoFuture> (ignore the PL you should be able to connect to there server)
<NeoFuture> im ****ed if i can get it to work
<NeoFuture> i got the file upload one working
<ht311> getting
<NeoFuture> k
<NeoFuture> did you get it working ?
<ht311> which example you want me to run? i just dump it in to my local iis
<NeoFuture> sockets
<NeoFuture> (its a chat script)
<NeoFuture> but its a none polling pesistant connection you see
<ht311> it is crosssite, that why it didn;t work
<ht311> hmm, it should have prompt for that ....
<ht311> i am sure is the cross site issue
<furtive> hehe, this is fun
<ht311> seem good, had that idea for a while when i work on flash. get the webcam stuff in flash open to html . seem they already did that too
<ht311> heh, just click on the link without looking at the time
<furtive> fool
<ht311> just stop the game and watch greys
<NeoFuture> try now
<NeoFuture> :D
<NeoFuture> hahaha
<NeoFuture> ht311 try it now
<NeoFuture> ht311 sorry try again
<NeoFuture> hehehehe
<ht311> ad. time agina
<ht311> that is the worst part watching live tv
<ht311> geeze, 8 min and ad. time again, never timed it
<mills> good eve!
<furtive> howdy
<mills> my question: I would like to update a global variable at the same time as I´m sending it to a function?! This is what I got, I want to update the countChecks:
<mills> onClick=\"return checkImg(" + countCells + "," + countChecks + ")\"
<NeoFuture> onClick=\"countCells++;return checkImg(" + countCells + "," + countChecks + ")\"
<NeoFuture> hmm should be in the return really hehe
<mills> ? :-)
<ht311> what is those super stupid " + ... + " doing three?
<ht311> everything can be done inside checkImg
<NeoFuture> http://www.neofuture.co.uk/sockets2/
<NeoFuture> ignore that
<ht311> I smell document.write
<NeoFuture> lol
<mills> yeah, document.write
<NeoFuture> or eval
<ht311> stinky document.write
<mills> is it possible to update i global variable inside a function?
<mills> ... a global variable
<ht311> it is possible to update it everywhere
<furtive> even from the fortress of solitude
<mills> that´s what I´m trying to do really, how do I write to do that?
<ht311> ask furtive, I am not in mood to see document.write :)
<NeoFuture> ht311 have a look at chat
<NeoFuture> hahahaha
<NeoFuture> http://www.neofuture.co.uk/sockets2/
<ht311> mills: NeoFuture show your the code already
<mills> function checkImg(cellNumber, countNumber) { document.write(countNumber); }
<mills> that still writes "0",,
<furtive> what do you want to do?
<mills> hello!
<furtive> increment in the function? document.write(countNumber++);
<mills> I´m calling the function like this:
<mills> onClick=\"countChecks++;return checkImg(" + countCells + "," + countChecks + ")\"
<furtive> ugh, i hate escaped code
<mills> and would like to update the global variable "countChecks" for everytime I click,
<furtive> show the full line
<ht311> pb.html-channel.com
<NeoFuture> no more maquee for you ht mawayayayaya
<ht311> not here
<furtive> boooo
<ht311> doh, it is a selling feature
<mills> document.write("<td><a href=\"javascript:\" onClick=\"countChecks++;return checkImg(" + countCells + "," + countChecks + ")\"><img src=\"0.png\"></td>");
<ht311> your chat just become ****s now
<furtive> mills: 1. get rid of the javascript: and replace it with #
<mills> ok, I´ll do :)
<furtive> 2. oh **** it. who the hell modifies variables in inline code
<furtive> seriously
<furtive> call a damn function and have the work done in there
<ht311> do it before document write
<furtive> does he want the increment while doing .write or only onclick?
<mills> onclick
<ht311> HE IS NOT EVEN KNOW WHAT HE IS ASKING
<mills> I´ve said all along that I want it to increase everytime I click,
<ht311> he complaint about seeing 0 inside the function
<furtive> then what ht311 said
<furtive> document.write("<td><a href=\"javascript:\" onClick=\"countChecks++;return checkImg(" + countCells + "," + countChecks++ + ")\"><img src=\"0.png\"></td>");
<ht311> whatever, you need to learn more about javascript before doing this
<furtive> YEAH
<furtive> err yeah
<furtive> stupid thinkpad keyboard
<ht311> either case is fine
<ht311> got the ms elite kb and mouse combo
<furtive> document.write() is teh gay
<mills> yeap, I guess, but it´s my first day on it, and I´ve loads of **** to do, so sorry.. but thanks
<ht311> with free quicktax
<furtive> ht311: too much clutter on livingroom floor
<ht311> you still laying on the floor to type?
<furtive> yep
<ht311> mills: where you learn the document.write? (I hope it is not from school ....)
<mills> beginning javascript : second edition
<ht311> burn that book for me pls
<ht311> http://www.javascript-channel.com/Wiki.jsp?page=Links
<ht311> you really need to know a bit of dom as well, just don't use document.write and eval
<ht311> I love the comment on that link --> Mozilla CSS extensions (NOTE: it's only wrong when Microsoft invents proprietary crap)
<ht311> who add that?
<furtive> Torgo
<ht311> hehe, just feel right about that
<furtive> hehe, it's true
<ht311> nite
<JCalf> hi
<JCalf> can I store js objects in cookies ?
<ht311> read about json
<ht311> you can deserialize a js object to json string and store it there
<JCalf> ok
<JCalf> thanks
<JCalf> i am aware about json, just wanna make sure I can store lookup info client side
<mills> last question before I´m finished :)
<mills> what´s wrong with this function (calling from another function): return setTimeout("swapImg(imgPick1, imgPick2)",3000);
<mills> sorry.. my mistake
<mills> or no,, does that work?
<two|face> hey if I do document.getElementById('id').innerHTML = 'blahlahb'; will that work? :)
<L`OcuS> salutations matinales / morning greetings
<GolaS> anyone knows a script that similar to this and can work instad of "<li>" tag in <td> tags (table) ? http://www.cyberdummy.co.uk/test/dd.php
<two|face> hey how can I get the number of items in an array
<L`OcuS> yourArray.length
<two|face> thanks
<ht311> you are early too.
<furtive> ;-)
<furtive> always off to a good start on monday, then it varies throughout the week
<GolaS> anyone knows a script for Drag & Drop Sortable Lists that saves the positions on mysql db and uses php? ...


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

petuxlar
jaq saq
berettaextreme2
#chatzone
chatear en chatzone
irssi unsplit
Deitel+solution manual+C how to program
noop lion
iironnick
#windows



Home  |  disclaimer  |  contact  |  submit quotes