Hi there! I've got a jquery validator issue. I'm working on a form that when the user hits the button, it sends credit card data to the gateway server who returns a token, then the form it's submitted to my server. But in order not to submit the cc and ccv data to my server, I delete those values just before submitting the form. However, jquery validator stops the submission because these two fields are not filled anymore. How do I get around this?
@gkgkgkgk Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
When react says `Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application` is that an actual permanent memory leak or do they just mean that the component can't be garbage collected until the pending promise resolves?
(assuming the warning comes from some kind of fetch().then(setState) data loading thing
Honestly I would just run create-react-app, remove the service work and load your code into it's entry point. I think that's what even the react website advises, but I'll try to help you out if that's not an option.
@JigneshVagh Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@MoonEater916 there is no "memory management" like in eg C or C++ in javascript. Just write with respect to control flow and if you encounter performance problems (you can monitor it with dev tools), you can refactor the code to tackle it
there is a HTML page with a lot small pieces of data (100 requests ... ) and I have to add another piece of data, a bigger one. But marketing wants to have it being loaded together with the main html data
const promise = require('native-or-bluebird'); // or whatever it's called
function import(url) {
var scr = document.createElement('script');
scr.type = 'module'; // don't do this if you don't export as ESM, probably
scr.src = url;
return new Promise((resolve, reject) => { scr.onload = resolve; scr.onerror = reject; });
}
TypeScript will add its own polyfills for language features like async/await and generators seamlessly, but runtime features that aren't available still need to be polyfilled.
the document is probably made by government. Here are excerpts from it
... no usage of "bundlers" or external resources...
Reasons:
- internal page (no external request configured via Content Security Policy)
- secure data
- our developers do not have a background in JavaScript: provide a solution to keep maintainability level high.
- (other jizzle)
Requirement
- Support Internet Explorer: after Windows Internet Explorer 9, released March 14, 2011.
- other browsers
frankly, it is the first time I have seen such a formal "functional" requirements documentation
you can specify the output file name. But that requires eg gulp to keep track of a map and replacing references to those other files. I never tried that though. What I did with that output option was to put the minified file in a different directory (with respect to the structure)
I have an object (a pen) in my scene, which is rotating around its axis in the render loop.
groupPen.rotation.y += speed;
groupPen.rotation.x += speed;
and I have also a TrackballControls, which allows the user to rotate the whole scene.
What I now want is to get the "real" position...
hmm is it possible to have this in flex: a div container has two children. The first child has smaller elements. The height varies from person to person. The second child has multiple data blocks (vertically placed). There should be a scrollbar (overflow-y) if the height of all those data blocks is > height of first child.
@manoj Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Hello guyz, i m having little problem with a jquery script which i posted here https://stackoverflow.com/questions/51986107/uncaught-typeerror-cannot-read-property-todataurl-of-null-canvasjs
Can anyone please have a look and probably can suggest me what could be the issue. Thanks
Good day,
I'm receiving a 400 bad request while sending post request on my ASP.NET Core Web API 2.1.
I have 2 projects. First is Angular6 as my rest client and second is my ASP.NET Core 2.1 Web API as my rest server.
To show you what I've done, here is my angular spa codes:
I have a metho...
please fact check me. const query = { ...options } || {}; means query will have the same properties as options, unless that parameter has not been passed, in which case query will be {}
Hi folks. In one of our nodejs based github projects, github itself is reporting vulnerabilities...what is the tool I can run on my local machine that reports the same thing github is reporting?
I set the encoding to UTF-8 in Intellij, but it's still unable to interpret special characters in properties files. Have you guys ever run into a similar problem?
user1596138
@Thaenor You can || for a spread.
user1596138
const query = {...options || {}}
user1596138
Maybe not what you need. But worth pointing out
user1596138
Otherwise obviously if options isn't iterable it will throw an error
I have a regular expression that I only want the string format to have the following format: CN123456 or cn123456. No more than 8 characters and only take CN in the beginning followed by 6 numbers. I'm not sure what else I'm missing. var regexPat = /^[CN]{2}\d{6}+$/;