it's why it's 50% already after about a month after release
I don't plan on buying it
user4272288
if posible consume a rest api (json) with javascript? cause' i have a problem with this my browser's console show me "Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response."
Apparently, I have completely misunderstood its semantics. I thought of something like this:
A client downloads javascript code MyCode.js from http://siteA - the origin.
The response header of MyCode.js contains Access-Control-Allow-Origin: http://siteB, which I thought meant that MyCode.js was...
hey, I'm working on a short article about methods of parsing html, would anyone might giving the draft a quick look-over? medium.com/@zirakertan/… (cc @BenjaminGruenbaum)
I have an odd question (beginner here). I'm inserting some stuff dynamically into a database with javascript instead of a normal form with post method.
I'm trying to post input fields that aren't part of the same form from a page to php to insert. Any ideas??
But in the validation js you have for example for the valid of an emailadres:
email: function( value, element ) { return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value ); },
Hello, I just wanted to throw this question out there, does anyone here class utilities as part of the 'core' ? I just had an argument with my friend about it.
@VoiDHD 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.
I think something with the regex, I you look here you have af example:
jQuery.validator.addMethod("laxEmail", function(value, element) {
// allow any non-whitespace characters as the host part
return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@(?:\S{1,63})$/.test( value );
}, 'Please enter a valid email address.');
@ssube
This code works good
jQuery.validator.addMethod('postalcode', function(value) {
return value.match(/^([a-zA-Z0-9]+)$/);
});
And then with my regex not
jQuery.validator.addMethod('postalcode', function(value) {
return value.match("/^[0-9]{4}[A-Za-z]{2}$/");
});
@ssube Strange, this old code:
jQuery.validator.addMethod("postalcode", function(value, element) {
return this.optional( element ) || /^([a-zA-Z0-9]+)$/.test( value );
});
with only letters and numbers regex works good