Questions tagged as 'jquery'

1
answer

Insert data into an external Json

How do I insert data into an external Json file: var json = { caminho: "img/minhaIMG.png", descricao: "minha descricão" } How can I insert new data into this json file? In my case, I would use the same as a "Database" of my files. A...
asked by 22.11.2015 / 18:34
2
answers

How to count state changes in fields with a given class inside a function?

How do I count how many changes occur in all fields of a form with a given class? Update: What I want to know is if there was any change in each field ( one ), not how many times there was change in each field (even if the user changes...
asked by 21.12.2015 / 18:51
4
answers

How do you search for an element with the same class depending on the number of children?

My scenario is as follows, I have two ul with li . The uls have the same class, but I wanted to manipulate only one of them, in the case, which has only a li as a daughter. Example: link Example 2: <ul cl...
asked by 21.12.2015 / 16:34
1
answer

Ajax in different project

I have a project in Asp.Net MVC with the following method: public ActionResult ObterCursos() { List<curso> cursos = new List<curso>(); curso curso_ = new curso(); curso_.Nome = "Análise"; curso_.Periodo = 3; cu...
asked by 05.06.2015 / 04:18
1
answer

Handling event when closing browser

I'm having problems with this event handling when closing the browser using javascript. I researched a little and found an idea through onbeforeunload : <script> window.onbeforeunload = fecharJanela function fecharJanela...
asked by 25.06.2015 / 14:16
4
answers

Release link after form filling

I'm a beginner in Javascript/jQuery and I'm wondering how to release a link soon after all inputs are filled, otherwise it stays locked: Follow the HTML: <form id="formulario"> <label>Usuário</label> <inp...
asked by 02.02.2015 / 12:56
3
answers

Disabling Developer Tools options in Chrome

Facebook is supposed to use code similar to the one link for disable and place a warning to your users. Since the above link code seems to be in half. How do I resolve the issue? You can disable other options like: Elements and...
asked by 13.01.2015 / 19:53
1
answer

It is possible to determine the access path for the file in Function

I have a 'Java WEB' application where I am using a function that opens the .pdf file I determine, however it only opens .pdf that are in the same folder where my project is saved, I have already tried to change my String variable th...
asked by 23.09.2016 / 16:06
2
answers

How to auto-scroll to the top when viewing the page footer?

I'm making a website, which has some animations, and when I get to the bottom of the site for the first time, should trigger an event where the page returns to the top, but in the following times (without reloading) the event will not happen aga...
asked by 27.08.2014 / 20:03
2
answers

How to add the fadeIn effect in this image transition code

I wanted to know how I can add the .fadeIn(500) effect on that system that changes background every 10 seconds. <script> inicial_background = 0; function mudar_background(){ img = new Array(); img[0]...
asked by 07.04.2014 / 05:42