Questions tagged as 'javascript'

1
answer

error Uncaught SyntaxError: missing) after argument list

I'm trying to put a menu in my blog, which is not working # ... And I think this can happen due to this error in the javascript (but as I'm not sure if what it is causing the problem is the error, I separated the question so as not to get confu...
asked by 24.04.2016 / 13:00
1
answer

How do I maintain a Javascript function in the DOM even after a page load from another page?

As far as I know, it is not possible to maintain the state of the DOM even after page load, is there any technique or some way out to keep the function in cookie or storage (local, session) to later give eval ()?     
asked by 27.01.2015 / 12:17
1
answer

Return JSON with ASP.NET/C#

I have the following codes Default.aspx <script type="text/javascript"> /* Relógio */ function startTime() { $.ajax({ type: 'POST', url: 'Default.aspx/GetNetworkTime',...
asked by 26.01.2015 / 18:42
1
answer

ClearInterval does not work

I have a script that does a Post Ajax from time to time. update (); $.ajax({ type: "POST", url: "processar.php", success: function(resposta){ $("#resposta").html(resposta); $("#resposta").fin...
asked by 27.01.2015 / 19:02
2
answers

Get the correct Index without duplicating the Select Option

I need to create a select with the days of the week, and load them when they are already in the database, so I get in my index the id of the day of the week and I have to leave it as selected , I'm doing this, however it get...
asked by 09.09.2015 / 21:57
1
answer

Put real-time punctuation in javascript

I'm doing a school job, which is for tomorrow, and it's already done, it's the famous 'Snake' game in javascript and html, but hj I thought of putting the player's real-time score in the game. Already tried several things but only appears 'Score...
asked by 09.09.2015 / 19:37
1
answer

Count selected checkboxes

I'm having trouble counting the checkboxes that are selected, maybe for the following reason, I have a radio that is also selected. Whenever I use code $('input[type="checkbox"]:checked').length is given a value of 1, and no checkbox is s...
asked by 14.07.2015 / 21:12
1
answer

Dynamic circle using only css and javascript

I'm trying to develop a dynamic circle using only css and javascript, at first I do not want to use any library and can not use the html canvas. My idea is to be able to set the size of the circle as follows: the first click of the mouse wi...
asked by 14.07.2015 / 15:57
2
answers

Check if select field changed

I would like to create a js function, to check if a select field of my form has changed. I created the function below to check if an input has changed and it works, but it does not work for select. var alterado = false; $(document).ready(fun...
asked by 20.07.2015 / 16:04
2
answers

Remove Only an Item from a javascript list

Good afternoon gentlemen, I have an element that creates several items in a list. function addParagrafo() { var ul = document.getElementById("lista-paragrafos"); var conteudo = document.getElementById("paragrafo").value; ul.inne...
asked by 22.07.2015 / 21:17