Questions tagged as 'javascript'

1
answer

Load dynamic data into javascript

I'm trying to load dynamic data from DB, but it does not appear. $(function () { var divContent = $('#formularioVeiculo'); var botaoAdicionar = $('a[data-id="1"]'); var i = 1; //Ao clicar em adicionar ele cria uma linha com no...
asked by 12.05.2015 / 23:37
1
answer

How to replace an attribute of an HTML snippet that is as a string?

I have a variable that contains several HTML codes. This variable is already mounted, what I have to do is replace an attribute that is in a (tabindex) child div. Is there any function where I can change this variable, without having to g...
asked by 13.05.2015 / 02:31
1
answer

Why is my variable null?

I'm translating a function from Java to JS, the logic remains the same but the results are different. On regular expression test , returns match when testo 40kb but when compiling the code gets a null on an unspecified line. Why whe...
asked by 27.04.2015 / 14:52
1
answer

How to remove 20 pixels of an element with Jquery

I need to re-calculate the size of an INPUT TEXT element because it will dynamically add a 20-pixel button next to it. I tried this and it did not work $(this).width(function () { $(this).width() - 20 });     
asked by 27.04.2015 / 22:00
1
answer

How to make mute start video

I wanted to know how I can make my video mute. I was able to program the controllers: there is a button that mutates and one that breaks. I just wanted him to start dumb. HTML code: <section id="header"> <div class="inner">...
asked by 27.04.2015 / 20:46
2
answers

Centralize dynamically created div on top of another div

How to center the div #windows that is created dynamically with width / height varying, on the div #main-content being that it needs to stay the way it is, not creating it within the div #main-content <div id="page-wrap...
asked by 03.08.2015 / 14:12
1
answer

List of Items with checkbox

I would like to know how I can complement the code below to work as follows: when marking any item in the checkbox, enter in the case a number indicating the order of its marking with the number appearing in front of the text next to the checkbo...
asked by 31.07.2015 / 15:35
1
answer

mytrack.duration returns NaN

Is this returning NaN, does anyone have a solution? Here is the code: <html> <head> <title>teste</title> <meta charset="utf-8"/> </head> <body> <audio id="mytrack" controls> &...
asked by 28.04.2015 / 23:20
1
answer

Recover Value Chosen Jquery

I have two Select Chosen in my form, what I'm doing is: Thatis,whentypingifIdonotfindanythingrelated,Ihavethe'Incuiritem'link,whichopensamodal,untileverythingworks.TheproblemisthatIneedtotransferthetypedtexttoaninputthatisinthemodal,Icouldno...
asked by 31.07.2015 / 17:52
2
answers

Why graph API only returns to 25 groups?

I have the second code: // globals var blacklist = []; var appId = ''; function performPostLoginTasks() { show_notification('Authorization', 'You successfully logged in using Facebook. Now we can load your groups.'); $("#get_groups")....
asked by 01.08.2015 / 18:41