« first day (2501 days earlier)      last day (2449 days later) » 

10:04 AM
hi there
It makes me crazy..
Uncaught TypeError: Illegal invocation
    at e (jquery-3.2.1.min.js:4)
    at Ab (jquery-3.2.1.min.js:4)
    at Function.r.param (jquery-3.2.1.min.js:4)
    at Function.ajax (jquery-3.2.1.min.js:4)
    at HTMLInputElement.<anonymous> (app.js:4)
    at HTMLInputElement.dispatch (jquery-3.2.1.min.js:3)
    at HTMLInputElement.q.handle (jquery-3.2.1.min.js:3)
I have no idea why
$(function(){
  $(".send").on('click',function(){
    var formData = new FormData($('form')[0]);
    $.ajax({
      type: 'POST',
      url: "/project/",
      data: formData,
      dataType: 'json',
      success: function(x){
        console.log(x);
      }
    });
  })
})
for a week the error was $.ajax() is not a function... WTF .. i mean :) WTF!!!?
 
@Suisse can jsfiddle?
My guess is that $ is not what you think it is.
 
@MadaraUchiha that is the whole code - I have a localhost server
 
$() chrome has this as alias
 
aha hmm
ahja?
 
without jquery
nvm
 
10:06 AM
@KurtG No, only in dev tools
 
how can I override it with jquerys $
 
yh I sai nvm
 
or should I stop doing jquery at all, because its a super duper new project
and do it with vue or so?
 
log $.ajax
 
$.ajax
ƒ (b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"…
 
10:08 AM
what line is the error occurring (in the code you posted)
 
@KurtG there is no line noticed
jquery-3.2.1.min.js:4 Uncaught TypeError: Illegal invocation
    at e (jquery-3.2.1.min.js:4)
    at Ab (jquery-3.2.1.min.js:4)
    at Function.r.param (jquery-3.2.1.min.js:4)
    at Function.ajax (jquery-3.2.1.min.js:4)
    at HTMLInputElement.<anonymous> (app.js:4)
    at HTMLInputElement.dispatch (jquery-3.2.1.min.js:3)
    at HTMLInputElement.q.handle (jquery-3.2.1.min.js:3)
 
thats all
ah line 4
 
...
 
at HTMLInputElement.<anonymous> (app.js:4)
so.. ehm the $.ajax() haha
 
10:10 AM
so its at the very top of app.js?
 
Its a sails.js project - but I don't think it has todo with that
@KurtG yes, this is all I have in this project
I have done this for 1000 times, never had this strange error
wanted to quick prototype struggling with this error since a week -.-
when I use another version of jquery:
app.js:4 Uncaught TypeError: $.ajax is not a function
    at HTMLInputElement.<anonymous> (app.js:4)
    at HTMLInputElement.dispatch (jquery-3.2.1.slim.min.js:3)
    at HTMLInputElement.q.handle (jquery-3.2.1.slim.min.js:3)
same same but different
 
Now log $.ajax?
 
$.ajax()
VM843:1 Uncaught TypeError: $.ajax is not a function
    at <anonymous>:1:3
 
Not $.ajax(), $.ajax
 
how HOW can IT BE undefined
aha just $.ajax is undefined
(anonymous) @ VM843:1
$.ajax
undefined
 
10:13 AM
see
posting different results
 
hehe :D I see things..
yes different jquery versions - different results
 
so $.ajax is not defined, log $.fn.jquery
 
What's $?
 
$.fn.jquery
"3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector"
 
its jquery alright
 
10:15 AM
$
ƒ (a,b){return new r.fn.init(a,b)}
 
so you have jquery with no ajax?
I don't even use jqyery, good luck
 
haha don't good luck me
but hää? why this error? I mean hä?? I have normal jquery in the script tag.. and I do everything like everytime
so strange
 
life is strange
this is nothing
its a piece of cake
 
this is the most strange thing ever happened in my life
 
eat it
 
10:18 AM
and grow up
 
eats it
@Suisse noooooooooooooooooooooo growing up is bad idea
 
my life is so interesting
 
@ARr0w it's a lie.
 
Have you really been stuck on this for 1 week? @Suisse
I will build it if u have
 
yes I swear it.. it was different errors
but stil because of this ajax
 
10:19 AM
ok brb
 
jquery ajax? are you trying exchange data with it?
 
and I have the same project (sails project.. not same code) and it works
i have no idea why
yes my own sails api
sails.js? no one is doing this anymore? what are you guys using in the backend?
 
any north american eclipse participants around? :P
 
south american.. sorry
 
sails is a good choice, depending on what you need
 
10:29 AM
I need love..
 
you need to add sails to your vue
 
and the fixed jquery bug :(
 
step 1: don't use jQuery
 
really?
 
Step 2: Cook pasta
 
10:30 AM
I am very ashamed, because jquery is so nice and easy
and now I am working as a "teacher" at the university for web
 
step 3: move to a foreign country for a girl and do what you can not to make contact with her
 
and I only can jquery :S
hahahha
 
is this w3schools university?
 
xD
 
@towc what have you messed up again? :D
 
10:32 AM
@OliverSalzburg show me
 
yeah tell us haha
 
if you're not fit for the job, you shouldn't have taken it, unless the employers deserve bad things
@KamilSolecki the whole of my life? I don't know what I would have done differently
I'm trying to figure out what to do, because right now, I don't want to get into too many contracts for legal reasons
I think I'll get as little as needed, and pursue other aspects of my life that might help in the future
 
@towc From what I have heard about you, you are doing exceptionally well as for a person your age.
 
@Suisse
 
maybe reads loads of books. Take time to breathe
 
10:33 AM
$(function() {
  $(".send").on('click', function() {
    var formData = new FormData($('form')[0]);
    $.ajax({
      url: "/project/",
      data: formData,
      processData: false,
      contentType: false,
      type: 'POST',
      success: function(res) {
             alert("DONNNNNNNNNNNNNNNNNE")
      }
    });
  })
})
 
@KamilSolecki well, for once, my age is seeming to be a real problem :/
I can't just circumvent laws and expect nothing bad to happen if later on in life I might be a person of interest
 
I would have done lots of things differently
 
@Suisse try that
 
do tell @BenjaminGruenbaum :D
(university doesn't count. I still would rather live like a plant until I'm 18 and keep doing what I love doing after that. I'm just really worried I might lose so much of my motivation and skills)
 
@towc living like a plant might end up with broken bones y'know.
 
10:36 AM
does my basil have broken bones? No, she does not.
 
@KurtG HOLLY FUCK! why??? what was wtf? please teach me master - teach me how to jquery and than how to twerk maybe
 
does she live like a plant? Yes. Yes she does.
 
I have a very nice life. I would have handled working as a teen better, I would have not been as rude. The regular insecurities stuff.
 
@Suisse no problem baby
just upvote my answer
 
haha but what was it??
 
10:37 AM
what's wrong with being insecure?
 
@BenjaminGruenbaum Is towc ever rude though?
 
you can upvote answers in the chat?
 
yes
star it
 
ou I accidently flagged it as spam
 
you can be pathologically insecure, but I'd rather spend time with someone who thinks about what he can learn from something than someone who doesn't
 
10:38 AM
Lol
 
@KurtG can you explain what you did?
lol just joke haha
 
u acutally starred it
loool
 
@KamilSolecki I lose my shit from time to time. I used to be almost like tobiq in this same chat a couple of years back
 
I just made an ajax request
simple
 
haha
 
10:39 AM
maybe u had a typo
 
and what the hell did I do?
never
a hypo maybe
It's the fucking same code what the hell hahaha .. maybe there was hidden characters?
or russian alphabets in my code
thank you very much.. I can't believe how much time it did cost me
thx
 
stop using jquyery
 
Just rewrite it again
 
put your code into google translate @Suisse
 
in vue.
 
10:42 AM
haha
@KurtG but I can use this ajax function for browser compatibility?
 
@towc it limits your ability to make sound decisions, a lot.
 
only that from jquery..
 
@KamilSolecki I was talking about myself.
 
it uses xmlhttp
under the hood
let me give you my http code
its a bit old
 
@BenjaminGruenbaum so it's a good idea to not spend enough time thinking what the best decision to make is?
 
10:44 AM
@towc It'll piss your girlfriend off.
 
funny stories about that, but now that I think about them, they're not funny and make me a horrible person
 
@towc insecurities make you want to do things in order to impress people (or yourself) rather than in order to actually accomplish a long term goal.
 
oh
maybe we react differently to insecurities, or I need to revise my definition of insecurity
 
the latter
 
I mean, I see how one way of looking at it is "trying to impress others/yourself", but another is "trying to solve issues and experiment with solutions"
 
10:51 AM
@BenjaminGruenbaum I'm pretty sure that when I would try to reduce it to something simple, it would no longer crash :P I'm also not sure if it has something to do with the function specifically or how it's called or whatever. Regardless, this is it: gist.github.com/oliversalzburg/73a7ecbad6aecbec847e48c1df19ec6e
 
Definitely need you to reduce that further in order to debug it for you - any chance you could do that?
 
As soon as it hits line 2, node is gone
 
The less external packages the better.
Probably some module doing voodoo
 
If I put a noop on line 2, everything works fine
I usually only encounter weird issues with code that is far too complex to expect anyone to find the source. And whenever I try to dig, it ends up being something extremely rare that only affects me and will never be fixed :D
Like that one where VS Code stops interpreting ANSI codes in the console
Or where the VS code Node debugger quickinfo tooltip has borked layout
Or the one where you don't get any console output if you're using the bunyan CLI wrapper
 
Hi any there?
 
11:03 AM
@RaheelAslam Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@BenjaminGruenbaum probably my biggest personal flaw was talking too much about things in going to do, ending up not doing them
Something I would have changed the other way around if I had a restart
 
Can any one help in firebase updating?
 
@OliverSalzburg lol
 
I want to update the data on specific id in firebase.
?
 
@RaheelAslam Sounds like a very basic use case that should be covered by their docs
 
11:10 AM
Hello
I am not a JavaScript developer. I want to get the index of 'li a' item of what will user click from ejs template to app.js and how could I wait until app.js get the variable !?
Anyone have any idea how could I do that ?
 
@MohammadTbeishat Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
a good idea would be to start by learning javascript
the question is extremely vague, can you give a minimal case of what you have, what you want to happen, and what you've tried?
 
@MohammadTbeishat sure - FreeCodeCamp.com
 
@OliverSalzburg right i know but but problem priority data saving
 
You can also check out developer.mozilla.org/en-US/docs/Learn/… @MohammadTbeishat - good luck :)
 
11:15 AM
@OliverSalzburg there?
 
@BenjaminGruenbaum probably learning by doing is best idea
 
does anyone know how you get to this chat room from stackoverflow.com ? I had tog google search for this link
 
That's FCC
 
it used to be in the footer
 
@towc
app.js to rendered some variables to view:

app.get('/', function(req, res) {
res.render('search.ejs', {
json: myJsonString,
links: links,
titles: titles,
domain: domain
});

then I display list of links
<script type="text/javascript">
function codeAddress() {
var data = <%- json %>;
document.write('<ul>');
for (var i = 0; i < data.length; i++) {
document.write('<li><a href="">')
document.write(data[i]);
document.write('</li></a>')
}
document.write('</ul>');
}
codeAddress();
</script>

Now I want to wait until app.js receive just the index of what the user will click.
 
11:17 AM
@BenjaminGruenbaum there? did you read my message?
 
beautiful. Can you format it now?
 
@RaheelAslam I did read your message
 
I am using VueJS and when I put the JS in "use strict" mode, I can no longer access the vue object in chrome devtool console
 
@BenjaminGruenbaum the biggest concern is that web as of today has many school of thoughts and they all are quite disconnected and it becomes very daunting for new developers
 
1 message moved to Trash can
@RaheelAslam Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
11:18 AM
can you help me in this code ?
 
so writing something like app.myObject no longer works
 
@redshift if it's minified/transpiled/bundled, sure and there are ways around that
 
@CapricaSix ok thanks
 
@vivek it doesn't matter though, you only need one to get started. Even if there are 100 schools of thought and you learned to build apps with Dojo and YUI which is an ancient stack - you'd still understand the fundamental problems and will be able to get a job
 
I've asked a code review question if any of you guys are bored ;) codereview.stackexchange.com/questions/173524/…
 
11:19 AM
@RaheelAslam I probably can, however it looks like you haven't read the manual - so go do that.
 
@BenjaminGruenbaum makes sense but then there are things like writing crap code vs good code
 
This is not a "help room", this is the JS room, if you want me to look at your problem (especially when I have things to do) it'll have to be a really interesting problem.
@vivek that's phase2, phase1 is just writing code IMO
!!afk walk back to work
I went to home for 40m to have lunch with wife
 
@BenjaminGruenbaum like I always hear favour composition etc
np
 
https://stackoverflow.com/questions/45753255/how-can-i-update-inner-data-with-specific-id-in-firebase
Help in this problem
@BenjaminGruenbaum do you see the question?
 
@RaheelAslam BenjaminGruenbaum is afk: walk back to work
 
11:23 AM
@RaheelAslam You already got an answer. You complaint about it is that it doesn't do exactly what you want
That's not how to get help
 
@OliverSalzburg provide the script so that i can add.
 
I just want the right direction where could I find a way to wait until app.js file receive the index of what the user clicked from list of <li><a> links in .ejs file.
Any idea?
 
Script does not update my firebase according to ordering
 
@RaheelAslam You're cute
 
@OliverSalzburg Great Please provide solution
I am stuck in this ordering
 
hi everyone, got a problem with angular, i face the same issue as : stackoverflow.com/questions/26834857/…
I did copy paste a functionnal controller, just changed the name and added it in the routes
 
I think from this chat i did got any solutions
Thanks to All.
 
ok i got it
 
still not formatted
 
@RaheelAslam I told you I did twice already.
 
11:37 AM
Ctrl+a Ctrl+k
 
@RaheelAslam if you don't stop pinging me and asking me, we'll have to give you a break from this room.
17 mins ago, by Benjamin Gruenbaum
This is not a "help room", this is the JS room, if you want me to look at your problem (especially when I have things to do) it'll have to be a really interesting problem.
 
btw @BenjaminGruenbaum:
17 hours ago, by towc
@BenjaminGruenbaum in prague THIS weekend that just went past?
 
@styrofoamfly Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
I don't know how to get off.
 
11:39 AM
@littlepootis regular vertical movements.
 
Doesn't work
 
@towc I don't know why even that I clikced ctrl + k I am trying again !
app.js to rendered some variables to view:

app.get('/', function(req, res) {
res.render('search.ejs', {
json: myJsonString,
links: links,
titles: titles,
domain: domain
});

then I display list of links
<script type="text/javascript">
function codeAddress() {
var data = <%- json %>;
document.write('<ul>');
for (var i = 0; i < data.length; i++) {
document.write('<li><a href="">')
document.write(data[i]);
document.write('</li></a>')
 
put your arms down and push. Now your legs. Bend correspondingly 1 leg and 1 arm and push harder with the other. Now you roll on one side, and you're off. And please put some pants on
@MohammadTbeishat this is not working. Use pastebin
 
@towc hhhhhhhhhh Okey
 
@towc no, in the coming weekend.
Going to Onen Svet
 
11:41 AM
@towc Nope
 
@littlepootis a pair of boxers?
 
I gave up years ago
 
@BenjaminGruenbaum oh, yay! :D
 
Not sure if that's normal
 
@towc Take a look plz: pastebin.com/Y6qzLNen
 
11:43 AM
If towc comes to Prague
 
@littlepootis what are you trying to get off of
 
I will have a hard consideration time
 
s/of/to/?
 
bratislava-prague is 4:25 for 10€ apparently, not too bad
 
@towc If you would be decisive about going Ping me
 
11:45 AM
@BenjaminGruenbaum you're really doing that
 
Ive been to prague at least few times but never have I actually seen the city
Only the outskirts
 
@BadgerCat I am, yes.
Best $500 spent ever
 
You're an idiot, and I mean this in the best way possible :P
 
Hello
 
Thanks, I appreciate it.
 
12:02 PM
does any one know how to use React context, such that getChildContext is called after ref's are created?
 
@BenjaminGruenbaum would you mind telling what it is? Google provides varying results
 
@KamilSolecki it's a park
That's called the same was as the word "masturbate" in Hebrew which is my native language
We're going there for top kek
 
Are you for real lol
 
Quality.
 
12:10 PM
@KamilSolecki he's going to masturbate together with his friend
 
@littlepootis That is accurate for several reasons
 
@littlepootis php room had a bad message
it's in the bin now
 
@BenjaminGruenbaum you should meet Jan Dvorak
He's really nice
 
@BadgerCat you in Croatia yet?
 
yeah
 
12:16 PM
how are you liking it? ^^
 
It's really good
We're going out to eat, brb
 
sweet
 
SyntaxError: missing ) after argument list in line : fd.append("img" : obj.img );
i declare fd like this just the line before : var fd = new FormData();
obj and img property both exist...
anyone has an idea?
 
lol ok, a few lines below I had the same with ","... didn't even notice... thanks @rlemon
 
12:23 PM
@BadgerCat sure
 
That's what I found searching in SO
@BenjaminGruenbaum
I saw that after reading the whole post
@BadgerCat xD
 
@Neoares lmao, link?
 
Does anyone know of an existing approach to map an object member to a line and column index of the same member in the equivalent JSON representation? So that when someone passes a JSON object into my code, I can give feedback like "I didn't like the format of foo at line 2, column 14"?
 
12:44 PM
@SterlingArcher @KendallFrey hahahaha awesome.
 
not again
 
she's so pleased with herself.
 
@OliverSalzburg interesting
 
@BenjaminGruenbaum I'm surprised that this github.com/epoberezkin/json-source-map has hardly any stars
I'll definitely try it out
 
Hey guys whats the output of "10"+20+30
 
12:51 PM
!!> '10' + 20 + 30
 
@rlemon "102030"
 
were you not expecting that?
string + number === string.
 
I thought the execution happens from right to left
so 1050
 
('10' + 20) + 30
 
it's usually left to right, but that can change
 
12:53 PM
!!>10+20+'30'
 
@CaptainHere "3030"
 
var a = x
var b = a
a === b //false

What is 'x'?
 
@CaptainHere Run it yourself
 
a ReferenceError
 
its kind of a puzzle
 
12:57 PM
!!afk wish me luck!
 
it's not a puzzle
 
Sounds like a question on a test
 

« first day (2501 days earlier)      last day (2449 days later) »