Questions tagged as 'javascript'

4
answers

JavaScript error in Wordpress admin after upgrading to version 3.8

Recently I upgraded a WordPress 3.0 installation to 3.8 and the drag and drop functionality stopped working. I noticed two JavaScript errors on the page in the load-scripts.php file indicating an ILLEGAL token . The error I got from...
asked by 03.01.2014 / 20:51
1
answer

How to determine the final distance of an element from the footer?

In the case in question would be a sidebar, which from a certain height of scrolling the top, receives position: fixed, but as it continues scrolling it is hidden behind the footer of the site. How could I determine that this sidebar from a cert...
asked by 03.01.2014 / 12:46
1
answer

How to merge a file with several other files, dynamically using grunt?

I have a problem that I can not solve in any way. The problem is this: I use Grunt to automate the tasks of my projects, and in this case, I'm using it as follows: AsIdidinthedrawingabove,IwouldliketogetalltheJavascriptfilesfromthe"DEV"...
asked by 24.02.2015 / 21:59
1
answer

Modularization of the schema using AdonisJs and GraphQL

I have a project where I'm using AdonisJS and GraphQL, I've created the schema and defined the queries , mutations , types . But everything was centralized in just one file, so I decided to modularize schema and resolvers . The problem...
asked by 22.11.2018 / 13:01
1
answer

Date format in an NF-e

Hello, I'm developing a screen that will generate an NF-e and the moment I went to work with the dates I discovered that it needs to be sent in a specific format that I do not know and did not find anything on the internet. p> 2015-02-12T15: 2...
asked by 24.02.2015 / 20:23
1
answer

Generate random characters safely

Hello, I'm new to javascript and I'm using the following function to shuffle characters from a string into a password generator I'm trying to develop: function shuffle(string) { "use strict"; var parts = string.split(''); for (var...
asked by 29.03.2017 / 23:05
1
answer

How to translate JS plugins dynamically with Codeigniter?

I'm developing a WebApp using Codeigniter and need to have multiple languages, in quiet PHP, my problem is how to organize the translations of Javascript plugins. Example, I have in the application plugins like DataTables and Datepicker and...
asked by 27.07.2017 / 21:39
1
answer

Upload Gif while site loads!

I am developing a site (MVC), where there is a user's option to select an Excel file, and all the data in the table is sent to the database and only then a warning of success or failure appears when writing the data . This task takes some tim...
asked by 05.06.2017 / 17:48
1
answer

Function generator returns undefined

Consider the following function: function* gerador() { let foo = yield "a" let bar = yield "b" let baz = yield "c" return '${foo} ${bar} ${baz}' } let gen = gerador(); console.log(gen.next()); console.log(gen.next()); console...
asked by 16.07.2017 / 19:48
1
answer

Javascript classes

I was researching about creating classes in Javascript and I realized the example below: var Greeter = (function () { function Greeter(message) { this.greeting = message; } Greeter.prototype.greet = function (...
asked by 20.05.2017 / 13:25