Questions tagged as 'javascript'

3
answers

Function in hyperlink

I'm running a function in the hyperlinks of my system, as shown in the code below: <md-menu-item ng-repeat="insumo in insumos"> <a href ng-click="verificar('mostrarInsumos', insumo.ins_cl_id, '1', $event)"> <md-butto...
asked by 15.02.2016 / 18:59
2
answers

Get customer information

This may sound like a silly question, but I'm kind of in trouble for a problem here. I need to gather through the browser some information that helps me identify the client that is browsing. I already know the MAC address I will not be able t...
asked by 01.03.2016 / 00:10
2
answers

Prevent the action of reloading the page by clicking ALERT JS OK

I do a very rough check to see if the form is filled, if it is not there is a alert("Preencha todos os campos!"); , the problem is that when I click OK it reloads the page and thus clearing the form. I need the alert OK button not to c...
asked by 07.07.2015 / 19:50
1
answer

How to change the value of a select?

I have a script that checks the difference between two sets of dates, and I want it when one of these differences is greater than the other, that the previously chosen value of a certain select changes. As a snippet of code is wo...
asked by 27.07.2015 / 23:31
3
answers

Disable .click function in DIV

I'm making a game and I need a routine that disables the click at least until I finish the function. The function is this below. When I click on the element and execute this function with touchstart and click I want that within...
asked by 24.07.2015 / 16:07
3
answers

Keep selected option loaded dynamically

I need to keep the option chosen in the combobox after the page is submitted, I have a function that does this, but only for combobox static, for the dynamic combobox it does not work. I'm already searching for hours and can not find anything....
asked by 03.08.2015 / 01:15
1
answer

Loading external "pages" via AJAX. Will Google crawl?

I'm doing a project whose pages are loaded into a main container . All link is an anchor but what is after the hash is really a path. My JavaScript is scheduled to detect hash swap events, so it picks up the path by subtracti...
asked by 02.08.2015 / 03:47
2
answers

Get a single TRUE or FALSE on several conditionals

I would like to do the following in the img variable below: Get true if ALL images (img tag) are EQUAL or false if ONE OR MORE is DIFFERENT from the others. I tried loop for , but it does not work as expected, because I c...
asked by 27.06.2015 / 22:39
1
answer

Change modal content with Javascript

Good morning, I know very little about JQuery and JavaScript (Almost anything) and I have a problem. It is as follows: In my site I have two buttons, which open a modal (generated with css). The modal content is basically the same, contain...
asked by 24.06.2015 / 15:02
1
answer

Accessing .txt file data by Ajax

I have a simple ajax + txt script and I can access the txt data, but I want to select the data of an array in ajax, for example, search only the name or just the age. See the code; <!DOCTYPE html> <html> <head> &l...
asked by 22.06.2015 / 04:02