Questions tagged as 'javascript'

2
answers

Create title attribute in td mounted by javascript

I have a table named gridContudo . In this table, there is this <td> : { width: 100, name: 'OBSERVACAO', index: 'OBSERVACAO', label: 'Observação'}] . What I need is to create a title attribute on this < td> ....
asked by 14.12.2015 / 12:10
1
answer

Why can I access normal functions before the declaration, but the anonymous functions do not? [duplicate]

In Javascript, you can use / use a function before your declaration. MyFunc(); function MyFunc() { return console.log('blah!'); } However, when it comes to anonymous functions and closures, it is not possible to do the above...
asked by 05.12.2016 / 16:47
1
answer

Google AdWords conversion tag

Creating a campaign on google adwords ** has the part that needs to validate clicks if they have been taken. In "Conversion Actions" tools you create that script, which says the following that should put in your page of success. Okay, cool...
asked by 21.11.2016 / 14:46
1
answer

Babel for those who have never used NodeJS

Maybe because I have a much better experience with PHP, I've never been a fan of JavaScript. I've always found the language syntax confusing and complicated, and I've often used jQuery to do simple things that many would do with their feet on...
asked by 04.01.2017 / 14:44
3
answers

Preloader while the site loads

I'm doing a hotsite, it's one page, and it's a bit heavy with some images. I wanted to preloader with%, before loading all the content. With: $(window).on('load', function() { alert('carregou'); }) I can tell when the whole site has load...
asked by 31.10.2016 / 15:47
1
answer

Capture image by url

I have the following url: link {{name}} .png Replacing the word nome with a specific name and navigating to the page in question shows an image.png. How can I capture this image using angularjs? Ex: link     
asked by 18.02.2016 / 19:29
1
answer

Write video file after capture on site

I have a page that captures a video + user's audio using HTML5 and JavaScript. The code follows: <video width="600" height="400"></video> <input type="button" id="stopbt" value="stop"/> <script type="text/javascript">...
asked by 20.11.2015 / 12:15
1
answer

Validate maximum size of an attachment

Good afternoon guys, I need to validate the maximum size of an attachment but my code is not working, can you help me? Follow the code below: HTML: @using (Html.BeginForm("AdicionarAnexo", "Turma", FormMethod.Post, new { @...
asked by 20.11.2015 / 18:24
1
answer

Operation between models

I do not know the power of javascript very well, but wanted to do the following: I have two models: Vacancy: { Name: "VagaExemplo", Description: "Descricao", Skills: { "56b68108869038280db291e6": "90", "56b681...
asked by 09.02.2016 / 20:47
1
answer

Result of JSON on a table

Good afternoon, And I put a search field, and once the search is done, a table with the found users pops up. The part of the query I was able to do, but now I'm not getting popular (actually I have no idea how does, I researched but anyway I...
asked by 12.11.2015 / 22:33