« first day (565 days earlier)      last day (4399 days later) » 

6:00 PM
you went from having an image changing on hover to a lightbox plugin
 
do you have a live example of this anywhere? if you're not getting the id i assume you mean you're not able to access the element corresponding to that id? or is the class_name variable undefined?
 
i had to flag this as "offensive"
 
@Esailija yea... so me asking for more clarification is not ignorant ;)
 
@rlemon: that question is classic too, might be because of a lack for the english language....trololol
 
do the attributeContains - selectors of jQuery work without quotes?
 
6:01 PM
@rlemon Let's keep guessing. We'll figure it out eventually. :P
 
@rlemon this is the point where you shoot yourself instead of asking for clarification
(out of frustration)
 
@OctavianDamiean yea i'm giving up and going to get a coffee/smoke
@Esailija ^ that
 
just looking at his face is now annoying me
 
I just hate this retarded arrogant behavior, almost abusing someone because he might not be able to express himself well enough
pisses me off
 
@jAndy Mate ...
6 mins ago, by Octavian Damiean
@Milap Throw everything you have into a jsfiddle and link us to it.
He doesn't even have to talk to us. A simple link would be enough.
 
6:03 PM
@Milap go to jsfiddle.net , put your code in the right boxes, click save, give us the link
 
@Milap we really do want to help... however the code provided does not give us enough information to debug your problem.... what you can try doing to going to a service like jsfiddle.net (as octavian just stated again) and pasting in all of your code... it doesn't even have to work (relative links will not work there) but we can then at least see the interactivity of the code.
hehehehe
 
back
 
we all have the same idea
 
wow windows 98 rocks!
lol
 
@Abhishek it's ok we don't need you, you can leave again
 
6:03 PM
o_O @FlorianMargaine ?
 
btw how is the code for initializing a lightbox plugin offensive? I lol'd at it getting 2 flags
 
@Abhishek I hope you just left out that you are actually throwing rocks at Windows 98.
 
I still have a win98SE iso around
it's fun to install it in a vm and type c:\con\con in the command line
 
@OctavianDamiean , this is my mums office given computer and shes too scared to upgrade. sooo yeah this machine with old Pentium 3 Runs on windows 98 still
 
6:05 PM
Throw rocks at it. A lot of rocks.
Just keep throwing until it stops moving.
 
lol
i just need to start any anti-virus and it dies
 
Yep. Stone it to death.
 
^ classic
still in it's wrapper
XD
 
The fast way to learn programming for Windows 95!
 
s/best/fast
i know it's a blurry picture.
 
6:07 PM
yeah, editing :p
 
check that one out
and btw i am buying her an i3
 
Who's going to fix the fiddle?
 
@Milap we don't know what's in f3d.ui
 
which fiddle
 
6:09 PM
...protip: When learning a new language that's completely different than anything you've used before, don't try to make your hello-word that seemingly easy thing you thought of...it's a new language, and your brain will melt.
 
> <img src="../images/icons/Launch.png" id="launch" class="launch_cls" id=launch_cls""/>
 
@FlorianMargaine btw nxt time dont crack a joke like that in fronta any other indian
 
there is your problem.
 
we usually gets offended very easily
 
<img src="../images/icons/Launch.png" id="launch_cls" class="launch_cls" /> <!-- now I can be selected! -->
 
6:10 PM
@Abhishek common, you know sarcasm is the way to go in this room
 
@Milap there were errors in your html. please review your attributes / tags and see if you can find any more.
 
Thought it'd be fun writing that wordfuck thing jAnady mentioned in Prolog...I became this
 
@FlorianMargaine yeah i agree :-)
 
ok @rlemon
 
Getting offended is stupid. Grow some balls, you weakling
 
6:11 PM
@Zirak I am offended you used the word "balls"
 
I missed the joke :?
 
that is better....
 
waits for the chat suspension
 
hey! i stared it. no offence taken here.
 
Of course there is no hosted version of Facebox ...
 
6:13 PM
@OctavianDamiean there is
 
PonyLoverxyz1337Twilight, however, thinks that you should remain whole to Jesus so mentions of the d-word are strictly forbidden
 
92y/o #DDDD00 Hairy dick shouldn't offend anyone really.
 
:o
@FlorianMargaine I'm afraid that won't work.
 
6:13 PM
Using GitHub's raw URLs doesn't work.
It didn't last time I checked at least.
 
lolwut? Why? How?
 
really? never had problem with it
 
Does anybody saw the microsoft commercial
i posted its so damn hillarious!
 
@Zirak when they changed to /raw/ all files are serves as plain/text so js works.... css does not.
 
6:15 PM
@OctavianDamiean jsfiddle.net/Ralt/pFSZu works
 
the browser will warn "Yo, this is served as plain/text but interpreted as text/javascript" for css it does not work.
 
@FlorianMargaine Interesting.
 
@FlorianMargaine yes... like I have been saying.... JS works... CSS no longer works.
does the whole room have me on ignore?
 
@rlemon didn't see your message when I posted :p
 
@rlemon I do because I <3u. :P
 
6:16 PM
@OctavianDamiean that is ok. I'll just spam you gtalk
 
@rlemon let me thank u
 
@Milap ok go for it (semantic punny)
 
u r really nice person @rlemon
 
Just jsfiddle require thingies? If you use link properly, I don't think the browser cares what it's served as
 
@Milap I am at heart... troll on the surface...
@Zirak it does for CSS
 
6:19 PM
@rlemon i love the way you handle
 
... ma buziness!
bbl
never did get that coffee or smoke
 
omfg
> dat code
 
@rlemon may i have ur skype or fb ?
 
PRIVACY INTRUSION BEEP BEEP BEEP!!!
 
6:22 PM
@FlorianMargaine 2011-10-11
 
yeah... 6 months old
 
@rlemon yo give me your phone number dude
 
No matter what the time or date, Dart is still worse than Godzilla vomit
 
Godzilla vomit cures cancer.. so duh.
"go swim in a vat of Godzilla vomit dear"
it got so.. quiet
 
You don't like it when it's quiet eh? :P
 
6:37 PM
makes me wonder if the zombie apocalypse has started
 
Not yet.
 
braaaiiinnsss;
 
I'll let you know.
 
haha I love this room, I love you guys.
 
So about .innerHTML: comments, concerns?
 
6:50 PM
triggers redraw
 
@GNi33 What if you haven't inserted the node yet. Is it kosher then?
 
why not appendChild?
 
@Loktar It might trigger the zombie apocalypse.
 
I use it when it's not inserted because that's the only way
 
idk man I think innerHTML might be more likely to!
 
6:53 PM
like:
`el.innerHTML = 'lol click <a href="hoo hoo">here</a>';`
`parent.appendChild(el);`?
 
appendChild requires a DOM element, if you want to insert a string into the dom, you have no other choice
 
@FlorianMargaine make a fragment then
and then insert that
 
and how do you insert the string into the fragment?
 
er I wouldnt gen a string anyway most likely, im all about the appendChilds
 
unfortunately, document fragments have limited methods
getElBy don't work in it
 
6:55 PM
@Loktar Yea, you might be right.
 
7:06 PM
element.insertAdjacentHTML( "beforeend", "<div></div>" );
works since IE4
 
7:17 PM
@FlorianMargaine Why do you get to a situation where you want to insert a html into the DOM?
 
Use append
elem.append(someString)
 
But...why?
 
@Raynos the only browsers implementing that are ones in your dreams
 
Chrome 19
 
really? :P
 
7:19 PM
and any page with the DOM-shim
 
@Loktar 5195880050 but I do screen calls. random ass text messages may pursue
 
Well good for chrome then :o
 
@Milap I'm never on skype... I don't FB. @thegreatrupert is pretty much my only contact other than SE
 
and append(<String>) is the same as appendChild(document.createTextNode(<String))
 
I do not fear giving out my information... search for 5 minutes on google and i'm sure you can find it.
I can't stop it from being on the internet... so why try.
 
7:20 PM
ah, that's something else, then
@rlemon Try and find me. I dare you.
 
@rlemon dude I was making a joke :P
 
@Zirak given your name... i'm sure I could :P
 
the guy above me asked for your facebook or skype
so i was like "hey quick give me your phone number!"
 
You can probably find my name and personal email somewhere, but try and find which country I'm from.
 
@Loktar yea but I was answering honestly... it's a new kinda trolling i've discovered... the Sheldon troll.... no knowledge of sarcasm.
 
7:21 PM
You don't insert html into the dom, you have your html parsed into sub dom and insert that into dom
 
I think I'm decently hidden
 
haha
nice
 
7:36 PM
@Loktar ZOMBIE APOCALYPSE!!!
 
SHiiiiIIIIIIiiIIT!
 
Just wanted to check if you're on watch.
 
Ive waited my whole life for this moment!
oh.. damn
 
Yea? You're armed up and ready to kill some undead?
 
heck yes
 
7:37 PM
ha, this is fun. I can't find myself by googling my name. Pseudonyms ftw
 
@Loktar Good good. I still have to get a license and arm up.
 
where are you at @OctavianDamiean?
only need a license here for handguns unless thats what you mean
 
Not that dem zombies would care if I have a license but the police does.
@Loktar Austria. We need a license even to use the toilet.
 
hi guys ! i have this scipt jsfiddle.net/Pw6y9/1 which in the code 1 it works good when i select one option the page data didnt disapear when page refresh . but code 2 when page refresh page data disapear , so what i want is make code 2 inside code 1 for i will not loose data when page refresh .
 
lol
 
7:40 PM
Yea ...
 
@OctavianDamiean that sucks. We can buy rifles here no problem fortunatly
they do a quick background check but thats it
 
That is the only political aspect I like about America. :D
I'd so get a HK416C and a M40A3 ...
Just for the lulz.
 
i mean code 2 will not loose data when page refresh also
 
@gosto Y U STEAL FIDDLE AND NO REMOVE RESOURCES?!
 
Um i need help with english
 
7:44 PM
shoot
 
@rlemon what ?
 
what do you call a journey with an aim and hurdles all over the path ?
i just wanted to do it
['journey','aim','hurdle'].join(''); made more sense to me lol
 
@gosto look on the sidebar... see the RESOURCES (2) open it and remove style.css and script.js
@Abhishek trek. adventure.
difficult journey
 
nah doesnt sounds like a good name for a blog :/
 
in english we generally use adjectives to describe this sort of thing.
ohh for a blog.
 
7:46 PM
Quest
 
@Zirak wow man <salute>
 
@rlemon yes u was right here my code again jsfiddle.net/Pw6y9/2
 
JungleQuest: Abhishek's wild vine adventures...
 
Quest de WebTech ?
// stealing Tour de France lols (XD)
 
@gosto that is better... now I hope you get the answer you are looking for... the annoying alert would have hindered you.
 
7:47 PM
quest, n,
1:a search or pursuit made in order to find or obtain something;
2:an adventurous expedition undertaken by a knight or knights to secure or achieve something;
 
rlemon how did that one sounded ?
@Zirak hey mate , you should add a synonym search for your bot :-)
i mean

!!/synonym cry
 
i have this scipt jsfiddle.net/Pw6y9/2 which in the code 1 it works good when i select one option the page data didnt disapear when page refresh . but code 2 when page refresh page data disapear , so what i want is make code 2 inside code 1 for i will not loose data when page refresh .
 
Sam
@gosto anytime a page refreshes, any content/action caused by JS will be lost
 
@Sam but the code 1 i said it works good , even page refresh data will not loose , but code 2 when submit and page refresh data loose
 
0
Q: Javascript Array.indexOf() shows strange behaviour when applied to array of objects

Jinu J DI have created the following code http://jsfiddle.net/EbCUx/ Why indexOf() returns -1 eventhough contents of a and b are same.. I know that a is a reference value ..Is that the cause...And can anybody explain me the exact reason?

 
Sam
7:53 PM
@gosto anytime a page loads, whatever is displayed is set either from the server or by a JS function that ran when the page got loaded
 
@Abhishek I'm actually planning to make the bot smarter, integrate a NLP (Natural Language Processor) into it. But there're 3 problems with doing that: (1)It's very difficult for the range I aim for, (2)I don't intend on writing it in js, so as a result (3)the bot will need to live on a server, something I repeatedly failed to do.
 
@Zirak Y U NO NODEJS ?
i mean nodejs + client :P
 
Sam
@gosto if content was created with JS, the only way to make that content appear after reloading is to (1) send it from the server (2) run a JS function once the page loads
 
@Sam unless he uses localStorage or cookies.
 
Tried. Couldn't programatically log-in to SO. Gave up.
 
7:56 PM
and what other language you can code it on i mean if not js ? // keeping it working in a browser
ah!
why cant u use another ip ? as server and allow cors ?
 
Sam
@rlemon even if he stores them on the client, he still has to call some function to display it on the browser
 
By "couldn't" I mean "I know there's a way, I cba to find it" :P
 
lmao
 
Also, if it were to include an NLP, I want to make it in a language I don't know yet; I've been stuck in js for too long.
 
@Sam yes... but you neglected to mention these... what if he has no server? now he thinks "ohhh shoot, guess i'm out of luck and cannot remember data a crossed pages"
so I was just adding them in :)
 
7:58 PM
So, it can't run in the browser, so it must run in a server where the main bot will execute the NLP, so the bot must be ported to nodejs! ;_;
 
@Sam code 1 is for select option , code 2 is for a button , code 1 works without loosing data when page refresh , but code 2 looses data when page refrsh , any solution to write code 2 like code 1 or inside code 1 ?
 
Sam
@rlemon alright....cool..:D
 
@gosto the select option being remembered if a fluke and is not something you should rely on.
 
Sam
@gosto code 1 works because the page didn't refresh
 
@Sam tbh i haven't even looked :P i just blindly answer questions.
 
Sam
7:59 PM
@gosto normally a select statement does not refresh a page, unless you explicitly call location.reload() or some other function like that
 
@gosto at the end of code2 add event.preventDefault();
if i am to understand the issue now.
?? maybe ??
i'll just see myself out now.
 
Sam
if he wants the page to refresh, 'event.preventDefault()' won't work....otherwise, that's the perfect solution, @gosto
 
@Sam yes now the page wont refresh , and i want the page to refresh and the data stay
 
@rlemon don't annihilate me when you see my updated blog :-)
 
@gosto lol server, localStorage, or cookies my friend.
 
Sam
8:02 PM
@gosto must the page refresh?
 
@Sam yes to get data
 
@gosto see cookies are your storage
you cant store data
cookie saves your data
so you refresh and data stays!
 
Sam
@gosto do you know how to use AJAX?
 
@Abhishek yes code one page refresh and data stays , but not code 2
 
8:03 PM
@gosto you could use XMLHttpRequest (or XHR for short) to load the data from the server.
 
@gosto show code 2
 
@Sam don't say AJAX or he'll find a buncha libraries... he should learn XMLHttpRequest
 
@Sam sorry i dont know how to use ajax , but would be very helpful if you could say how
 
@rlemon kindly use assembly like engish with him he wont be able to parse 1337
 
8:05 PM
@rlemon lol he has got one there already
 
Sam
@rlemon my apologies....:D
 
fine... @gosto rtfd mate. api.jquery.com/jQuery.ajax
@Sam he's already in over his head... why not i suppose.
@gosto watch these videos chat.stackoverflow.com/rooms/17/conversation/… if you want to learn some more about javascript... also stackoverflow.com/tags/javascript/info more free resources on the tag wiki
 
Sam
@gosto this is what you can do.......when the page refreshes, return a JS function that calls the second code automatically
 
8:22 PM
RT @__DavidFlanagan: Just landed pull request #1337 to Gaia, the 'leet HTML5 UI for Mozilla's B2G phone! https://github.com/andreasgal/gaia
RT @IE: #MSDN IE blog: Guidelines for building touch friendly sites http://blogs.msdn.com/b/ie/archive/2012/04/20/guidelines-for-building-touch-friendly-sites.aspx #IE10 #HTML5
 
@Sam have tried like that jsfiddle.net/Pw6y9/3 but didnt work also
 
Sam
@gosto you can't wrap it inside the '$(".showt").click()' function......remove it from inside that function, and just put it inside the '$(document).ready()' function
 
RT @divya: who wants to take a stab at writing HTML5Please recommendations for File API/Writer/File System? https://github.com/h5bp/html5please/issues/115 #myTha ...
posted on May 03, 2012 by Thomas Fuchs

81 fonts, 1 SVG, 696 lines of JavaScript (no semicolons!), 565 lines of CSS, 74 lines of HTML and Zepto.js in a single 634KB compressed web page. Amazing stuff. Read up on how it was done.

 
8:40 PM
Hello all I asked this question earlier but got no response, don't suppose anyone has a few moments to answer the following? I have been told that the following var BuriedArray = SomeArray[88][0]; would be a "reference", would that mean any changes I make to the BuriedArray such as BuriedArray[i] = "hello"; would make immediate changes to the SomeArray?
 
Sam
@TranquilityEden what's the question?
 
I am trying to get my ehad around accessing a multidimensional array
 
Sam
array[] for 1-d; array[][] for 2-d, array[][][] for 3-d, etc
 
I have an array of 100 indecies, each index holds an array of 2 indecies, and each of these an array of indeterminate length
 
Sam
so, the outermost array has 100 elements?
 
8:45 PM
Yes, Am I able to set one of these buried arrays as a new varible as in: var BuriedArray = SomeArray[88][0]
I have been told that the following var BuriedArray = SomeArray[88][0]; would be a "reference" would that mean any changes I make to the BuriedArray such as BuriedArray[i] = "hello"; would make immediate changes to the SomeArray?
 
Sam
if you can access it correctly, yes, you can assign it to any variable
 
@rlemon Referring to when ASI is useful to people, the last feed from Thomas Fuchs is an example for complete idiocy and being a brat: "696 lines of JavaScript (no semicolons!)"
 
Sam
no.....I believe it shouldn't, but you can test it
 
Everyone admits that ASI was a mistake in the language design. Some people love it though.
 
But it's not really surprising...Thomas Fuchs has been a complete tool for long.
 
8:48 PM
@Zirak Thomas Suchs would be a more appropriate name.
 
Also, if you don't mind I have another question, if I wanted to clear the array of indeterminate length in the array of the following structure SomeArray[100][0][?]. could I do SomeArray[100][0].clear();?
 
@Zirak which feed?
 
Thankyou Sam for your help, I am quite new to javascript and your experienced coders have been a godsend!
 
Sam
what language are we talking about....JS?
 
8:49 PM
yeah
 
Any Moby fans in here?
 
meh
 
@TranquilityEden First, try it; you'd see the error. Arrays don't have a clear method. All arrays in js are also variable-length, there are no fixed-length arrays.
 
waves hand in a soso fashion
 
@OctavianDamiean I hope not.
 
8:50 PM
To wipe an array clear, either do arr.length = 0, or simply assign a new array: arr = []
 
Any Beastie Boy Fans in here?
^ the shit (1986-present)
 
@Zirak ahh so an array create like this is not a set length? var SomeArray = new Array(100);
 
Sam
@TranquilityEden exactly.....if you are talking about a server-side code, you might need to clear stuff; but on JS, I doubt you need to do that
@TranquilityEden no....you don't set the length when creating an array in JS
 
> 81 fonts
i stopped there.
because each word needs to different
 
8:52 PM
I have an array that is being filled as a result of a pathfinding algorithm with each step in the journey. When the object gets to its location I want it to clear the array holding its route so a new one can be generated
 
Nope; arrays are fluid. It's also advised to not use the array constructor (pretty eefff), instead use the array literal: arr = []; ['firstItem', 'secondItem', 42, {}, null]
 
^ that
 
I propose "^ that" forever be the new +1 for the chat.
 
^that = this
wait
wrong way around
fixd
 
8:54 PM
But I don't understand how I could create the array literally if I don't know the number of indecies I will need? Sorry If im being stupid.. as I mentioned I am still a novice
 
You don't need to specify the length of the array when you create it
 
You don't have to know. Arrays are not of limited length
 
javascript arrays can expand
 
0
Q: Icon grid that overlay when clicked?

raindog308I'm looking for something that works like this: The page is a 4x4 grid of icons (boxes with small pictures and a title). When someone clicks on one of them, an overlay gracefully is displayed with more info on that topic. The user then clicks an X in the upper-right corner or whatever to close...

 
Sam
@TranquilityEden in a language such as Java, C#, you must specify the array length when creating it; in JS, you don't. You just do 'var array = [1, 2, 3, 4, 5, .....]'
@TranquilityEden or 'var array = new Array()'
 
8:57 PM
except don't ever do new Array(), just use []
because this is the internet
 
@david Wut? Da Interwebz? No wais! Can0t be truth!
 
heh
THIS IS SPAAARTTAAA!!!
 
I think I understand... I am starting to wonder if I have bit off more than I can chew with this
 
twss
 
Sam
@TranquilityEden tell us what you have, what you want to achieve, and smart people here will guide you right
 
9:01 PM
THIS IS JAAAVAAAAAAAAAA .... script
 
wow, thats very kind Sam, how long have you got? I am trying to create a simple javascript game very like sim city which I will using with the children I teach. the current example is found at www.tranquilityeden.co.uk/colony/example.php although this is page is a few stages behind the current prototype it gives you an idea of what im trying to do
I have a "worker" that will carry resources such as wood from the sawmill to the warehouse. to get there it must use a pathfinding algorythm to find its route using the roads. After much experimentation (mostly unsuccessful) of trying to make it do this dynamically (as it moves along the route) to make it plan its entire route before leaving.
I think I have that done, but I am trying to store the route in an array so that I can have multiple workers planning their routes and each storing its route in a seperate index of the array. This way as it travels the route each can read of the next direction to move in from the array
 
@TranquilityEden Fun with arrays: jsfiddle.net/BgZQb
Open your console (on Chrome, Ctrl-Shift-J, I think F12 in FF and Opera)
aahh, the console messes with the array expansion...shame
 
ok i will ahve a fiddle with your example, can I replace the consol with alert?
 
You can, but it'll likely not show the details as well as the console
I highly recommend to meet your browser's js console; it's a magnificent tool
 
right, I will have to take a look, I am using FF and the consol is completely new to me. Thankyou for your advice guys I will have to sit down and read up on the consol :)
I can just about get javascript then arrays come along and completely bafle me
they don't behave like php arrays (my only previous experience of them)
 
9:13 PM
Arrays are just like objects; dynamic keys and everything. They just have a magical length property and some sugar methods
 
I have been told that maybe I should give up on arrays and move to associative objects but that is completely unkown ground for me
Right got to go, missus is calling, thanks again for your help and advice all.
 
Well, if you understand how objects (or, as they can also be called in js, hash-maps, associative arrays, dictionaries and so on) work, you understand arrays, since arrays are a subset of objects
Enjoy the missus-call
 
haha that never happens :(
bye all
 
9:53 PM
 

« first day (565 days earlier)      last day (4399 days later) »