Questions tagged as 'javascript'

3
answers

Change color javascript text

I want to change several color labels h1 and h3 when I pass over them and in this way I only change one, each one has its ID. <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html"/>...
asked by 21.02.2018 / 19:18
3
answers

getElementsByTagName multiple field

The code adaptation was to create another variable with the same function and I missed it thanks to @BDOM, I hope that someone else is useful. Now, is there a better way to adapt the code that is more correct? Code in operation:...
asked by 26.03.2018 / 15:04
2
answers

Update the database when I move rows of a table

View code: <div id="tabs"> <div class="col-md-12" id="current"> @include('cms.public.views.partials._messages') <div id="table1"> <table class="table">...
asked by 23.08.2017 / 14:49
1
answer

Can not read property 'addEventListener'

I'm doing a basic cashier simulation exercise . I get the following error when executing the code, I could not find the error.    Can not read property 'addEventListener' I would greatly appreciate your guidance, Thanks! JS : cl...
asked by 04.10.2018 / 19:59
3
answers

Materialize with Array as DataSource

I'm using the autocomplete function of materialize , how do I use a local JSON and fill select from this? In the official documentation, there is only one using an object. data: { "Apple": "null", "Microsoft": "null", "Go...
asked by 22.10.2016 / 17:47
1
answer

Facebook Login

I have a code with which I make a login through Facebook, and it is as follows: <script> window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxxxxx', xfbml : true, version : 'v...
asked by 23.05.2016 / 02:53
1
answer

Login Facebook Javascript SDK does not work in IE 11?

I'm trying to integrate "authenticate" with the Facebook SDK JavaScript, it works in Firefox / Chrome / Safari but in Internet Explorer it stays in "stand by" already to give the application permission to access my information. Is there somethin...
asked by 17.12.2015 / 23:14
2
answers

What is the meaning of "... args" in the argument of a Javascript function?

Reading a bit of Javascript code, I've come across this: router.route('/:id') .put((...args) => controller.update(...args)) .get((...args) => controller.findById(...args)); Is anyone clear about what ... args means?     
asked by 12.02.2017 / 20:07
2
answers

Android / iOS, open the browser with javascript from a WebView

Hi, I would like a suggestion, I try to open the browser from a page that is loaded from WebView / UIWebView , in an application iOS or Android for example: window.open( 'http://www.stackoverflow', '_blank'. );...
asked by 29.01.2016 / 19:38
1
answer

Show the selected data of a select in a textarea

I am new to programming at Django, please if anyone can help me, I appreciate it. I have a select where the options are the objects stored in the database of a model called Tema , what I want to do is show the attributes of the m...
asked by 29.03.2016 / 20:56