« first day (3455 days earlier)      last day (1476 days later) » 

2:34 AM
posted on April 01, 2020 by Krishna Govind

Hi, everyone! We've just released Chrome 80 (80.0.3987.162) for Android: it'll become available on Google Play over the next few weeks. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
3:32 AM
Even though that conversation up there was probably a day or two ago, I actually prefer to use promises.
 
lol it was 6 hours ago
 
Yeah... I can't tell sometimes.
 
you can actually see by clicking at the far left of the message
 
Right, I just didn't though.
I like to live my life mysteriously.
 
haha alright
I enjoy promises too, but prefer the other
 
3:40 AM
Hmm, couldn't think of a clever segway to this question, so here goes.
I'm triggering the click event of a hidden input on a page and trying to read file data. I get as far as the event executing. Actually, it executes all the way through without file data provided, then the browser pops up the open file dialog.
This is a fairly noobish question, I just never had to handle file input before, and after an hour of searching... well, the internet has a lot of schism on the topic
I figure I'm missing some kind of "wait until it loads" callback, something like e.onUserProvidesSomeFile(() => { /*code*/})
 
I agree, that's what you are missing.
It's finishing before it even starts
 
Hmm, I just remembered something I wasn't even searching recently, which is onChange on an input control. I believe that's the intended, sane way. You can also poll for it in the DOM if you like nonsense though
I'll try that and in all likelihood, I think post back here with "problem solved".
 
4:02 AM
problem solved.
 
Sweet
 
Everyone enjoying quarantine? My region is still mandated stay-at-home
 
I think most of us have been quarantined since the beginning of time :/
 
4:18 AM
On the bright side (or dark side, if you use dark mode), I've been catching up on random side projects, which is nice.
 
It sure is nice to have more time
 
Thinking when I resume my commute and subsequently lose all my time (commute is 2 hours, one-way) I won't have to wonder if I'm abandoning my projects. I'm pretty sure I will though, at least for awhile, because right now I have the meanest case of cabin fever
 
2 hours? wow man
Well let's hope this does not last long
 
Expecting it to last a good 5 years. Had to move out finally, couldn't wait longer to afford a larger mortgage (nor do I want to, since it wouldn't increase much over its current cost) and had to get something at the current house peak
 
4:34 AM
5 years? Naw i think thats too much
 
"5 years" is the estimate on a lightrail to seattle/redmond, which may or may not complete on time (I always lean towards 'not' for state construction projects here). My dad used to commute about 1 hour, 40 mins back and forth every day for 18 years, so just keeping the tradition.
I was a bit shocked to hear back a hard "no, it's more than your estimated budget. All of it." when I was trying to get closer to work, so ironically I'm actually further from work than before lol
(I mean, renting obviously, but I'm also trying to get a slow increase in value. I don't actually drive the whole 2 hours myself)
 
oh talking about the commute i see lol
 
I may or may not go crazy after a few years of this commute but I've handled 1.5 hours each way for a year, so the beta test went well
the beta test went well <-- famous last words
 
i think youll manage
by who?
 
By me, for when I become famous
 
4:50 AM
That's awesome dude, mind if I ask what you would like to be known(famous) for?
 
Nah I'm just being facetious.
But eventually I'd like to make an open-source music editor that's actually both easy to use/understand and flexible
 
oh haha
sounds dope, good luck with that
 
Yeah, it's kind of an excuse so I can learn audio engineering and algorithms, then play with generating rhythms
 
nice
Well im heading out
goodnight mate
 
Night
 
 
1 hour later…
6:23 AM
hi guys so iv been tasked with creating an 'AND' operator (which implements logical and) and the tip the professor gave us was that

there are no "IR AND operators" in your language however there are other other operators and if thats the truth table for AND, the question would be what operator produces an equivalent truth table for the equivalent input.

operators that i have:
ADD
DIV
SUB
MUL
LT (Less Than)
EQ (Equals)
LE (Less than or equal to)
 
@JMoss Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
i basically have a new function which implements the AND and i have to return an operator. my thoughts at first would be
if (e1 == 0 && e2 == 0) {
return op.MUL
}
else if (e1 == 0 && e2 == 1) {
return op.MUL
}
else if (e1 == 0 && e2 == 1) {
return op.MUL
}
else if (e1 == 1 && e2 == 1) {
return op.EQ
}
what do you think of this as an answer?
 
 
2 hours later…
8:07 AM
@JMoss 1 MUL 1 = AND
 
 
2 hours later…
9:58 AM
@KarelG omg i love u. thank you that makes so much sense
 
10:22 AM
How do I create a function that sends multiple requests and proceeds as soon as it gets the first response
 
uhm, just send the request and start to handle the response as it is done?
lookup fetch
fetch( url, options).then( here, action when it's done )
that's for a single request. Expanding to a multiple url's, it's a simple array and loop through array
like
[
  {url: ..., callback: ...},
  {url: ..., callback: ...},
  {url: ..., callback: ...},
]
 
11:09 AM
@KarelG This is synchronous, every fetch will wait for the previous one to complete.
 
async + await
 
I am working on a project that requires certain credentials to be verified from external partner APIs. The point is that I need verification from both services like Uber, Lyft etc. But to keep the flow seamless, I want to proceed as soon as I get the first response.
I hope that clarifies it enough
 
12:03 PM
hello
I want to get the covid19 api total confirmed, total deaths but I can't understand how I can do that here is the api pomber.github.io/covid19/timeseries.json I just able to one specific country data but I need count also total confirmed , deaths please look
 
@NIKHILCHANDRAROY Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
here is the code below ```   const url = 'https://pomber.github.io/covid19/timeseries.json';

    fetch(url)
    .then(res=> res.json())
    .then(result=> {
       result['Bangladesh'].forEach(({date, confirmed, recovered, deaths})=> {
           affect_count_bd.innerHTML = confirmed;
           good_count_bd.innerHTML = recovered;
           die_count_bd.innerHTML = deaths;

       });
       const totalResult = Object.keys(result);

      // console.log(totalResult[0])

       totalResult.forEach((total, i)=> {
 
 
1 hour later…
1:10 PM
hi
I am trying to remove classnames from elements
but it says
TypeError: document.getElementsByClassName(...).forEach is not a function
can someone pls help
I am sure document.getElementsByClassName("nav-link") contains array of 2 elements
 
Here's something that could help you:
224
Q: JS: iterating over result of getElementsByClassName using Array.forEach

Steve ClaridgeI want to iterate over some DOM elements, I'm doing this: document.getElementsByClassName( "myclass" ).forEach( function(element, index, array) { //do stuff }); but I get an error: document.getElementsByClassName("myclass").forEach is not a function I am using Firefox 3 so I know that both ...

 
Array.from(document.getElementsByClassName(...)).forEach
 
getElementsByClassName is returning a NodeArray or an array like structure. While its "array like" it isn't truly an array and doesn't have the forEach method. However, it is iteratable. Array.from simply converts it to an array.
 
1:35 PM
!!mdn getElementsByClassName
 
@JBis querySelectorAll is useful as well
and the DOM standard even mentions that you can use .forEach on it
however
 
Yeah, I only use querySelector/All.
 
not all browsers supports this.
 
yea, was gonna say, forEach is usable, but wanted to make sure first
 
1:38 PM
@PrakashReddyPotlapadu correction, that method returns a HTMLCollection not a NodeArray.
 
IE seems to be the only outlier?
 
is it ever not kevin?
damn ie
 
@KevinB edge too I'm afraid
 
mdn says it supports it from version 16
 
oo I stand correct. You can use it in Edge
My experience might be from pre v16
hmm remote work is not working at full rate
been slacking off with videos/reddit
😛
 
 
2 hours later…
3:18 PM
Hi All
 
anyone have any suggestions to do lossy image compression and resizing in browser, quality isn't as much of a concern. Just needs to be fast and small?
i'd like to use wasm but not sure how which lib to use, many have limited functionanility
 
is james ded?
||echo test
 
uh oh
|| status
 
i have a validation layer where I use the validator.js to check the schema authenticity.
just want to know, in case the validation fails, what is a standard approach to return the validation error
 
|| echo test
 
3:22 PM
test
 
@Wietlol ok fixed
 
    by using the
    next(error)
or

res.send({error: errorObject})
 
well depends what you are doing but likely the second one
 
|| echo :49000630 thank you
 
:49000630
 
3:37 PM
@JBis i have no clue how you manage to do that ^
 
which?
 
ignoring the bold part
I assumed it would just make it normal text
 
its a bug
 
hello
I need this json file total confirmed data can someone let me know how I can do that by array map,foreach pomber.github.io/covid19/timeseries.json
 
4:00 PM
hi
anyone here with google-places-api experience?
 
4:19 PM
@Lucian share your issue
 
-2
Q: Fill in first result from google map place autocomplete

LucianI am trying to create a form using google.maps.places.Autocomplete, everything is working fine but I want users to be able to write address and without clicking from the list of autocomplete, the first result from the list should be automatically be selected. I tried using google.maps.places.Sea...

this is the post I have
@NIKHILCHANDRAROY
 
@Wietlol either strip tags or use regex
 
@NIKHILCHANDRAROY you saw the issue?
@NIKHILCHANDRAROY I understand it's this line autocomplete.addListener('place_changed', fillInAddress); that should be changed to achieve what I need but I am not sure what exactly should it be changed to. tried several things but nothing worked
 
4:55 PM
@NIKHILCHANDRAROY take the values from the object, flatmap to the confirmed, then sum
that is the approach... but since I dont touch JS, I cant actually help with the code itself :|
 
@Wietlol I need to sum those data but don't know how can I do that
 
> const arrSum = arr => arr.reduce((a,b) => a + b, 0)
reduce is a nice approach
so, flatmap + reduce, it is
 
5:33 PM
const logger = (className, doc) => {
    return new Proxy(new className(doc), {
        get: function(target, name, receiver) {
            if (!target.hasOwnProperty(name)) {
                if (typeof target[name] === "function" && name.split("")[0] != "_") {
                    console.log(name + "\n" + target[name].arguments); //how to get the function and what's passed to it?
                }
            }
            return Reflect.get(target, name, receiver);
        }
    });
};
I'm trying to get all methods that are called in a javascript class
But while I can get all of the function names, I cannot get what is passed to them
I've tried to use target[name].arguments but for some reason it throws use strict errors despite there being no 'use strict'; blocks in any of my files
does anyone know a possible solution?
This is in nodejs btw
 
yeah i wouldn't do it that way
classes are just sugar for functions and adding "methods" to the prototype object
i'd just traverse the prototype property and do something like this:
function logArgsAndFunction(class){
   const funcs = getAllFuncs(class);
   funcs.forEach(name => {
        class[name] = () => {
            console.log(name + ": " + JSON.stringify(arguments));
            return class[name](...arguments);
       );
    }
   }
}
 
I'll try that out!
Thanks for the help
 
thats untested but something like that should work
np
|| mdn arguments
|| status
fuck
 
5:50 PM
Just a quick question, I'm getting eslint errors after every "class" in the code you just provided me, saying it expects "{", do you know what that could be about?
 
@Jaket probably just complaining because it's a keyword. Try changing it to className or something else that makes sense to you
 
that's probably it
yep
I'm not too bright
 
oh yeah my bad, thats what happens when i try to write code without an ide
 
np dude
I'll post the fully functional version so it'll be in the transcript for the future
var util = require('util');

function getAllFuncs(toCheck) {
    var props = [];
    var obj = toCheck;
    do {
        props = props.concat(Object.getOwnPropertyNames(obj));
    } while (obj = Object.getPrototypeOf(obj));

    return props.sort().filter(function(e, i, arr) {
        if (e != arr[i + 1] && typeof toCheck[e] == 'function') return true;
    });
}

function logArgsAndFunction(clas) {
    const funcs = getAllFuncs(clas);
    funcs.forEach(name => {
        clas[name] = () => {
            console.log(name + ": " + console.log(util.inspect(arguments)));
Here's the fully functional thingymabobber
It has messy output though, so beware
I think I'm going to log the inter-library calls to a text file later rather than the console, but you can get the gist from this
 
i think you are going to have a problem
you need to bind it
clas[name] = (function () {
            console.log(name + ": " + console.log(util.inspect(arguments)));
            return clas[name](...arguments);
        }).bind(clas)
otherwise the function won't be able to use this
|| mdn bind
 
there we go
 
Thanks again!
 
np
p.s. you need to use a regular function instead of arrow/lambda because arrow's can't be binded because they don't have a this context and just inherit one instead. Technically you could use an arrow function and then just bind logArgsAndFunction every time you call it, but thats stupid.
 
I'm kind of curious, why did you nest console.logs?
I didn't even know that was possible
 
typo
 
6:12 PM
okay
thought it was some unknown wizardry
hmm...
I tried using file i/o, but I'm still exceeding the call stack
 
what are you trying to do?
 
I have 2 libraries that interact, pdfkit and svgtopdfkit
I'm trying to get all of the calls svgtoPDFKit makes to PDFKit
rather than use the library to convert a svg file every time
I do admit I'm doing this a weird way, but it's the only way I know how
 
@Jaket why?
just look at the source code?
 
It's very long. Plus, I made the svg file in photoshop, and could never re-create it without machine conversion
This is kind of my last resort
If there is a better way, I'm desperate to know
 
6:32 PM
abstract, what are you trying to do?
 
it's a placecard program
like for weddings and stuff
so what I'm doing now is awful and should by no means be replicated but here goes:
names(array in database)=>for loop=>svg file with the word &&placeholder&& is stored in a temp variable=>&&placeholder&& is .replaced by guest name=>svg file is run through svgtopdfkit, and converted into a pdf page, which is appended to a master pdf=>temp variable is set back to svg with &&placeholder&&=>rinse and repeat=>iteration is finished=>pdf is spit out
It's pretty terrible and was only meant as a placeholder
here's what I want:
names(array in database)=>fed into for loop=>svg is already represented as pdfkit code, so it's much faster and I don't have to read svg template files, or use .replace to fill a placeholder several times=>pdf is spit out to user
 
Others may know more/be of more help, but we use wkhtmltopdf to convert permits we generate to PDF
Completely different from what you've done, but may be worth a quick look at least
 
I tried to do something like that with puppeteer, but it never preserved the aspect ratio, thanks for this alternative
 
6:50 PM
@Jaket so basically you want to take a bunch of names and insert them into an svg and then output a pdf?
 
yes
 
And you want to use PDFKit and not svgtoPDFKit?
why not use svgtoPDFKit?
 
yep
I don't want to have to load in a svg file every time I add a person
there are sometimes 200 people on a list
 
posted on April 01, 2020 by Daniel Gagnon

The Stable channel is being updated to 80.0.3987.162 (Platform version: 12739.111.0) for most Chrome OS devices. This build contains a number of bug fixes and security updates. Systems will be receiving updates over the next several days. If you find new issues, please let us know by vising our forum or filing a bug. Interested in switching channels? Find out how. You

 
That's why I want to bypass svgtopdfkit
because I'm unnecessarily overtaxing my memory allotment by loading in a massive file and searching it several times
 
6:55 PM
> svg [SVGElement or string] = the SVG object or XML code
you can use a string
 
That is what I'm doing
It's just a massive string
and it feels wrong
 
How would you avoid that when using PDFKit?
 
¯\_(ツ)_/¯
 
If I were able to turn this into native pdfkit code, it would take far fewer lines to make the pdf
There is alot of syntax sugar which is needed for pdfs
doc
  .addPage()
  .fontSize(25)
  .text('Here is some vector graphics...', 100, 100);
something like that would be 10kb
 
sure but you are still going to have to load the svg into memory if you wanted to use it
 
7:00 PM
What I'm trying to do now is pre-generate the code so I will never have to load the svg, and just skip to the part where the calls are made to pdfkit
all that changes is an itsy-bitsy string, so it shouldn't move mountains just to put a pebble in place
 
so you want to generate a pdf once and then copy and edit the pdf?
 
not really
I want to generate code like you saw above
doc
  .addPage()
  .fontSize(25)
  .text('Here is some vector graphics...', 100, 100);
 
on the fly? or once
 
and rather than import an svg and change one small part I can just do something like this:
for(int i=0;i<10;i++)
  doc.addPage()
  .fontSize(25)
  .text(names[i], 100, 100);
 
Yes i understand. But are you planning to generate the code on the fly or once?
 
7:06 PM
once, and just change the .text element based on the guestname
 
may i suggest something like this github.com/Hopding/pdf-lib
generate the pdf without any text and use drawText to draw it where you want
 
I've tried that, it's hard to use for my use-case. I have to keep adding duplicated pages over and over again, this would be even slower than my existing method, based on tests I've conducted in the past
I'm deadset on converting the svg into native PDFKit commands
all I need to do is just figure out what SVGtoPDF(doc, svgbuff, 0, 0);passes to the doc class
 
@Jaket why?
> I have to keep adding duplicated pages over and over again
you are going to have to anyway or at least dup the code that is building it
 
That's what I'm saying, it's slower with page duplication that svgtopdfkit+pdfkit
 
@Jaket are you sure? disk speeds are always faster than computation speeds
 
7:17 PM
I'm sorry if I'm not doing a good job explaining this
I'll try to conform to the handy guidelines you provided me
and yes, it is faster with svgtopdfkit+pdfkit because the svg is stored in a variable and duplicated, rather than read from the filesystem repeatedly
Plain and simple, all I want to do is record all calls made from svgtoPdfkit to pdfkit itself
 
make it so
 
I wish it were that easy
the calls between the functions I get now are too verbose
they cause stackoverflow errors(ironically enough)
Here is a typical call logged by the interceptor function we wrote:
 ==============================================================
 pipe
 ==============================================================
 [Arguments] {
  '0':
   WriteStream {
     _writableState:
      WritableState {
        objectMode: false,
        highWaterMark: 16384,
        finalCalled: false,
        needDrain: false,
        ending: false,
        ended: false,
        finished: false,
        destroyed: false,
        decodeStrings: true,
        defaultEncoding: 'utf8',
        length: 0,
I'm only generating 2 cards to keep the output clean, but there are still so many calls being logged to a text file that I get the stackoverflow
Here is my current logging script:
var util = require('util');
var file = fs.createWriteStream('array.txt');

function getAllFuncs(toCheck) {
    var props = [];
    var obj = toCheck;
    do {
        props = props.concat(Object.getOwnPropertyNames(obj));
    } while (obj = Object.getPrototypeOf(obj));

    return props.sort().filter(function(e, i, arr) {
        if (e != arr[i + 1] && typeof toCheck[e] == 'function') return true;
    });
}

function logArgsAndFunction(clas) {
    const funcs = getAllFuncs(clas);
    funcs.forEach(name => {
and finally, here is what I'm intercepting(keep in mind that what will follow this post is not what's in my file verbatim, but rather just a simplification):
const doc = new PDFDocument(docsettings);
logArgsAndFunction(doc);
SVGtoPDF(doc, svgbuff, 0, 0);
 
8:01 PM
@Jaket what you are trying to do will probably not work
and even if it does it will likely break soon
You have a couple options on how to do it.
 
Thanks for your time
I guess I'll have to change my stance on this one
 
good luck
 
DRP
8:45 PM
Hi Experts, need some guidance with jquery ajax, I've tried following the @KevinB Pattern (that is: break it as simple as you can or as possible and test) ive also done research but still no go
Error is: TypeError: this is undefined
The line that it is pointing is the one starting with:
$.ajax({
 
there's gotta be more than that in the stack trace
 
DRP
For now this is pretty simple,this is the whole thing:

$(document).ready(function() {

    $('#submit-btn').on('click',function (){
        //var self = this;
        console.log("on submit");

        $.ajax({
            url: '/testvalidation',
            type: 'POST',
            cache: false,
            context: this,
            contentType: 'application/json; charset=utf-8',
            dataType: 'text',
            data: {
                age: $('#age-val').val,
            },

            success: function(){
 
@DRP Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
DRP
Yes James, I have formated it, thanks...
 
so where in all of that is it complaining?
 
8:48 PM
@DRP what are you expecing this to be?
 
DRP
right where the ajax starts
 
that's impossible
 
DRP
I checked this 3 references:
https://stackoverflow.com/questions/1570146/ajax-jquery-success-scope
https://stackoverflow.com/questions/1392789/jquery-ajax-call-this-does-not-work-after-success
https://stackoverflow.com/questions/21796947/jquery-ajax-function-not-working
 
What's the stack trace?
 
||> this
 
8:50 PM
@JBis "TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'global'\n --- property 'global' closes the circle" Logged: ``
 
||> console.log(JSON.stringify(this))
 
Invalid command! Did you mean: casesensitive, holytrinity, charge_your_electronics? Try help for a list of available commands..‍.‍.‍.‍.‍.‍.‍
@JBis "TypeError: Converting circular structure to JSON\n --> starting at object with constructor 'global'\n --- property 'global' closes the circle" Logged: ``
 
!!> .2 + .3
 
@KevinB 0.5 Logged: ``
 
DRP
cool checking the stringyfy one sec...
 
8:52 PM
i do know why you're getting this error
 
lol that wasn't intended for you
 
but, first, i want to show you how to find it
In your console, you should see an error, the one you provided. it has a down arrow, that's the stack trace
 
DRP
@Jbis
{"jQuery3410140928924710527311":{"events":{"click":[{"type":"click","origType":"click","guid":1,"namespace":""}]}}}
lol
ok too late... @KevinB by stack you mean console log output?
 
i mean the stack trace
it's a list of function calls leading up to $.ajax
 
@KevinB shouldn't it just log undefined, why a type error?
 
8:54 PM
$.ajax cases this to happen, then that, then this other thing, that's the stack trace.
 
DRP
not sure how to do that... would that be on the browser(firefox) or nodejs ?
 
that's not the problem jbi
lol
the this usage is a red herring
 
It would be in your browser's console
F12
On the line where there's an error, in the console, there should be an arrow pointing down
clicking it shows you the stack trace
which... hopefully will hint at the possible causes of the error
 
DRP
cool checking @Jbis
 
8:56 PM
The error is caused by:
            data: {
                age: $('#age-val').val,
            },
 
DRP
@KevinB this would be
uhg doesnt allow copy paste images...one sec
 
so i expect your stack trace to point to an appropriate parsing function
like $.param
 
i would not have expected that issue to produce that error
 
DRP
 
yep
 
8:58 PM
click "http://localhost:3000/:104"
 
ajax, param, etc etc
 
what line does 104 bring you to? should be the one kevin suggested
 
DRP
ajax line
I mean it must be something really basic on my end, im just testing out that small sample script to a path in node js (which i know it works)
If it is of any use, here is the html part:
        <form id="form-one" name='first-form'></form>


            <label for="test-validation">Enter age:</label>
            <input type="text" id="age-val" name='age-validation'>

            <input type="submit" value="Submit" id="submit-btn">

        </form>
 
i guess that makes sense because ajax line is the actual call?
 
DRP
Based on the SE links I shared, went over to check the jquery doc: api.jquery.com/jquery.ajax
"The this reference within all callbacks is the object in the context option passed to $.ajax in the settings; if context is not specified, this is a reference to the Ajax settings themselves."
I tried setting the context but still same issue
 
9:03 PM
posted on April 01, 2020 by Srinivas Sista

The Dev channel has been updated to 83.0.4100.3 for Windows, Mac, and Linux platforms. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Srinivas Sista Google Chrome

 
DRP
@KevinB I see that you are pointing to data age being the issue
 
@DRP val is function not a param
val()
alrigth im out cya o/
 
DRP
@JBis cool thanks!
@KevinB thanks will check into it
 
yeah, basically what happened is $.param didn't know how to handle $.fn.val without a context that was an element.
by passing .val rather than calling it, you passed the function, which when called had no context and therefore couldn't function normally, because it relies on this to know which element to get the val of.
odd though, i didn't know $.param would call functions passed to it like that
> As of jQuery 1.3, the return value of a function is used instead of the function as a String.
so it's been like that for a long time
 
DRP
9:18 PM
dang! you know your stuff
I'm pretty much starting to use jquery as much all I have been coding is vanilajs
Usually I catch/debug errors with plain old console.log but this one was not something I would have catched like that
and yeah that change did the trick
Alrigth wont bother more for today, cheers!
 
o/
 
 
2 hours later…
11:15 PM
\o
 

« first day (3455 days earlier)      last day (1476 days later) »