Questions tagged as 'javascript'

2
answers

Change view / component but not URL

I'm working on a 404 page, it works fine, I have the following: const router = new VueRouter({ routes: [ // ... { path: '*', component: NotFound, name: '404', meta: {page_titl...
asked by 03.11.2017 / 19:53
1
answer

Problems hiding / displaying div with Javascript

I'm having a relatively simple problem, but I can not find a quick solution: I have a dropdownlist that determines which div will be displayed, and the moment the page loads for the first time, it works perfectly. Shortly after saving t...
asked by 09.01.2015 / 13:38
1
answer

Chrome and bug background fixed

I have the following problem: I have some separate sections on the page in divs. Two of these divs get an image like background and background-position:fixed , so when scrolling the page the images should scroll together, making...
asked by 18.11.2014 / 11:33
1
answer

Change mouseover element / mouseleave

I am trying to change the src of an element by using the attr property in mouseover and then mouseleave . The idea is to change a banner while the mouse is under an element and refresh again after you exit. I tried...
asked by 18.08.2014 / 20:14
2
answers

Load Bootstrap Carousel

I'm developing a portal, with Bootstrap (3.1). For this I put a carousel equal to the bootstrap on HEADER of the page and the content just below that carousel. This is where the problem occurs, when loading the page, as the images have...
asked by 13.02.2014 / 14:22
1
answer

How to export within the subGrid?

Information: I am using jqGrid(4.54) , and also implemented SubGrid , after opening SubGrid , it is necessary to export the contents of the open table. Question: Is there a way to implement a button or a link within Su...
asked by 31.01.2014 / 16:31
2
answers

Display navbar only when user scrolls up in iOS

I'm using the Marius Craciunoiu technique to display all of my navbar when the user scrolls the screen up. So here's my JavaScript code (using jQuery): var delta, didScroll, lastScrollTop, navbarHeight; delta = 5; lastScrollTop = 0; na...
asked by 04.05.2014 / 19:45
2
answers

Block javascript and sql-injection attack on the same string

I'm receiving data from a form in php via get. I am handling the information as follows: $search = mysql_real_escape_string(htmlspecialchars($_GET["t"], ENT_QUOTES, 'UTF-8')); With this I intend to block attacks by javascript and sql-inj...
asked by 12.04.2014 / 18:13
3
answers

Side banner that accompanies the scroll

I wanted to add a side banner, which depending on the scroll, the banner accompanying the page. The image shows what I want to do: Butthebannercanneverpassafewlimits,thatis,itcannotgooverheadernorfooterandkeepinginmindthatpagesizeisnotalwaysthes...
asked by 02.04.2014 / 10:36
1
answer

Rotate custom functions in the browser console

It's a bit tiring to have to be writing console.log() all the time. I know that in my code I can set the log function that does just that. But outside of the application environment, I would like to have this always available in th...
asked by 16.10.2014 / 00:32