Questions tagged as 'javascript'

1
answer

Keeping a list with alternate backgrounds when searching

I have a list with gray background in the item: nth-child (odd) but when I do a search is inserted a display none in the items that do not contain anything related and ends up messing the order of the colors, I need them to be rearranged accordi...
asked by 20.11.2018 / 02:59
1
answer

How to Add My Slide Button

I started studying HTML and CSS now. But I need to make a slide and find a code ready, but I needed him to have those small round buttons down in the center. It's for mobile version. Would anyone know how I do it? <script type = "text/j...
asked by 25.10.2018 / 14:29
2
answers

Upload Bar

Hello, how do I create a loading bar does not have to be a progress bar, until I get the return of a function. $.ajax(settings).done(function (response) { console.log(response); }     
asked by 29.10.2018 / 15:53
1
answer

Combox check / uncheck checkbox

I have this code that a button marks and unchecks a checkbox link Instead of the button in my case it would be a combobox that marks / unchecks checkbox Could anyone help me? I'm a layman at js .. I made this code however it marks the...
asked by 25.10.2018 / 21:04
4
answers

Insert html file via javascript

Look, I'd like to load the "head" part of my html into just one file and then call in html through java script. Today I have following: Header Filewhereyouwouldliketoinserttheheader IneedtoinsertthesameviajavascriptbecauseIwillusethesa...
asked by 26.10.2018 / 20:02
3
answers

How to do when a button is clicked, an element is created on the page?

I need when a person clicks a particular button, an element is created on the page. I'll explain what I want to do with this.    I am creating a button, and when it is clicked, a modal-box appears (a kind of window that lowers on th...
asked by 20.12.2014 / 03:13
2
answers

Capture variable image content

I have an HTML5 application that captures a webcam image by the browser which I need to capture and write to the database as a binary. On the server side, in PHP, I have: $directory = $img; $element_img = base64_encode(file_get_contents($di...
asked by 15.12.2014 / 13:39
1
answer

Get url from next page with javascript

I'm trying to compare the next page using history.go (), ie comparing the next page with a given url to get a positive result. SEE:      function a() { if (history.go(2) == "http://www.google.com.br") { alert("ok"); } } </...
asked by 14.12.2014 / 13:56
1
answer

How to avoid an XSS vulnerability in an HTML FORM? [closed]

How to avoid having XSS vulnerabilities in a form, using the <form> </form> tag in HTML? Is there any good practice in building HTML code to avoid it?     
asked by 16.12.2014 / 16:10
1
answer

Write file in .ASP with JAVASCRIPT conditions

How do I write an .asp file if a condition in JAVASCRIPT? NOTE: I can already write files in a quiet .asp file. Below the source portion as an example: <script> if(1 == 2) { // ISSO É FALSO, PORTANTE ELE DEVE IR PARA O ELSE, POREM...
asked by 12.06.2014 / 16:07