Questions tagged as 'javascript'

3
answers

Javascript start the code from a certain line

I have a code that runs through an .ofx file for reading its markup. However, the .ofx code has a header that makes it impossible to read (that is, for the javascript code to work I have to remove the header manually). Is there any way to set th...
asked by 31.07.2016 / 00:33
0
answers

Good practices with contenteditable

I just discovered the contenteditable tag and I'm using it in my projects. What good practices should I have regarding security, since this tag enables colar anything in its original form, bugging the site in certain cases. U...
asked by 30.07.2016 / 20:34
0
answers

mousedown on select Firefox

At the time of click on a <div> the <select> should open. That way I can open <select> . $('.teste').click(function(){ var element = $('#select')[0]; var ev = new MouseEvent('mousedown');...
asked by 15.07.2016 / 14:07
0
answers

Good practices in calling javascript scripts

I have some pages that use specific javascript files / scripts and I do not include them in the site header, since not all pages would use them, I would like to know if it is good practice to include Js files / codes in distinct parts of the pag...
asked by 14.07.2016 / 23:28
1
answer

Stop request with Jquery when refreshing the page or clicking on a link

I'm using long polling with PHP + JQuery, when the user logs in the website opens a background connection to the server via Jquery like this: var req = $.post //(resto do codigo aqui). This connection is open for 20 seconds and then closed...
asked by 19.07.2016 / 20:41
1
answer

How to create an Advertising Banner for my App? Ionic and Angular Js [closed]

I want to create a banner ad for a company in my app in the footer as I do someone has some stuff that can explain me how to make a banner for app. type the image below where it is marked in red, how can I put the same in my app?     
asked by 20.07.2016 / 01:23
1
answer

Problems with assets coming from a JSON - Vuejs with Webpack

Talk about people, beauty? Can anyone give me a help? I have the following folder structure: Asmyapplicationissimple,I'mnotdoinganythingconnectedtothebank,I'lldirectlyconsumeaJSONfilethatwillhavetheinformationtopopulatemyscreens!Incaseofm...
asked by 12.07.2016 / 07:51
0
answers

JavaScript PushState / PopState disables other scripts

I have this code on my site js / pushstate.js: $(document).ready(function() { var nav, conteudo, fetchAndInsert; //nav = $('div#navbar'); nav = $('.menu'); conteudo = $('#conteudo'); fetchAndInsert = function(href) { $.ajax({ url...
asked by 10.08.2016 / 15:35
1
answer

Check Input Size and display label according to expression

I have a function that checks if a field is less than 3 when giving focus (click) on input Email . In short: If CPF and RG is less than 3, it displays label[for="label-custom-field2"] and label[for="label-custom-field3...
asked by 08.08.2016 / 18:10
0
answers

How to translate my website automatically

I'm developing a website (www.asbesc.org.br) for my uncle and he needs the site in up to 3 languages, but I have no idea how to do it, a friend told me that by PHP would work as follows: I would create 3 folders, each containing their texts i...
asked by 08.08.2016 / 19:50