Questions tagged as 'javascript'

1
answer

Doubt to access this in prototype

I'm trying to access some variables within this (Object Orientation) using Object.prototype, but at some point I'm in doubt if I'm doing the right thing: This is the main function: function smartPlayer(){ this.trackCurrentInfo; th...
asked by 12.08.2017 / 19:48
1
answer

Auto-complete jQuery error with image

I have this code in jquey and PHP , I need the product image to appear in the auto-complete along with the name in the #resultado div. I put console.log() to see if it was looking for the information, and they are, it just is not showi...
asked by 10.08.2017 / 13:18
1
answer

How to access a nested object in another object dynamically?

I have the following JSON { "Id":"ssjsjs", "Name":"STFksks S.A", "Alias":"STF jnsns S.A", "DocumentId":"010101", "Accounts":[ "hahadkjkjteste" ], "CountryCode":"BRA", "Country":"Brasil", "Address":{ "Post...
asked by 11.08.2017 / 16:35
1
answer

How to Interrupt setInterval in JavaScript?

How do I stop running a setInterval that is running on a module that I do not need anymore? I'm not talking about just getting the setInterval return and executing a clearInterval . That's not it ... Example: app.js...
asked by 09.08.2017 / 22:21
1
answer

Javascript - Perform a function after first clicking on an item and then clicking on another item

I have two lists and I wanted you to do that by clicking first on the first list and then on the second one, perform a function to leave both items green. <p class="question"><span class="mark-question">1.</span> Relacione as...
asked by 10.08.2017 / 21:13
1
answer

Upload ThumbNail

I have a field to upload in an HTML form, I would like to know if it is possible to put a predefined thumb, with uploads of images I know to make a thumb showing the image that is being placed, but for example, if a PDF file is uploaded from t...
asked by 10.08.2017 / 15:40
1
answer

How to insert a link to another page in each image of this menu [closed]

Good evening, I'm new to the subject and I found a very interesting menu in codepen - link I'm sending the project link Originally because I moved so much in what I downloaded that I can not find myself anymore ... the business should be easy...
asked by 10.08.2017 / 02:19
1
answer

Refresh HTML page content with Javascript using data queried with SQL

Personal I have the following page, which works as follows: The user types the name of the city, clicks the search button where it brings the results matching the search in a table. When clicking on the table, choosing the desired result, pops u...
asked by 11.09.2017 / 15:06
3
answers

Modify element via JavaScript and "warn" the page that the element has been modified

$(document).ready(function(){ $("#myTextarea").change(function(){ alert("text area changed"); }); //$("#myTextarea").keydown(function(){ //alert("text area changed"); //}); }); setTimeout(function() { $("#myT...
asked by 11.09.2017 / 16:48
1
answer

What is the difference between setAttribute () and setAttributeNode ()?

Could anyone get that doubt? I need to know the difference between setAttribute () and setAttributeNode ()? Thank you!     
asked by 06.09.2017 / 00:46