Questions tagged as 'javascript'

1
answer

How to access an object within an object, and its property name is a number?

Here is an example of the object in question: obj : { "bairro" : "Centro", "dAula" : { "Quarta" : true, "Segunda" : true }, "dVencimento" : "10", "dataCadastro" : "10/10/2017", "dataInicioContrato" : "27/11/2018",...
asked by 28.11.2018 / 05:11
2
answers

Check URL from document.referrer

I have the following situation. When the user accesses the site: www.site.com.br I check if there exists the parameter sc = 2 at the end of the URL, if it exists it can access the site, if it exists it is redirected to www .site.com.br / sy...
asked by 30.11.2018 / 17:46
2
answers

I can not read this JSON

This is a .json file that I created just to understand { "campo": [ {"nome":"Lucas vidotti"} ] } I know that to read this value with jquery I need to do $.getJSON and manipulate by key, but I can not...
asked by 27.11.2018 / 21:02
1
answer

Ajax doubts in updates

Good morning! I would like to know how Ajax technology works, if it is possible I make a code in php and call it through an ajax, type an query, would I put the answer file on one page and the php on another with ajax? How does it work, could yo...
asked by 11.09.2018 / 14:39
2
answers

onChange texfield javascript

I have a textfield with an id and I want the moment I finish typing to execute a onChange action in JavaScript. <input type='text' id='idNewClient' /> Part of JS $("idNewClient").change(function() { console.log("teste...
asked by 13.09.2018 / 18:35
1
answer

Detect scroll when start and end of div with jquery

Well, I need to detect when scrolling the page (regardless of whether it is the mouse scroll or browser sidebar) to go through a particular div to identify the beginning and end of it, since I need to apply an animation when the scrolling is goi...
asked by 14.09.2018 / 01:07
1
answer

How to insert angular script? In simple HTML it works!

Well, my .html component looks like this: <script> window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { animationEnabled: true, title:{ text: "Monthly Expenses, 2016-17"...
asked by 12.09.2018 / 20:35
1
answer

Get selected values from a combobox and show in a div

I have a form where the user, when filling in, automatically appears in a div, as it happens here on the site. In text field I get it normally, but how would I get it from a combobox? See below the text field code that I started to do, but I...
asked by 11.09.2018 / 19:12
1
answer

FOR in localstorage does not work

Good night guys, The status of my LOCALSTORAGE looks like this: WhenItrytodothis:for(varpostin$window.localStorage){console.log(post);varvalue=JSON.parse($window.localStorage[post]);alert(value);response.push(value)}Ittakesupthelengthattr...
asked by 26.09.2018 / 03:10
1
answer

How to create a dynamic search box?

On this site - link - when you type in the search box, the results appear instantly without having to press enter. How can I do this on Blogger? Thank you!     
asked by 28.09.2018 / 19:36