@ChristopheCosta 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.
@FlyingGambit 0 is octal. 0x is hexdecimal. And this shows that you don't use strict mode, because strict mode disallows octal to prevent accidents and confusions like this :)
@MueyiwaMosesIkomi 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.
Uncaught TypeError: Cannot read property 'protocol' of undefined at Object.<anonymous> (client?93b6:111) at Object.<anonymous> (client?93b6:138) at __webpack_require__ (bootstrap fefc7a9…:52) at Object.672 (main.bundle.js:217) at __webpack_require__ (bootstrap fefc7a9…:52) at webpackJsonpCallback (bootstrap fefc7a9…:23) at main.bundle.js:1
I couldn't find a good date answer on SO - most likely my google-fu is not up to par - so I composed one. If you are interested in js date, you're welcomed to take a look and comment.
I use a drag and drop upload.
The thing I don't get is when I use the click it will upload.
But if I use the drag and drop it won't upload but I don't get any error to go with.
https://jsfiddle.net/7zswysft/
In this example I use the code for clicking (https://jsfiddle.net/tv391f0p/)
$("#butt...
The Date answer, by the way, took me two nursing sessions to compose and the in-between time to edit. When I play MMO I count time by cooldown. When I play baby the baby is my alarm clock.
Is it possible to return an Html helper from jquery? I don't want to return an action, I need to return Html.BeginForm as I am dynamically adding rows to a table.
Sorry @Luggage, I think I figured it out. I'm adding rows to a table with ajax, but I needed the razor @using(Html.BeginForm()) added to each row and I could not for the life of me figure it out.
But I think @HttpUtility.JavaScriptStringEncode is going to put me on the right path
if data is an array from another source, and the map function is longer, then you may use children just do you can put it inline, in the 'body' of the component.
No difference than sticking it in another property, though
I was trying to recreate the effect achieved by this code in the 2d context:
// frame background "repaint"
ctx.fillStyle = 'rgba(0,0,0,.08)';
ctx.fillRect( 0, 0, w, h );
// draw rest of frame
which essentially adds a "trail". An example can be seen here: http://codepen.io/towc/pen/mJzOWJ
I e...