Questions tagged as 'javascript'

1
answer

How to execute a function optionally if the page loads inside an iframe? [duplicate]

Can you tell if a particular page is being opened within iframe ? I want this page to execute a function when it loads through iframe . Otherwise, I want it not to execute. Is there any way to do this?     
asked by 10.05.2017 / 17:15
0
answers

Upload multiple files, but each one at a time? [closed]

I'm looking for some code that uploads multiple files to the PHP server, but in the style of Google Drive: One file at a time, but in the same form. Type the image below:     
asked by 15.05.2017 / 13:34
0
answers

Some of my code does not seem to go through Babel before arriving in Uglify

I am not able to generate the production build of my application with Laravel Mix. When trying to build the build, npm tells me that there was an error while trying to run UglifyJs:    /js/app.js from UglifyJs   Unexpected token: operator (&...
asked by 13.05.2017 / 18:07
1
answer

Because my program does not generate CSV in UTF-8 that can be read correctly by Excel, but notepad generates

I have generated .CSV files in javascript , in UTF-8, but they are not read with correct encoding in Microsoft Excel (generating invalid characters instead of accented ones, as if I had read ISO 8859-1 or something like this). Mo...
asked by 29.08.2016 / 22:35
0
answers

Some plugins do not work with different jQuery versions [closed]

Please forgive me if this question seems a bit ignorant, but one thing I noticed while testing some plugins was that some, old or not, did not work with a specific version of Jquery. by default I was using the 3.1 version, and as I / he was th...
asked by 24.08.2016 / 14:52
0
answers

Problems in grunt tasks for versioning when html files are inside other folders

Using Grunt, I have installed and configured plugins : - grunt-contrib-copy - grunt-contrib-clean - grunt-contrib-concat - grunt-contrib-uglify - grunt-contrib-cssmin - grunt-usemin - grunt-contrib-imagemin - grunt-rev In my architect...
asked by 08.09.2016 / 15:56
1
answer

Ajax play audio after running successfully

I need to play an audio in the execution of the following section, where it displays the data found in a query: // Verifica se o Ajax realizou todas as operações corretamente if(req.readyState == 4) { if (req.status == 200) { // Re...
asked by 23.08.2016 / 22:46
3
answers

Changing Javascript Onclick does not work

Hello I'm developing a very simple script in javascript, where when I click the button for the first time, it calls the student () function and when clicking the same button strong> call teacher () , but not I am able to change conte...
asked by 12.09.2016 / 18:24
1
answer

How to create relationships using the Indexed Database API of HTML 5?

Does anyone know how to relate data using Indexed Databases in HTML 5? I've seen many examples of how the API works, but in none of them have I seen data being related. For example, how would relationships 1: N ... 1: 1 ... N: N ...     
asked by 18.09.2015 / 22:50
2
answers

Check if a file has been selected "input file"

How do I check if a file has been selected? <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> With confirmation, I will start uploading automatically, without the need to click any button.     
asked by 04.09.2015 / 17:36