I have a contact form where I send the information entered to my BD , I would like to leave a message to the user after submitting the form and I'm not having success, what I did was:
I have div positioned above my form , l...
How can I make a check in an array of objects where the intention would be to delete the duplicates however, do I need to add the values of a property?
Example:
I have an array of objects:
musicas = [{nome: 'Música 1', clicks: 1}, {nome:...
I'm doing a Markdown parser as part of a regular expression study, and I'd like to use the amount of characters in a stretch of the expression as a basis for string substitution, for example:
# Titulo
## Titulo
The first title will be added...
The pages of a project that I have are having a strange behavior, when being called a page snippet is being loaded, apparently late, the code is this:
<div class="page-banner no-subtitle">
<div class="container">
<div class=...
I have the following form:
@using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions()
{
HttpMethod = "POST",
OnFailure = "alert('Erro!')",
OnSuccess = "TrabalharResultado"
}, new { id = "meuForm"...
I have a registration form that uses the jquery.validate.js link plugin. I researched but did not find a way to return an error when the client inserts an already valid email. What is the best alternative to solve my problem?
Thanks in advance...
When we create a project in Asp.Net it by default inserts some validators to be used with Razor, @Html.ValidationMessageFor(model => model.property) .
I saw in different projects that these messages are generated by returning the...
I need to create JavaScript code that returns an object already created with a dynamic reference by its id / id.
Basically this:
// Define class
function Test(num) {
this.msg = "Message";
this.num = num;
}
// Create objects
va...
I have an application that uses the iframe to redirect the pages without modifying the url. (I understand the consequences of doing this.)
The problem is that updating the page with F5 is redirected to the source page, in the case of t...
How do I expect to return an ajax to continue requesting another?
I have the following:
$.ajax({
type: "GET",
url: 'http://uma_url_qualquer.com',
success: function (e) {
v...