Questions tagged as 'javascript'

1
answer

Validate multiple forms at once - Simulated

I'm creating a mock site and I'm having a hard time fixing it because I do not know how to validate numerous forms at once. What happens: I have questions that are randomly selected by the database; These questions are inside a form wit...
asked by 11.03.2017 / 00:08
1
answer

show exception error on callback AJAX

I have this ajax call: $.ajax({ method: "GET", url: "/Shipper/getFullAddress", data: { postalCode: value }, dataType: 'json', success: function(data) { $('#AddressStreet').val(data.AddressStreet);...
asked by 09.03.2017 / 15:21
1
answer

innerText does not accept white space

For some reason, when I use white space, passing something to innerText nothing happens. If I pass 'Bom_dia' everything appears normally, but if I pass 'Good morning' it shows nothing. onmousemove = window.parent.document.getElementById...
asked by 09.03.2017 / 16:29
4
answers

How to block the click on an input

I'm trying to block the click on a input Html <input id="txtData" class="form-control" /><span class="input-group-addon" data-role="data"><i class="glyphicon glyphicon-th"></i></span> So that no ac...
asked by 10.03.2017 / 18:11
1
answer

How to select multiple checkboxes from Array?

In my HTML it has the following line: <label class="turnoCurso pretoClaro" id="3"> Vespertino, Noturno </label> I need to transform the shifts that are brought from the database into an array and for this I use the following co...
asked by 11.03.2017 / 02:56
1
answer

How to do Scrapping a page that has a javascript's using python?

I need to scrape a page, however in the page entry has a button (apparently a Javascript) that gives access to the entire content of the page itself. Using the traditional libs (urllib2, requests, BeatifulSoap) I can not "pull" the content I nee...
asked by 09.03.2017 / 15:46
1
answer

Variable returning null only in Firefox

I have the following piece of code: var cta = document.querySelector('.cta'); In Chrome / Opera it returns the element correctly, only in Firefox it is returned the error: TypeError: cta is null Does anyone know what it can be? I'm...
asked by 28.12.2016 / 14:36
1
answer

Change Content within a modal

How can I load a modal and in that modal have a button that when I click, swap the content for another page of this modal that is already open, and that when closing, go back to the previous content. I'm using the materialize front-end framework...
asked by 28.12.2016 / 03:00
1
answer

Alternatives to beforeunload event listener in FF

I'm working on a website and JavaScript has an important role on the front end, I was using the beforeunload event to always check if the user has edited anything on the page to warn you of possible information loss. It turns out that...
asked by 26.01.2017 / 12:03
1
answer

Convert RSS to JSON Google Feed API

Some time ago I was using the google service google feed api but this service has been deprecated, I would like to know if there is any solution to replace, I'm doing so with jQuery: $.ajax({ url: 'https://ajax.googleapis.com/a...
asked by 25.01.2017 / 12:13