Questions tagged as 'javascript'

1
answer

How to show message on contact postback

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...
asked by 03.12.2015 / 18:22
1
answer

Property in javascript object

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:...
asked by 06.12.2015 / 23:26
2
answers

Use the number of characters obtained in a regular expression sentence in the string substitution

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...
asked by 20.08.2015 / 19:38
2
answers

Resolving part of the page in arrears

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=...
asked by 02.12.2015 / 19:09
1
answer

Form with two destinations

I have the following form: @using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions() { HttpMethod = "POST", OnFailure = "alert('Erro!')", OnSuccess = "TrabalharResultado" }, new { id = "meuForm"...
asked by 26.08.2015 / 19:56
1
answer

Block existing email in jquery.validate

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...
asked by 27.08.2015 / 15:50
2
answers

Asp.Net MVC Validators passing through the controller

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...
asked by 25.08.2015 / 19:46
4
answers

How to return an object from a dynamic reference in JavaScript?

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...
asked by 30.09.2016 / 21:13
2
answers

How to prevent the iframe from being redirected to the beginning

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...
asked by 30.09.2016 / 18:51
2
answers

Calling ajax within another

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...
asked by 28.09.2016 / 22:23