Questions tagged as 'javascript'

1
answer

Page layout controlled by javascript using REST for dynamic content

I was thinking of a different pattern for developing my application via browser. As this is an ERP, I need a quick interface that does not need to download the HTML from the server at all times to print the user's screen layout. The solution wou...
asked by 08.07.2014 / 18:44
1
answer

request time in AJAX

The problem is that I need to load the load only if the request takes more than 2 seconds. I'm doing this: $(document).ready(function () { $(".loading").show(); $.ajax({ url: 'APP?pagina=<...
asked by 08.03.2017 / 15:28
1
answer

Magnific-Popup with Bootstrap Modal image display problem

I'm facing the problem of displaying image within bootstrap modal. I use this plugin: Magnific-Popup Follow the code: HTML: <!-- Button trigger modal --> <button type="button" id="mymodal" class="btn btn-primary btn-lg" d...
asked by 21.02.2017 / 01:26
3
answers

Why is the behavior of the undefined variable different from undefined property?

I've noticed this a long time ago in Javascript. If I write a particular code where the variable is not defined in any scope, an exception is thrown: console.log(preco) Result:    Uncaught ReferenceError: price is not defined But...
asked by 26.10.2016 / 15:55
2
answers

Accessing windows registry via javascript?

No IE has ActiveX that lets me know if a record exists. Is there a way for Firefox and Google Chrome to let me know if a particular record also exists (using javascript) either through a plugin or another method?...
asked by 22.05.2014 / 16:24
1
answer

jQuery Window Plugin gives "$ is not defined" error

I have the following problem, I found a plugin, jQuery Window , which opens windows with button to minimize, maximize, etc., and opens pages within that window, but I'm not getting it to work. I would like to use example number 6, method 2...
asked by 20.05.2014 / 19:05
3
answers

How to collapse the height of an element with jQuery

Oops, I'm not able to collapse the height of an object in the document. I have a slider, which works with ul > li (maybe it's relevant), and inside a <li> slide, I'm putting via javascript and c # three divs, each with...
asked by 11.06.2014 / 21:40
1
answer

assign a value to the javascript variable

The problem is the following php returns me several buttons with a hidden input to identify the button. $nome = $mysqli->query("SELECT * FROM menbros ORDER BY id"); while ($row = $nome->fetch_assoc()) { $nome = $row['identifier']; $i...
asked by 06.11.2016 / 18:21
1
answer

How does the syntax of Tagged template strings: fn'text $ {10} text 'work?

One of the novelties of ES6 is template strings. How does this new syntax apply to functions? For example, what does this code do?: applyStyle ' #minhaDiv { background-color: ${'#ccf'}; width: ${50}px; height: ${40}px; fon...
asked by 21.11.2016 / 21:19
1
answer

.firstChild returning the wrong child

The error is very simple but can not find. I'm learning how to use the DOM CORE API. I created a DIV, and inside I put a UL. I am alerting who is the first child of the DIV, and the result is giving OBJECT TEXT . instead of giving OB...
asked by 03.11.2016 / 16:46