Questions tagged as 'javascript'

1
answer

Problems using the switch in JS

Hi everyone, I have a problem that I can not solve. I this I want to change the number of a month by the name of the month type like this: (2/2013 for February / 2013). In the code below I'm making it do list in chronological order by month / ye...
asked by 28.02.2015 / 15:54
2
answers

Change the innerHTML of a tag

I have a small problem, when I change a property of any tag using Javascript the browser says:    Uncaught TypeError: Can not set property 'src' of null But I tested it in JSFiddle and it worked correctly with the same parameters! C...
asked by 21.01.2015 / 19:21
2
answers

Synchronize objects, from the same Array, with the index of different pages

Use the angular-bootstrap-lightbox , which serves to show enlarged images by clicking on they. I put the images on different pages, using ng-repeat and custom filter | filterBy: ['id']: ''" , only the image of the first object i...
asked by 21.01.2015 / 00:47
1
answer

How to get the current date with angularJS with refresh on date?

How to make a refresh only in a "ng-binding" and not in the page, to get the current date via angularJS? I have the following code: function updateTime() { scope.time = new Date(); } But I need to do a refresh...
asked by 25.11.2014 / 18:35
2
answers

How to load background with fade effect in css?

Well, I have an html page with a background image, but when the page loads, it appears in a weird way. Can you load it gently on the page? I am using a code that changes the image every reload of the page. <script> var fundos = 20; ran...
asked by 26.11.2014 / 15:22
1
answer

Search before loading Kendo Grid

Hello, I'm using a textbox to search and load the datasource of the Kendo grid. However the way we set up the project, to edit a record it is necessary to select a Grid item and edit in the fields above it (when the data is populated in the fiel...
asked by 11.11.2014 / 12:38
1
answer

Validating text field that is dynamic

I have the following JavaScript function: //texto grifado cria mais campos valor e numero de parcelas function duplicarCampos(){ if (total >=4) { alert('Número maximo é de apenas 5 campos '); return false; }else {...
asked by 11.11.2014 / 16:32
2
answers

How to load external scripts

I'm adapting a theme (Bootstrap) with MeteorJS but the theme has more than 15 plugins (jQuery), I can not just put them in the /client folder and load all at the same time, some things (some in despair): Put the scripts in the temp...
asked by 12.11.2014 / 19:44
1
answer

Improve javascript function that enables checkbox

In my form I have inputs that can only be edited after a confirmation of the corresponding checkbox, I have it working at the moment: link I use the javascritp function: document.getElementById('check-praia').onchange = function() { do...
asked by 13.11.2014 / 17:22
1
answer

Ignore data type checking when using $ .inArray

I'm having the following problem with jQuery : When I try to check an existing value inside an array, with the $.inArray method, it is returning an unexpected result. Example: I want to check if 1232 exists within Array...
asked by 09.02.2015 / 18:38