Questions tagged as 'javascript'

5
answers

Bootstrap: prevent the menu from closing when clicked off it

I'm using the following script so that the Bootstrap dropdown menu does not close when clicking somewhere else on the page: $(document.body).on('click', function(event){ var windowWidth = $(window).width(); if(windowWidth > 991){...
asked by 13.04.2016 / 16:47
1
answer

How to disable the Opera 33 cache so it does not cache js scripts?

I'm having a lot of problems because in addition to learning to program, I have Opera caching all javascripts and I get in a lot of trouble because every new function I put in the file, you need to give F5 in the script to load the new...
asked by 11.11.2015 / 14:43
1
answer

JavaScript Beginner - Problems with feedback

Why is not this code returning the right answer? I'm testing the Chrome console. In testing I change the value of var, but nothing happens. Following the example of the class I'm doing, everything is correct. Am I forgetting some detail? F...
asked by 09.11.2015 / 20:59
1
answer

Not recognizing js file when it is in 2 folders

Well my html is not recognizing the js file when I put it in 2 folders eg when I put <script type="text/javascript" src="assets/js/scripts.js"></script> It does not work even if the file is there, then I just moved the file to j...
asked by 30.01.2015 / 00:19
2
answers

Gulp Sass does not work

So far everything worked on gulp perfectly, minus the sass. My Code: var sass = require('gulp-ruby-sass'); gulp.task('styles', function(){ gulp.src('./src/scss/**/*.scss') .pipe(sass()) .pipe(gulp.dest('./src/css/')); }) gulp....
asked by 28.01.2015 / 22:07
2
answers

Is it possible to make colspan in DataTables?

I have the following structure in PHP that implements a table: foreach ($varConsulta as $lin) { $var1= $varConsulta[$i]['1']; $var2= $varConsulta[$i]['2']; $var3= $varConsulta[$i]['3']; $varFase= $varConsulta[$i]['FASE']...
asked by 21.01.2015 / 12:55
2
answers

Get div above current

I have one set with several divs, <div>1</div> <div>2</div> <div>3</div> <div>4</div> I'm giving each of them, and I need to know the number (html) of the above div, for example if I'm in div...
asked by 23.01.2015 / 00:29
1
answer

PHP session is not configured

I am using session_start to create a session for the user when it is authenticated on the server, however the session is not being maintained in the page exchange, I am using AJAX requests to authenticate, then:    login.js + ajax - &g...
asked by 11.07.2014 / 02:57
1
answer

Pass variable PHP into JavaScript [duplicate]

I want to pass a variable that is in php to JavaScript. For example this: <?php $color = "Red"; ?> <script type="text/javascript"> var color = <?php $color ?>; alert("color:...
asked by 25.10.2014 / 16:09
2
answers

How to apply colors to an image through a color palette without Flash?

A customer asked me if I could make a type system. Could anyone give me an idea of how to do this without Flash? It has a glass with a detail and the two objects will receive different colors selectable in a color palette. Where to start with...
asked by 16.10.2014 / 15:40