« first day (2222 days earlier)      last day (2951 days later) » 

00:17
hi guys just wanted to know your opinion on this ... is it possible for a csv file to change values on a html page using javascript ?
sure
@rlemon hi
@rlemon its totally out of my remit to make something like that I think , am just uploading a project spec to freelancers.co.uk , hopefully someone will be able to make a js file that uses csv values and places them in specific input boxes on a html page
HELLO FRIENDS
 
1 hour later…
01:46
Good morning~
why i cant get specific element by document.getElementsByClassName("tabs")[0]
are you getting an error?
why do not U use document.querySelector()
just want to test getElementsByClassName
<div class="tabdemo01">
<ul class="tabs">
maybe when your javascript executing, the document has not be loaded already
02:00
var tabs = document.getElementsByClassName("tabs");
console.log(tabs);
[]
try "window.onload()"
Thanks
why i always make this mistake
...
the document has not be loaded already
you don't have to place the script tag in the head. It's common practice to place it just before the closing body tag
Good advice
@Shmiddty
damn, 17 messages yesterday
03:14
crazy to add a proxy for Ionic command line.
03:56
@Zirak Guess what
04:53
ji
@Josef Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
1 hour later…
06:01
Good morning, is there any way to get rid of this strong coupling in this example docs.angularjs.org/guide/component#intercomponent-communication
06:54
Did chrome sneakily change settings on notifications to "allow all notifications"
Election time on SO as well
Vote for Cerbrus
to whom we can compare Cerbrus with?
Trump?
hi all

Query on angular js very simple thing need to clear text field
@user2690456 Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
07:16
I voted for Cerbrus and SO gave me Caucus badge (ɔ◔‿◔)ɔ ♥
07:28
I found SVG is much easier than Canvas, not sure if I am correct~
@FlyingGambit Yay :D
Thanks!
07:55
@user2690456 Chck this https://jsfiddle.net/vbt9r5r6/2/
I added IIFE to invoke it, and changed the JS fiddle setting from `onDomready` to `no wrap in body`
@Cerbrus +1 voted
Much appreciated, @Beat :D
08:11
@KendallFrey that looks kinda disgusting
08:41
Cerbrus, I voted for you too
Yay, votes :D
I didn't 😈
09:08
@Cerbrus you gat my vote
@TariiqHenryBbosa Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@BenFortune *Snarls* ;-)
09:28
@FlyingGambit you don't need to vote to get that badge :D
I voted for neal and cerb
Anyone here using greenkeeper.io?
multi vote possible ?
more free badges
WEEEE!!! \o/
@Neoares I voted for @cerbrus and @Neal etc. too and got that badge
09:41
I got the badge only for visiting the election page
tfw when you get the tumbleweed badge
are we allowed to say who we voted for?
@bitten of course you are
can someone explain me to override a prototype function inside a class function. Everything i tried before doesn´t seem to have access. jsfiddle.net/eddepxc8/2
this javascript level is a bit too high for me :S
@BayLife What's the problem with that?
i don´t understand how i can put in my own functionality in a seperated file for the hidePopup function
how can I get my own instance of it
i can even access the ImageHotspots.Hotspot object
ah wait
09:51
@BayLife Well, you can override ImageHostsports.Hotspot.prototype.hidePopup
But a better way would be to create an inheriting object
for some reason it is now working ImageHotspots.Hotspot.prototype.hidePopup = function () {
Instead of modifying the existing one
how would i create an inherting object? Is it something like this ` ImageHotspots.prototype = Object.create(EventDispatcher.prototype);`
Currently when the popup is shown, it can be closed by clicking somewhere else. My intent doing this, is to override the default close event and make it to listen on a specific button. Can I attach a .on() event on this way?
so I guess I have on the one hand to override the function like above to remove the close event, and on the otherhand creating a inherting object to add an handler?
10:09
You can create a new type of Hotspot, a ButtonClosingHostpot
Which inherits most of the functions from Hotspot, except for the ones responsible for closing it,.
10:22
@phenomnomnominal Some of the open projects I participate in use it
Hm, I have created a new object of the class and I have the most functions available, but i don´t understand how to attach an event handle without touching the original file. I have created a minified example for this. Could you give me a small hint? jsfiddle.net/eddepxc8/4
I like the idea, but the implementation is lacking :P
user4196492
is this the place for questions about the Three JS plugin?
@pebble225 You could ask such questions here, but I assume there are better places for them
Not so sure how many three.js users there are around here
user4196492
So, I am trying to rotate the camera object, but I noticed that when I move 1 axis, it automatically changes the other 2 axes. So if I am looking slightly down and I turn to the left or right, the camera will turn relative to the player instead of the world. So the camera would start turning up.
@pebble225 You probably have to also define an axis for the rotation or calculate the appropriate matrix
@FlorianMargaine Talk about a repost...
Or is that the joke?
@SomeGuy cs.au.dk/~amoeller/spa/spa.pdf this is good stuff
11:00
@pebble225 what do you have at the moment?
how does primary election work?
You upvote the people you like
what is an inflammatory political comment?
@corvid read the fucking manual
@jAndy intensely provocative
11:06
who's to decide about that line tho...
@Neoares what the fuck is wtf?
@jAndy umm, you
@jAndy the game
what I was just saying is.. it is impossible to make rules about such things. Because if you are going to punish guys which "violate" that "inflammatory comment", you basically created a dicatorship and censorship. In this case, some room owner will decide on his own. Welcome to 1930.
@littlepootis why?
@bitten with two fingers
if you know what I mean e///e
So.. Javascript can't blick taskbar icno of browser?
11:19
@Neoares giggity giggity
@bitten o/
@jAndy i agree, maybe the intention / rule was made because of trolls
It's a bit early to scream "1930" just because someone said "please don't flamebait" though maybe
Javascript can blink the browser's taskbar button ???
neo
neo
is there any tablet with greater than 1000pixels width ?
11:30
@neo Yeah, many
hi guys, is there a simple way to display an error message if the page takes longer than 30 seconds to load?
@ChrisCampbell Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
neo
neo
@BenFortune so if I write a css rule that divide tablet and desktop at 1000px then on the tablet it will show desktop version of website ?
Don't think too much about devices when you write media-queries, think about what breakpoints your design needs
if the design looks good at 980px, who cares if it's 980px on a tablet or a monitor?
neo
neo
@ivarni mine requires 1000px but showing a desktop version on tablet will loose quality right ?
especially in case of images
11:34
@ChrisCampbell If your page is taking 30 seconds to load, an error message is the least of your worries
@jAndy If you don't like the rules of this dictatorship you're welcome to a trip to the JS Room forced labor camp! You'll be required to write jQuery code 18hrs per day and debug VBA code by night
@BenFortune Hi Ben, its if a big query is being run, would rather end the script then let it carry on
its an export
@ChrisCampbell Showing a message won't stop the server-side processing though.
is there no way to kill the process?
@OliverSalzburg I don't think any regime can be that cruel, ruthless and inhuman.
11:50
any git monster here ?
just want to rebase changes... visualstudio.com/en-us/docs/…
but I am not sure if I need to push local commits before I could rebase ?
you can't push before you rebased/merged
@jAndy I can :|
@rlemon I don't like exploring though ? thanks though
then your client makes some automagic, because it's not allowed on standard git workflow
@jAndy rebase is something optional isn't it ? please don't confuse it with merge :)
11:52
it's actually similar, just different strategies
you either merge or rebase
^ here is the issue, I made few local commit with funny comments on daily basis but now I need to push changes to remote master repo...
I want to push it in a single commit
don't want remote repo to ever able to see my local commits
@jAndy if that makes sense..
@Mathematics We noticed
1179
Q: Squash my last X commits together using Git

markdorisonHow can I squash my last X commits together into one commit using Git?

I'm still wondering how you can push if you have uncommitted local changes
@jAndy that's what I am confused with
@jAndy they are committed locally
but not remotely...
oh
11:57
also I just added another project in VS, and now it doesn't even lets me commit locally with this error,

An error occurred. Detailed message: Invalid path: 'MicrosoftTeam.SQL/'
I play the game differently. I actually commit+push together all the time, so I have to stash my local changes, rebase, and then push commit
user6820627
i really really want to test the kick feature in chat. is it ok? i'll kick my The Sockpuppet account to test it.
but that's because I need to create patchfiles aswell
hmmm, I give up on git
Amazing that you haven't given up on life entirely.
3
git is a lot easier than life
For one thing, git comes with comprehensive documentation.
12:04
It's even possible to generate git documentation
ok, now I know what I was doing wrong partially...
5
Q: An error occurred. Detailed message: No changes; nothing to commit. Visual Studio Online

acaliskanI added a class library project to a web application solution. I get Error Message "An error occurred. Detailed message: No changes; nothing to commit." I use git repository on visual studio online.

You really only need to know a few commands with git git add .; git commit -m 'stuff'; git push -f it's all pretty easy
For extra ease of use, just put that into an alias
foo() {
    git add .
    git commit -m "$1"
    git push -f
}
alias gitpush=foo
\o/
12:17
@BenFortune doesn't work for deleted files
12:32
@BenFortune I am using VS so I am not sure if these will be useful to me
It was a joke! Don't push -f! jeeze
@OliverSalzburg goof joke
@OliverSalzburg I was emphasising :P
12:48
@BenFortune It was directed more towards @Mathematics ;)
@BenFortune You people are sick e.e
what's good in the js hood?
today they're cutting up the old roof. fuck my life -- headphones are not even drowning out the noise
13:03
Give them a stern hiding.
ben you snapchat?
Hello, sorry for offtopic but maybe could somebody pls tell me which browser it is ( is it chrome, safari ) I am confused here

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36
Not really
I'm too ugly
Plus my phone is rooted and snapchat are stupid as fuck
@rlemon thank you
13:16
@AwalGarg Nice! Looks interesting. Not sure if I'll ever get around to it, though :P
Did you just start reading it or something?
Would this be the correct .on() parameter for this html structure? fs5.directupload.net/images/161115/l74binck.png Sidenote: it is currently not working ;)
 $('.h5p-image-hotspot-popup-body-fraction.h5p-text').on('click','button#ox', function() {
        console.log('p#two clicked');
    });
@SomeGuy I was looking for some material to implement a type-checker (and some other static analysis) for orn, and this was recommended via irc. Found it pretty good so far, ~10 pages in.
That's awesome
@SomeGuy I wrote a basic typechecker for orn in C++, it works fine, but I want to see what the academic methods are.
@BayLife which is the common static element?
if that isn't working .h5p-image-hotspot-popup-body-fraction.h5p-text is probably also generated on the fly
13:21
@AwalGarg Oh, C++? Not Rust?
Also, I keep reading about this lattice stuff everywhere but didn't know what it was which it seems is covered in this book, so that's good. @SomeGuy
hello guys! I was about to comment something on a question in CodeReview, and ran into some doubt that might sound stupid:
`for(var i = 0, n = checkboxes.length; i < n; i++)` vs `for(var i = 0; i < checkboxes.length; i++)`

Will the `checkboxes.length` method be called once in the first version and every iteration in the second? Or will it be called once only on both?
@AwalGarg Haha, ooh, that's good! I've heard that before and never known what it's about either
@SomeGuy It was meant to be a prototype, and I am sort of still faster at C++ than I am at Rust :P
Ah, fair enough
13:22
In C I think I'd expect the compiler to optimize and have it called only once on both, but since JS is interpreted
@IanC depends on the js engine
jit is much smarter than it used to be
I forgot to ping you with this yesterday, but you'll like this channel too I think, @AwalGarg youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw
ofc it also depends on if you change the length of the array during the loop
@rlemon yes it is. Mostly everything is generated on the fly :S So I would have to override the plugin itself that generates the content or is there another way?
@SomeGuy nice thanks
13:24
or could document do it?
$(nearestSTATICelement).on('click', dynamicElementSelector, function);
just figure out which that is
@AwalGarg Where on IRC were you asking, by the way?
@rlemon Thanks! The length would be constant during the loop. I think the second is more easily readable, the only reason for using the first IMHO was optimization (which even though would probably be hardly noticed)
in modern browsers both will preform the same (assuming no change in teh body)
13:25
@SomeGuy irc.sdf.org. They have some generally relevant channels, but I asked in a private group I regularly hangout with.
sdf is a cool small warm place with intelligent people in general
document.querySelector(nearestSTATICelement).addEventListener('click', function( event ) {
    if( event.target.matches( dynamicElementSelector ) { /* do stuff */ }
}, false);
@AwalGarg Never heard of that
@SomeGuy It is a largely unknown community from the usenet era. All old neckbeards there :D sdf provides free shell accounts too, btw.
Hello anyone there??
@AwalGarg Nice! I'll check it out, thanks!
13:29
I wish you could tile chrome tabs
@SomeGuy make an extension
Nice. Tell the Indian to do the work you don't want to :D
yea, and I'll fuckin enjoy it! my people have no identity because everyone thought we were you
I removed # from the URL in my angular app. When I hit localhost:8080/view1, it looks for a folder, so I intercept such requests and add a # like localhost:8080/#/view1 which works fine. One thing I tried was to route localhost:8080/?product=12 to localhost:8080/#/view1?product=12. This doesn't work, it redirects it to localhost:8080/view1, any pointers on how to fix this?
@rlemon Hahahaha, that's sad, isn't it?
when you stop to think about it, yea
13:37
Hey guys
Hi rlemon, remember that timeout issue
actually my implementation was okay
problem was with nginx's configuration settings
Can anyone help me in jquery?
just ask the question mate
if people are willing to help, apparently they will
@codeln you need to forward the query params as well if you're going to remove the hash location strategy, but why are you doing that in the first place
!!welcome AjayBijlani
@AjayBijlani Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
13:40
@cmaynard I want to forward the query parameters received by the base URL to view1
Hey Ben
special databases for every company (in case of a product based firm) sounds like a needed practice?
@GandalftheWhite o/
Hello I want to change css for current item only on hover using jquery
!!should I just be lazy and use bootstrap?
@rlemon All signs point to no
13:42
!!should I use a css framework?
@rlemon Definitely
suggestions?
!!should rlemon finally use react?
@BenFortune No way
fuck you
13:42
:D
react is love
@codeln Exactly, but no one can tell you how to forward query params if we don't know what backend server you are using. Also, is this NG1 or NG2?
@cmaynard I forward the query parameters as well
I could probably use react in part of this
I'll use React for my coming project
react with Angular sounds okay?
13:43
but I won't
want to get it done asap
!!hala madrid
@GandalftheWhite That didn't make much sense. Maybe you meant: haha
fuckit, bootstrap time
@codeln Ah, I reread you post, I think I get it now, what version of Angular are you using?
13:45
Angular 1.5.8 I route both /view1/?product=12 and /?product_id=12 to /#/view1?product=12, strangely, it works only in the first case
@codeln I don't think that is strange at all, can I ask again why you are getting rid of the hash(#) in your routes? This is important to how the router functions, did you enable html5mode?
yes
I need to remove special characters because of security constraints on the server I'm hosting the angular app on
Oh, btw, I'm creating a http server using python to server the directory where index.html of my app is in
Using this server I'm intercepting such requests and rerouting them
@cmaynard any idea why it's happening
@codeln Do you understand that in Angular you really only serving one page, so you can't really directly navigate to sub-pages without using something like has location strategy? The browser simply can't tell you are wanting to go to a sub-view on your single page app or if you want to load a remote resource from your back-end service. That's essentially what the # is for.
@codeln That # character never even gets sent to the back-end. Take a quick read of this article, I think what you're trying to do is not necessary. blog.httpwatch.com/2011/03/01/…

« first day (2222 days earlier)      last day (2951 days later) »