« first day (759 days earlier)      last day (4193 days later) » 

9:00 PM
argg... man..
jsfiddle is crazy slow again
I need to just fork someones fiddle copy and use it
on my own domain
 
Hey all need some JS help to fix an error:
Uncaught TypeError: Object [object Object] has no method 'accordion'
 
he is so skinny..
 
yesterday, by Zirak
From now on, I (and I ask other owners to do as well) will bin any message containing unformatted code. Either learn the chat's markdown formatting, or shotgun with Ctrl+K before sending. Thank you, The Management
sucks doesn't it. but Zirak makes a request, I have to oblige
 
ugghhhhhhhhhhh
<script type="text/javascript">

$.getJSON('events.php?action=list', function(data) {

	$.each(data, function(i, item) {

		var id = data[i].id;
		var title = data[i].title;
		var description = data[i].description;
		var image = data[i].image;
		var dates = data[i].dates;
		var time = data[i].time;
		var date_post = data[i].date_post;
		var campus_list = data[i].campus_list;

		$('#events > tbody:last').append('<tr id=\'' + id + '\'><td>' + title + '</td><td>' + description + '</td><td>' + image + '</td><td>' + dates + '</td><td>' + time + '</td><td>' + date_post + '</td><td>' + campus_list
 
Refused to execute a JavaScript script. Source code of script found within request.??????
 
@matt the issue is the plugin is not loaded prior to calling that method.
 
@matt the accordion plugin script is not included in the page
 
ninja'd sukka!
 
Ok. Im not using it anymore can I just ditch it somehow easily?
 
9:06 PM
@rlemon :)
 
umm, remove that line of code!
 
then it gives me other errirs
i just added it back in, thanks
 
well then you need more unicorns.
also, understanding how to program might be useful.
 
WTH?!?!?!?! HANLEY ANGRY!!!!
 
yea, that sounded very asshole-ish... but who here disagrees with me?
 
9:08 PM
better say : understand what you are doing
 
Ok
 
Thanks and I assume the error:
"Uncaught TypeError: Cannot read property 'placeholder' of undefined "

is the same issue?
 
@matt nope
 
@rlemon lol since you seem to have so much time on your hands help me
 
9:09 PM

Javascript Resources.

Sep 4 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 at 13:40 by rlemon

@hanleyhansen mustachify.me
casting all of the data to variables is pointless unless you are using them more than once in the block
 
ok but where the hell is this error from?

Refused to execute a JavaScript script. Source code of script found within request.
i'll even put it in a pastebin for you. here you go: http://pastebin.com/QZ2f3K5K
see how nice i am?
 
$.getJSON('events.php?action=list', function(data) {
	$.each(data, function(i, item) {
		var row = $("<tr></tr>"),
			cell = $("<td></td>";
		for( var prop in data[i] ) {
		    var tmpCell = cell.clone();
			if( prop == 'id' ) {
				row.prop('id', data[i][prop]);
			} else {
				tmpCell.text(data[i][prop]);
				row.append(tmpCell);
			}
		}
		$('#events > tbody:last').append(row);
	});
});
maybe?
don't make me cancel the stars again!
stars are not bookmarks
3
:)
 
@rlemon huh?
 
also I don't think that will work as you want it to. it just takes all the properties and pumps them into the table.
 
Same error: Refused to execute a JavaScript script. Source code of script found within request.
 
9:16 PM
Ok in this case:
http://pastebin.com/1PyDMY4Y

Uncaught TypeError: Cannot read property 'placeholder' of undefined

Any tips there?
 
@hanleyhansen live example somewhere? it's hard to tell without seeing the code live
 
@rlemon Your pull request is meh. You want to commit to the master branch, and not the (non-existent) gh-pagesbranch.
 
but you needed the gh-pages branch to make it a page.
 
rlemon... my buddy! nudges... :p... can i request ur assistance ;) or more of advice :P
 
i suck at git
 
9:17 PM
@rlemon no unfortunately. i wish.
it's a local server here at corporate
 
@KirstyHarris sure, buy a cat.... that'll be $2.95
 
Yeah but you told me "hey dude, merge this into your master branch"
 
@Zirak well in my defense I made a gh-pages branch and pull requested so I assumed it would have made a new branch for you
 
@matt Yeah, Modernizer.input doesn't exist
 
9:18 PM
ignorance is bliss
 
That'll be 2 virgins
 
is there anyone around who is CSS savvy who can assist me pleas... as no activity in the CSS room lol!
 
> If your first question is "can I ask a question?", ask the second one.
just ask ffs
 
lol
ok,
 
if we don't want to help we'll just ignore you
 
9:19 PM
basically im building a site, and in a high res it looks fab.. low res.. mahoosive scrollbars....
 
@rlemon ok so i'll take your advice and i won't cast the variables i'll just access directly
 
@zi
 
@Zirak here is my code for the form that has the placeholder: pastebin.com/3nyp5h71
 
mahoosive? lol
funny word
 
9:20 PM
@matt Doesn't matter
 
well ive done it in percentages.... but its not scaling at all ha!
 
Modernizr.input doesn't exist
 
@hanleyhansen but .. where do you see this error ? does it have anything to do with the JavaScript ?
 
@Zirak how come he only owes you 2 virgins?
 
@hanleyhansen... its my fave word :)
 
9:20 PM
@mexique1 JS console of chrome
 
@hanleyhansen His problem was trivial
 
@KirstyHarris you need to actually look at the links before making a conclusion that i'm talking about percentages only :P
 
I had to endure you for a while
 
@zirak ok, so just scrap it then? or is there another way?
 
9:21 PM
ok :)
yh someone mentioned that mixing percentages and px screws it
 
@Zirak lol your enduring is not over yet
 
@matt, Do you know what Modernizr does, or are you just using some code from somewhere else?
 
he's not done with you lol
 
@KirstyHarris good example: twitter.github.com/bootstrap and resize your browser window
 
9:21 PM
Pretty pretty branching...
 
yes it helps IE7 support html5 elements.
 
@matt I mean, it should probably exist if you've included the required Modernizr components
 
Also known as "Nobody knows how to work Mercurial"
 
oooo ok thanks rlemon :)
 
@hanleyhansen sometimes just googling the error is good : stackoverflow.com/questions/1547884/…
 
9:22 PM
@zirak ok ill look at the pack i used thanks
 
@matt No, it doesn't; it's not a fixer, it's a detector
That'll be an extra virgin
...what am I at now? 32?
 
@mexique1 yes i know but i'm not doing any cross site scripting
 
@matt, Yeah that's not quite right. It doesn't magically add functionality. It lets you know what is available
 
that's why i'm pulling my hairs out
read my code
my json call is local
 
ha ..
 
9:23 PM
Ok thanks guys. I thought if IE7 was detected it will apply changes you have set fourth.
 
Whoa... I thought @mexique1 was Raynos there for a minute...
The gravatar looks similar
 
@matt, Nope, it will tell you what features you have available no matter what browser the user has. It's up to you to design for the feature set of each browser
 
@hanleyhansen and in chrome network tab, what does return the ajax call ? events.php?action=list
 
Thanks @phenomnomnominal
fixed it
 
god this is screwd... percentages GREAT! but massive... then i swap back to high res and its bummed again .... slaps head
 
9:25 PM
you guys are awesome.
 
dievardump is gone again, he is travelling, we all wish him well. I discussed where I'm travelling for work. jsfiddle is slow. HELP VAMPIRES!!!!!!!!!!!!!! NZ is skinny according to Loktar. MORE VAMPIRES!!!!!! Hanley is here and wearing a mustache... Zirak decided to feed the trolls. Ryan randomly commented on branching. Matt owes Zirak a truck full of virgins (preferably still alive) ... See you next time! Keep watching the stars!
 
Woo!
 
!!/choose shower or "play pokemon"
 
@Zirak play pokemon
@Zirak shower
 
:D
 
9:26 PM
lol
 
...
 
RAGE
 
You are a liar
 
two tabs with chat windows open.
 
@Zirak play pokemon in the shower
 
9:26 PM
....................^with your
 
@mexique1 nothing
 
The last time I played Pokemon in the shower, the kid's mom phoned the police
 
O_O
 
What the hell is the rightmost image?
 
9:28 PM
wtf ? haha actually I have read @rlemon's code
 
It looks like a milking of some sort
 
hair dressing
 
...scissors?
 
@Zirak LOL cosmetology
:6210279     <script type="text/javascript">

    $.getJSON('events.php?action=list', function(data) {

    	$.each(data, function(i, item) {

    		$('#events > tbody:last').append('<tr id=\'' + data[i].id + '\'><td>' + data[i].title + '</td><td>' + data[i].description + '</td><td>' + data[i].image + '</td><td>' + data[i].dates + '</td><td>' + data[i].time + '</td><td>' + data[i].date_post + '</td><td>' + data[i].campus_list + '</td></tr>');

    	});
    });

    </script>

    <table id="events" border="1">
 
FFFFFF
Y U NO GET IT
...
 
9:29 PM
@Zirak I got it i got it
 
I disapprove of your walls of code
 
lol :P
 
the drop shadow under find a career button concerns me
 
well i had a look at the pages rlemon
 
and that is your solution
 
9:29 PM
basically this guy wants hardly any side margin
 
use media queries for a responsive design
 
you guys have a great day
 
@rlemon i give 2 craps about any design in this whole damn organization lol
 
but its like i do percentages and it leaves like a massive margin either side
:S
 
"I want the page layout to change as the browser media changes"
use media queries to change it based on the browser viewport size
"but apples oranges and motor boats"
^ our current conversation
 
9:31 PM
lol
hmmm float dont work ha!... take that out
 
@media (min-width:500px) { … }
^ this kinda stuff.
have fun
I need to go work on my cancer
cough formatting 3 2 1
 
see i have that inside a 100% wrapper... :S
thought i had 0_o... sorry :
:(
 
1 message moved to recycle bin
I wish admin functions included 'fixed font this message'
 
then I wouldn't have to feel like a douche binning messages
but rules be rules
 
9:33 PM
it should work, don't know, put it in a domready ..
 
#BlogTitleDescriptionWrapper {
width: 960px;
height: 80px;
margin-left: auto;
margin-right: auto;
background-color: #000000;
}
ok now that worked... :S
well see that looks perfect centred in a low res... but high? massive margins :S and im trying to build this on a low res as poss
so it will be good for all... but im not understanding the responsive jargon
 
i got it hooray for me!!!
AND i get to get out of this damn place in 20 mins
what a wonderful day
 
so am lost Really lol
 
Can someone tell me why this button is not getting disabled? I know it won't work on JSfiddle but I needed a place to paste the code
http://jsfiddle.net/Ammarcola/P7ahz/2/

newDialform is tghe form name
 
domready ??
 
9:37 PM
Too lazy to eat... Diet Coke will do.
 
posted on November 13, 2012 by Victor Rodriguez

Vegetative patient free of pain Rainbows and Double Rainbows - Sixty Symbols Helping The Sweeney Part 1 - Top Gear Edition - BBC OUR STORY: The SETI Institute

 
@mexique1 no issue was in the webservice
when i set the header to content-type application/json it worked
json_encode wasn't enough
 
hmm ok
you should have get a 4.. bad request in chrome
400 bad request
 
@KirstyHarris still not formatted
 
@mexique1 that would've been nice. i would've went straight to the web service and found my error
 
9:40 PM
paste in the code
    do some fancy
                  formatting
of your indents
       then
                        preserve the formatting by pressing

CTRL + K
 
the webservice is written in ..?
 
:)
pure php or any framework to make REST ?
 
pure php
 
@AmmarAhmed because your not assigning the disabled value you are checking it
 
9:41 PM
@mexique1 well i was using drupal's db api
 
document.newDialform.newformSubmitted.disabled == true; // I am a condition
document.newDialform.newformSubmitted.disabled = true; // I am a assignment
 
ok ok this is just strange that there is some mapping by content-type with pure php :)
oh wait .. it's the JavaScript room :)
 
@mexique1 what do you mean?
that's how i've always done it
 
@AmmarAhmed jsfiddle.net/rlemon/P7ahz/3 see how magical that is once the code is right?!
 
9:44 PM
i mean not seeing anything in chrome ! i'm always finding issues this way
but with nothing in chrome .. hard
 
asks question: leaves room.

why do I even bother.
 
tryin to Rlemon
sorry was trying to read that demo u sent me
so basically its putting the whole shebang in one wrapper :S
so gotta do @media query and set the whole thing up... 0_o... gosh.. gonna take me a while :S ha!
am confused as to where it references the mediaqueries stylesheet 0_o
 
media-queries take some time
but then you have a sexy responsive site
 
yh... :)... thats what i want lol!!! :)
ah! actually found it :)
 
4 MORE MINUTES!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
9:56 PM
till?
 
I can leave lol
 
How would I simulate a terminal carrot (cursor) repositioning itself when you type?
Anyone have any ideas?
 
Where? What? When?
 
I was thinking of listening for each key?... But that would be at least 200 - 250 lines of code.
 
Just like I said last night. <span>|</span> prepend the text before it
Then use input.onkeypress
 
9:59 PM
night everyone!!!!!!!!!!!!
 
f0x
carrot? you mean caret? ;p
 
lol ^
 
Oh that is where I messed up. :D @phenomnomnominal
 
so you want to do what?
emulate keystrokes?
 
Let me try that. @f0x Yeah, I meant caret. :D
 
f0x
10:00 PM
he wants to emulate that flashing caret when you type
tbh i would love to know why ;p
 
ok make a caret gif.... then when you type always position the gif AFTER the last character ;)
 
Yes that is exactly what I want for my terminal simulator.
 
How about wrapping the last character in a tag, and using css' :after?
 
probably better idea ^
 
f0x
so i take it youre not using a textbox?
 
10:01 PM
or just reverse engineer this site
 
On each keystroke, move the tag (or wait some time and them nove the tag)
 
It is similar to what @phenomnomnominal said.
 
@W3Geek you use a textbox, and an iframe
 
A gif seems yucky
 
hide the textbox (from view) but make the input go there, then pump it all out in the iframe
 
10:02 PM
I'm sure theres a unicode char for the block thing
 
You could just use CSS and a JavaScript timer.
 
You can also wrap the text in one tag, the cursor in another, and animate the cursor separately
I think that'll be the preferable solution
 
Anyways
 
setInterval(changeClass)
 
10:02 PM
im still here... just trying this thingy
 
some stuff happened, but I have to go home, I'll be back later with more awesome updates~!
 
And just append the cursor when someone types @Zirak
 
Nope, the cursor stays there
 
f0x
@W3Geek - just so i understand, is your input not coming from a textbox?
 
You just hide it
 
10:04 PM
Yes my input is coming from a textbox as of the moment.
 
f0x
and the default caret is where? ;'p
 
I'm just fiddling with some stuff on my tetris AI. Do you think it's better to look for block shaped holes in the grid and add possibilities, or try all the possibilities and remove invalid ones?
 
I plan on using an elements within the (table) in the near future if I can. I want to replace the default caret with one similar to a terminals or cli.
 
f0x
understood
 
Incredibly rough solution: tinkerbin.com/efiaFJ4G
The intervals are broken (check if there's one already in start), the input doesn't make sense, but I think it brings the idea
Any response?
Close to what you wanted? Far off? Absolute shit?
 
f0x
10:15 PM
<response>200</response>
 
What sort of overhead is there for initialising a web worker?
And for onMessage?
 
Why do you care?
 
@rlemon (see comment from Oct 1, why it's in javascript I do not know chat.stackoverflow.com/transcript/message/5583985#5583985 )
@rlemon I didn't think anything about the comment "spamming". ;) As for the identity of the company, I didn't intend for it to be any big secret, I just didn't want them to be able to google their name and get to my post. If they google their content and get to my post, so be it, but they're not going to even consider legal action on some kind of infringement if I never even said who they were. "IANAL."
 
Like if I'm sorting 2 different small arrays a few hundred times, will I get any gain by spawning 2 workers and sending them the arrays as messages to sort simultaneously?
 
@rlemon. and on that point, what a worthless company. but I said the same thing when amazon stock was $1.50 in 1997 so what do I know?
 
10:17 PM
Most likely, because they're separate from the js thread
But benchmark both
 
See if there's a need for speed
 
</offtopic>
 
10:47 PM
o/
I seem to be addicted to these chat rooms
 
Many worse things to be addicted to.
 
Yea, I kicked the Facebook habbit
 
So brave.
 
yea... i'm 26 :/
 
11:07 PM
@rlemon You've got me beat.
 
11:34 PM
Hey, anybody know what this header property in .net is all about?

newHeader:64.125.195.166 - 10.4.47.1 - 80

It's one of very few differences I can find between a version of the app that's losing track of some webforms JS BS it's pulling out of some DLL ass and one that's not breaking.
That would be a response header from an aspx file.
 
Why is there a this referencing the global environment inside a plain function f(){ this } but not in the global scope?
i.e. function f(){ for ( var items in this ){ console.log( items ); } gives me the global objects. The same for-statement without the function gives zilch.
 
11:50 PM
lol @rlemon thats a stash bro
I rock the whole beard thing
although its a kiddy beard
 

« first day (759 days earlier)      last day (4193 days later) »