Questions tagged as 'javascript'

1
answer

Get auto ID complete and move to another form auto complete as parameter [closed]

I'm setting up a register where I select the state and an ajax searches the cities the client selects the city I show a form for him to type the name of the neighborhood where I use the auto complete my question is how to get the id of this form...
asked by 13.05.2016 / 02:38
0
answers

How can I make my app lighter [closed]

Recently I started to create an application by Intel XDK and by test I realize that in my mobile the application runs quickly but in others it ends up giving some fights. Could anyone give me a solution or some idea of what I can do? > Thank y...
asked by 10.04.2016 / 06:52
0
answers

Ajax does not pass information to servlet

I have a problem with the code, the servlet is not called. Only works if I put action="FileUploader" in form. Is there a mistake? Do you have any other way to do it? What I need: An array of images, where images are received in a single multiple...
asked by 09.04.2016 / 22:53
0
answers

Ionic - item does not bind in nav-bar

I have an icon in the nav-bar that should or should not display the toggle's true / false position. Testing in the view works perfectly but the result does not work in the nav bar. Both pages use the same controller. index.html - nav-bar...
asked by 14.05.2016 / 06:43
0
answers

document.getElementById does not find element manually inserted into the DOM

Hello, I'm having trouble getting an element through the id of a Class with document.getElementById(id) of DOM using Javascript I have a panel style in css #painel { text-align: center; position: absolute;...
asked by 14.05.2016 / 05:33
0
answers

Enter data in the bank when given ok in alert

I have a column in phpmyadmin calling msg that receives integer values 1 or 0 . When 1 , the user entering the site will be shown a alert('Seja bem vindo!'); how to do so that when the user clicks OK it will be upd...
asked by 15.05.2016 / 04:36
4
answers

What is the difference between the functions var name = function () and function name ()?

I see in some codes different ways of defining a function, but I do not know the difference if it exists. What is the difference between these functions? Function 1 function teste(valor){ return (valor > 1) ? true : false; } Fu...
asked by 18.04.2014 / 00:35
1
answer

Execute JavaScript code when clicking link within DIV

I have this javascript code: <script type="text/javascript"> var domain = '<?=$x['host']?>'; var auto_surf = <?=($site['surf_type'] == 1 ? 0 : 1)?>; var sid = '<?=$sit['id']?>'; var hash = '<?=MD5(ran...
asked by 03.05.2016 / 17:50
1
answer

mouse hover mouse

I was able to do it with jquery, that's the code for whoever needs it. <script type="text/javascript" src="dist/jquery/jquery-1.12.3.min.js"></script> <canvas id="diamond" width="100" height="100"></canvas> <sc...
asked by 03.05.2016 / 01:56
0
answers

Is there any self help api [closed]

I would like to know if there is any self-help api where it shows information about the content of the field something like a detail about how the user should add information in that field? Anyone know anything?     
asked by 02.05.2016 / 15:30